Package net.cis.common.model.modeler

Examples of net.cis.common.model.modeler.Modeler


  public static List<CismodelNodeDescriptor> getModeler_1000SemanticChildren(
      View view) {
    if (!view.isSetElement()) {
      return Collections.emptyList();
    }
    Modeler modelElement = (Modeler) view.getElement();
    LinkedList<CismodelNodeDescriptor> result = new LinkedList<CismodelNodeDescriptor>();
    for (Iterator<?> it = modelElement.getShips().iterator(); it.hasNext();) {
      Ship childElement = (Ship) it.next();
      int visualID = CismodelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == ShipEditPart.VISUAL_ID) {
        result.add(new CismodelNodeDescriptor(childElement, visualID));
View Full Code Here


        Messages.CismodelDiagramEditorUtil_CreateDiagramCommandLabel,
        Collections.EMPTY_LIST) {
      protected CommandResult doExecuteWithResult(
          IProgressMonitor monitor, IAdaptable info)
          throws ExecutionException {
        Modeler model = createInitialModel();
        attachModelToResource(model, modelResource);

        Diagram diagram = ViewService.createDiagram(model,
            ModelerEditPart.MODEL_ID,
            CismodelDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
View Full Code Here

TOP

Related Classes of net.cis.common.model.modeler.Modeler

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.