Package net.sourceforge.coffea.uml2tools.diagram.creation

Examples of net.sourceforge.coffea.uml2tools.diagram.creation.ClassDiagramBuilder


      element = element.getParent();
    }
    // Once we have a package to process
    if(element != null) {
      // We will be able to build a model
      ClassDiagramBuilder builder =
        new ClassDiagramBuilder(
            lastSourceWorkbenchWindow,
            lastSourceViewId
        );
      // We can start building the model using a sub-progress monitor
      model =
        builder.buildModelHandler(
            element,
            new SubProgressMonitor(monitor, 7)
        );
      // We get the package location to have the absolute URL
      IPath res = element.getResource().getLocation();
      String path = res.toOSString();
      // We save documents from the processed elements to the package
      // URL
      builder.save(
          path,
          builder.getCoffeeName(),
          new SubProgressMonitor(monitor, 3)
      );
      lastSourceWorkbenchWindow = null;
    }
  }
View Full Code Here


          target =
            new File(
                proj.getLocation().toOSString()
            );
        }
        ClassDiagramBuilder worker =
          new ClassDiagramBuilder(workbenchWindow,sourceViewId);
        worker.setCoffeeName(proj.getName());
        IModelHandling model =
          worker.buildModelHandler(target);
        // Save the reversed model in the file system
        worker.save(
            target.getPath(),
            worker.getCoffeeName()
        );
        workbenchWindow = null;
        return model;
      }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.coffea.uml2tools.diagram.creation.ClassDiagramBuilder

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.