Package org.eclipse.gmf.runtime.notation

Examples of org.eclipse.gmf.runtime.notation.Node


   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (DispelVisualIDRegistry.getVisualID(node)) {
      case StringReference4EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case DecimalIntegerLiteral3EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case ArrayInitializationByElements2EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      }
    }
View Full Code Here


   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml._40.diagram.edit.parts.InlineTableTypeRowCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.RowTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
View Full Code Here

   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml._40.diagram.edit.parts.DataFieldTypeValueCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.ValueTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
View Full Code Here

   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml._40.diagram.edit.parts.TaxonomyTypeChildParentCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.ChildParentTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
View Full Code Here

   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml._40.diagram.edit.parts.ChildParentTypeInlineTableCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.InlineTableTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
View Full Code Here

   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml._40.diagram.edit.parts.DataDictionaryTypeDataFieldCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.DataFieldTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
        break;
      case eu.admire.visual.pmml._40.diagram.edit.parts.DataDictionaryTypeTaxonomyCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.TaxonomyTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
View Full Code Here

   * @generated
   */
  private void addDestroyChildNodesCommand(ICompositeCommand cmd) {
    View view = (View) getHost().getModel();
    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.parts.NormContinuousTypeEditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.parts.NormDiscreteTypeEditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      }
    }
View Full Code Here

   * @generated
   */
  public Node createConnectionStatement_2003(EObject domainElement,
      View containerView, int index, boolean persisted,
      PreferencesHint preferencesHint) {
    Node node = NotationFactory.eINSTANCE.createNode();
    node.getStyles()
        .add(NotationFactory.eINSTANCE.createDescriptionStyle());
    node.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
    node.getStyles().add(NotationFactory.eINSTANCE.createFillStyle());
    node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
    node.setType(DispelVisualIDRegistry
        .getType(ConnectionStatementEditPart.VISUAL_ID));
    ViewUtil.insertChildView(containerView, node, index, persisted);
    node.setElement(domainElement);
    stampShortcut(containerView, node);
    // initializeFromPreferences
    final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint
        .getPreferenceStore();
    FontStyle nodeFontStyle = (FontStyle) node
        .getStyle(NotationPackage.Literals.FONT_STYLE);
    if (nodeFontStyle != null) {
      FontData fontData = PreferenceConverter.getFontData(prefStore,
          IPreferenceConstants.PREF_DEFAULT_FONT);
      nodeFontStyle.setFontName(fontData.getName());
View Full Code Here

    org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
        prefStore, IPreferenceConstants.PREF_FILL_COLOR);
    ViewUtil.setStructuralFeatureValue(node,
        NotationPackage.eINSTANCE.getFillStyle_FillColor(),
        FigureUtilities.RGBToInteger(fillRGB));
    Node label5018 = createLabel(node,
        DispelVisualIDRegistry.getType(WrappingLabelEditPart.VISUAL_ID));
    createCompartment(
        node,
        DispelVisualIDRegistry
            .getType(ReturnReturnAnonymousCompartmentEditPart.VISUAL_ID),
View Full Code Here

    org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(
        prefStore, IPreferenceConstants.PREF_FILL_COLOR);
    ViewUtil.setStructuralFeatureValue(node,
        NotationPackage.eINSTANCE.getFillStyle_FillColor(),
        FigureUtilities.RGBToInteger(fillRGB));
    Node label5009 = createLabel(node,
        DispelVisualIDRegistry
            .getType(LocalVariableNameEditPart.VISUAL_ID));
    createCompartment(
        node,
        DispelVisualIDRegistry
View Full Code Here

TOP

Related Classes of org.eclipse.gmf.runtime.notation.Node

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.