Package eu.admire.dispel.containers

Examples of eu.admire.dispel.containers.Package


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

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


  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    Package newElement = ContainersFactory.eINSTANCE.createPackage();

    CompilationUnit owner = (CompilationUnit) getElementToEdit();
    owner.getPackages().add(newElement);

    doConfigure(newElement, monitor, info);
View Full Code Here

  public static List<DispelNodeDescriptor> getPackage_1000SemanticChildren(
      View view) {
    if (!view.isSetElement()) {
      return Collections.emptyList();
    }
    Package modelElement = (Package) view.getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    for (Iterator<?> it = modelElement.getStatements().iterator(); it
        .hasNext();) {
      Statement childElement = (Statement) it.next();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == LocalVariableStatementEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
      if (visualID == DispelFunctionEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
      if (visualID == ConnectionStatementEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
    }
    for (Iterator<?> it = modelElement.getSubPackages().iterator(); it
        .hasNext();) {
      Package childElement = (Package) it.next();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == Package2EditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    Package newElement = ContainersFactory.eINSTANCE.createPackage();

    Package owner = (Package) getElementToEdit();
    owner.getSubPackages().add(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
View Full Code Here

    }
    CompilationUnit modelElement = (CompilationUnit) view.getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    for (Iterator<?> it = modelElement.getPackages().iterator(); it
        .hasNext();) {
      Package childElement = (Package) it.next();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == PackageEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
View Full Code Here

  /**
   * @generated
   */
  private String getPackage_1000Text(View view) {
    Package domainModelElement = (Package) view.getElement();
    if (domainModelElement != null) {
      return domainModelElement.getName();
    } else {
      DispelDiagramEditorPlugin.getInstance().logError(
          "No domain element for view with visualID = " + 1000); //$NON-NLS-1$
      return ""; //$NON-NLS-1$
    }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.containers.Package

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.