Examples of StyleMapping


Examples of archmapper.main.model.stylemapping.StyleMapping

 
  @Before
  public void setUp() {
    architecture = new Configuration();
    archMapping = new ArchitectureMapping();
    styleMapping = new StyleMapping();
    model = new ArchitectureMappingModel(architecture,
        styleMapping, archMapping);
   
    mappingHelper = new MappingHelper(model);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

      addAttributeProposal(styleName, request);
    }
  }
 
  protected void addComponentTypeProposals(ContentAssistRequest request) {
    StyleMapping mapping = getStyleMapping(request);
    if (mapping == null) {
      return;
    }
   
    addStyleTypeProposalFor(mapping.getComponentTypeMapping(), request);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

   
    addStyleTypeProposalFor(mapping.getComponentTypeMapping(), request);
  }
 
  protected void addConnectorTypeProposals(ContentAssistRequest request) {
    StyleMapping mapping = getStyleMapping(request);
    if (mapping == null) {
      return;
    }
   
    addStyleTypeProposalFor(mapping.getConnectorTypeMapping(), request);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

   
    addStyleTypeProposalFor(mapping.getConnectorTypeMapping(), request);
  }
 
  protected void addRoleTypeProposals(ContentAssistRequest request) {
    StyleMapping mapping = getStyleMapping(request);
    if (mapping == null) {
      return;
    }
   
    addStyleTypeProposalFor(mapping.getRoleTypeMapping(), request);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

   
    addStyleTypeProposalFor(mapping.getRoleTypeMapping(), request);
  }
 
  protected void addPortTypeProposals(ContentAssistRequest request) {
    StyleMapping mapping = getStyleMapping(request);
    if (mapping == null) {
      return;
    }
   
    addStyleTypeProposalFor(mapping.getPortTypeMapping(), request);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

      if (styleName == null) {
        // We don't know the style
        return null;
      }
     
      StyleMapping styleMapping = ArchitectureMappingModel.loadStyleMapping(null,
          null, styleName, null);
     
      lastLoadedStyleMapping = styleMapping;
      lastStyleMappingLoadTime = Calendar.getInstance().getTimeInMillis();
     
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

   
    return presentNames;
  }
 
  private void addProposalForImplementationArtifactType(String artifactType, ContentAssistRequest request) {
    StyleMapping styleMapping = getStyleMapping(request);
    Configuration conf = getArchitecture(request);
    if (styleMapping == null || conf == null) {
      return;
    }
   
    ArchitectureElement archElem = getParentComponentOrConnector(request.getNode(), conf);
    if (archElem != null) {
      ImplementableTypeMapping typeMapping = styleMapping.getImplementableTypeMapping(archElem.getStyleType());
     
      if (typeMapping != null) {
        List<? extends ImplementationArtifactType> types = typeMapping.getClassTypes();
       
        if (artifactType.equals("interfaceDefinition")) {
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

      return lastLoadedStyleMapping;
    } else {
      String styleMappingFilename = rootElem.getAttribute("styleMappingFile");
      String styleMappingName = rootElem.getAttribute("styleMappingName");
     
      StyleMapping styleMapping = ArchitectureMappingModel.loadStyleMapping(archMappingFile,
          styleMappingFilename, arch.getArchitecturalStyle(),
          styleMappingName);
     
      lastLoadedStyleMapping = styleMapping;
      lastStyleMappingLoadTime = Calendar.getInstance().getTimeInMillis();
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

   
    styleMapping = loadStyleMapping(archMappingFile, archMapping.getStyleMappingFile(),
        conf.getArchitecturalStyle(), archMapping.getStyleMappingName());
    if (styleMapping == null) {
      // if no style mapping should be used, create a new one...
      styleMapping = new StyleMapping();
    }
   
    setRoleDirectionInArchitecture(false);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.StyleMapping

    setRoleDirectionInArchitecture(false);
  }
 
  public static StyleMapping loadStyleMapping(IFile archMappingFile,
      String styleMappingFilename, String styleName, String styleMappingName) {
    StyleMapping styleMapping = null;
   
    if (styleMappingFilename != null && archMappingFile != null) {
      IFile styleMappingFile = archMappingFile.getParent().getFile(new Path(styleMappingFilename));
     
      if (styleMappingFile.exists()) {
        styleMapping = StyleMappingDAO.read(styleMappingFile.getLocation().toOSString());
        styleMapping.setMappingFile(styleMappingFile);
      }
    }
   
    if (styleMapping == null) {
      styleMapping = getStyleMappingFromExtensionPoint(styleMappingName, null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.