Package archmapper.main.model.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


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

   
    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

   
    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

   
    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

      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

   
    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

      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

   
    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

    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

Related Classes of archmapper.main.model.stylemapping.StyleMapping

Copyright © 2018 www.massapicom. 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.