Package archmapper.main.model

Examples of archmapper.main.model.ArchitectureMappingModel


  @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


        getResourceAsStream("testStyleMapping.xml"));
    archMapping = ArchitectureMappingDAO.read(MappingTestBase.class.
        getResourceAsStream("testArchMapping.xml"));
   
   
    model = new ArchitectureMappingModel(architecture,
        styleMapping, archMapping);
   
    mappingHelper = new MappingHelper(model);
  }
View Full Code Here

 
 
  public void performCodeGeneration(IProject project, IProgressMonitor monitor) {
    monitor.beginTask("Read architecture and mapping files", IProgressMonitor.UNKNOWN);
   
    ArchitectureMappingModel model = null;
    try {
      model = ArchitectureMappingCache.getArchitectureMappingModel(project);
    } catch (NoArchitectureException e) {
      showErrorAsync("No architecture is set for the selected project.\nPlease " +
          "select an architecture in the project preferences!");
View Full Code Here

    Job job = new WorkspaceJob("Generate architecture graph") {
      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        monitor.beginTask("Loading architecture", IProgressMonitor.UNKNOWN);
       
        ArchitectureMappingModel model = null;
        try {
          model = ArchitectureMappingCache.getArchitectureMappingModel(project);
          if (model == null) {
            return Status.CANCEL_STATUS;
          }
        } catch (ArchMapperException e) {
          showErrorAsync("Error reading architecture: "+ e.getMessage());
          e.printStackTrace();
          return Status.CANCEL_STATUS;
        }
       
        monitor.beginTask("Generating graph definition file", IProgressMonitor.UNKNOWN);
       
        String def = new DotGraphExporter().getDotGraphDefinition(model.getArchitecture());
       
        File out = new File(filename);
        try {
          FileWriter writer = new FileWriter(out);
          writer.write(def);
View Full Code Here

TOP

Related Classes of archmapper.main.model.ArchitectureMappingModel

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.