/**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.spem.uma.parts.GuidancePackagePropertiesEditionPart#initOwnedMethodContentMember(EObject
  *     current, EReference containingFeature, EReference feature)
  */
 public void initOwnedMethodContentMember(ReferencesTableSettings settings) {
   if (current.eResource() != null && current.eResource().getResourceSet() != null)
     this.resourceSet = current.eResource().getResourceSet();
   ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider();
   ownedMethodContentMember.setContentProvider(contentProvider);
   ownedMethodContentMember.setInput(settings);
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.spem.uma.parts.GuidancePackagePropertiesEditionPart#initReusedPackage(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings)
  */
 public void initReusedPackage(ReferencesTableSettings settings) {
   if (current.eResource() != null && current.eResource().getResourceSet() != null)
     this.resourceSet = current.eResource().getResourceSet();
   ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider();
   reusedPackage.setContentProvider(contentProvider);
   reusedPackage.setInput(settings);
 }
コード例 #3
0
 /**
  * {@inheritDoc}
  *
  * @see net.certware.argument.aml.parts.ExhibitPropertiesEditionPart#initAnnotation(EObject
  *     current, EReference containingFeature, EReference feature)
  */
 public void initAnnotation(ReferencesTableSettings settings) {
   if (current.eResource() != null && current.eResource().getResourceSet() != null)
     this.resourceSet = current.eResource().getResourceSet();
   ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider();
   annotation.setContentProvider(contentProvider);
   annotation.setInput(settings);
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.cinematic.flow.parts.ViewStatePropertiesEditionPart#initViewContainers(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings)
  */
 public void initViewContainers(ReferencesTableSettings settings) {
   if (current.eResource() != null && current.eResource().getResourceSet() != null)
     this.resourceSet = current.eResource().getResourceSet();
   ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider();
   viewContainers.setContentProvider(contentProvider);
   viewContainers.setInput(settings);
 }
コード例 #5
0
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#initClientDependency(org.eclipse.emf.eef.runtime.ui.widgets.referencestable.ReferencesTableSettings)
  */
 public void initClientDependency(ReferencesTableSettings settings) {
   if (current.eResource() != null && current.eResource().getResourceSet() != null)
     this.resourceSet = current.eResource().getResourceSet();
   ReferencesTableContentProvider contentProvider = new ReferencesTableContentProvider();
   clientDependency.setContentProvider(contentProvider);
   clientDependency.setInput(settings);
 }
コード例 #6
0
  protected Composite createESuperTypesReferencesTable(
      FormToolkit widgetFactory, Composite parent) {
    this.eSuperTypes =
        new ReferencesTable(
            getDescription(
                EcoreViewsRepository.EClass.Inheritance.eSuperTypes,
                EcoreMessages.EClassPropertiesEditionPart_ESuperTypesLabel),
            new ReferencesTableListener() {
              public void handleAdd() {
                addESuperTypes();
              }

              public void handleEdit(EObject element) {
                editESuperTypes(element);
              }

              public void handleMove(EObject element, int oldIndex, int newIndex) {
                moveESuperTypes(element, oldIndex, newIndex);
              }

              public void handleRemove(EObject element) {
                removeFromESuperTypes(element);
              }

              public void navigateTo(EObject element) {}
            });
    this.eSuperTypes.setHelpText(
        propertiesEditionComponent.getHelpContent(
            EcoreViewsRepository.EClass.Inheritance.eSuperTypes, EcoreViewsRepository.FORM_KIND));
    this.eSuperTypes.createControls(parent, widgetFactory);
    this.eSuperTypes.addSelectionListener(
        new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            if (e.item != null && e.item.getData() instanceof EObject) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      EClassPropertiesEditionPartForm.this,
                      EcoreViewsRepository.EClass.Inheritance.eSuperTypes,
                      PropertiesEditionEvent.CHANGE,
                      PropertiesEditionEvent.SELECTION_CHANGED,
                      null,
                      e.item.getData()));
            }
          }
        });
    GridData eSuperTypesData = new GridData(GridData.FILL_HORIZONTAL);
    eSuperTypesData.horizontalSpan = 3;
    this.eSuperTypes.setLayoutData(eSuperTypesData);
    this.eSuperTypes.disableMove();
    eSuperTypes.setID(EcoreViewsRepository.EClass.Inheritance.eSuperTypes);
    eSuperTypes.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$
    // Start of user code for createESuperTypesReferencesTable

    // End of user code
    return parent;
  }
  protected Composite createFromChannelsAdvancedReferencesTable(Composite parent) {
    String label =
        getDescription(
            EipViewsRepository.Transformer.Properties.fromChannels,
            EipMessages.TransformerPropertiesEditionPart_FromChannelsLabel);
    this.fromChannels =
        new ReferencesTable(
            label,
            new ReferencesTableListener() {
              public void handleAdd() {
                addFromChannels();
              }

              public void handleEdit(EObject element) {
                editFromChannels(element);
              }

              public void handleMove(EObject element, int oldIndex, int newIndex) {
                moveFromChannels(element, oldIndex, newIndex);
              }

              public void handleRemove(EObject element) {
                removeFromFromChannels(element);
              }

              public void navigateTo(EObject element) {}
            });
    this.fromChannels.setHelpText(
        propertiesEditionComponent.getHelpContent(
            EipViewsRepository.Transformer.Properties.fromChannels, EipViewsRepository.SWT_KIND));
    this.fromChannels.createControls(parent);
    this.fromChannels.addSelectionListener(
        new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            if (e.item != null && e.item.getData() instanceof EObject) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      TransformerPropertiesEditionPartImpl.this,
                      EipViewsRepository.Transformer.Properties.fromChannels,
                      PropertiesEditionEvent.CHANGE,
                      PropertiesEditionEvent.SELECTION_CHANGED,
                      null,
                      e.item.getData()));
            }
          }
        });
    GridData fromChannelsData = new GridData(GridData.FILL_HORIZONTAL);
    fromChannelsData.horizontalSpan = 3;
    this.fromChannels.setLayoutData(fromChannelsData);
    this.fromChannels.disableMove();
    fromChannels.setID(EipViewsRepository.Transformer.Properties.fromChannels);
    fromChannels.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$
    return parent;
  }
  protected Composite createViewContainersReferencesTable(
      FormToolkit widgetFactory, Composite parent) {
    this.viewContainers =
        new ReferencesTable(
            getDescription(
                FlowViewsRepository.ViewState.Properties.viewContainers,
                FlowMessages.ViewStatePropertiesEditionPart_ViewContainersLabel),
            new ReferencesTableListener() {
              public void handleAdd() {
                addViewContainers();
              }

              public void handleEdit(EObject element) {
                editViewContainers(element);
              }

              public void handleMove(EObject element, int oldIndex, int newIndex) {
                moveViewContainers(element, oldIndex, newIndex);
              }

              public void handleRemove(EObject element) {
                removeFromViewContainers(element);
              }

              public void navigateTo(EObject element) {}
            });
    this.viewContainers.setHelpText(
        propertiesEditionComponent.getHelpContent(
            FlowViewsRepository.ViewState.Properties.viewContainers,
            FlowViewsRepository.FORM_KIND));
    this.viewContainers.createControls(parent, widgetFactory);
    this.viewContainers.addSelectionListener(
        new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            if (e.item != null && e.item.getData() instanceof EObject) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ViewStatePropertiesEditionPartForm.this,
                      FlowViewsRepository.ViewState.Properties.viewContainers,
                      PropertiesEditionEvent.CHANGE,
                      PropertiesEditionEvent.SELECTION_CHANGED,
                      null,
                      e.item.getData()));
            }
          }
        });
    GridData viewContainersData = new GridData(GridData.FILL_HORIZONTAL);
    viewContainersData.horizontalSpan = 3;
    this.viewContainers.setLayoutData(viewContainersData);
    this.viewContainers.disableMove();
    viewContainers.setID(FlowViewsRepository.ViewState.Properties.viewContainers);
    viewContainers.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$
    return parent;
  }
  protected Composite createReusedPackageReferencesTable(
      FormToolkit widgetFactory, Composite parent) {
    this.reusedPackage =
        new ReferencesTable(
            UmaMessages.QualificationPackagePropertiesEditionPart_ReusedPackageLabel,
            new ReferencesTableListener() {
              public void handleAdd() {
                addReusedPackage();
              }

              public void handleEdit(EObject element) {
                editReusedPackage(element);
              }

              public void handleMove(EObject element, int oldIndex, int newIndex) {
                moveReusedPackage(element, oldIndex, newIndex);
              }

              public void handleRemove(EObject element) {
                removeFromReusedPackage(element);
              }

              public void navigateTo(EObject element) {}
            });
    this.reusedPackage.setHelpText(
        propertiesEditionComponent.getHelpContent(
            UmaViewsRepository.QualificationPackage.Properties.reusedPackage,
            UmaViewsRepository.FORM_KIND));
    this.reusedPackage.createControls(parent, widgetFactory);
    this.reusedPackage.addSelectionListener(
        new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            if (e.item != null && e.item.getData() instanceof EObject) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      QualificationPackagePropertiesEditionPartForm.this,
                      UmaViewsRepository.QualificationPackage.Properties.reusedPackage,
                      PropertiesEditionEvent.CHANGE,
                      PropertiesEditionEvent.SELECTION_CHANGED,
                      null,
                      e.item.getData()));
            }
          }
        });
    GridData reusedPackageData = new GridData(GridData.FILL_HORIZONTAL);
    reusedPackageData.horizontalSpan = 3;
    this.reusedPackage.setLayoutData(reusedPackageData);
    this.reusedPackage.disableMove();
    reusedPackage.setID(UmaViewsRepository.QualificationPackage.Properties.reusedPackage);
    reusedPackage.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$
    return parent;
  }
コード例 #10
0
  protected Composite createClientDependencyAdvancedReferencesTable(Composite parent) {
    this.clientDependency =
        new ReferencesTable(
            UmlMessages.CreationEventPropertiesEditionPart_ClientDependencyLabel,
            new ReferencesTableListener() {
              public void handleAdd() {
                addClientDependency();
              }

              public void handleEdit(EObject element) {
                editClientDependency(element);
              }

              public void handleMove(EObject element, int oldIndex, int newIndex) {
                moveClientDependency(element, oldIndex, newIndex);
              }

              public void handleRemove(EObject element) {
                removeFromClientDependency(element);
              }

              public void navigateTo(EObject element) {}
            });
    this.clientDependency.setHelpText(
        propertiesEditionComponent.getHelpContent(
            UmlViewsRepository.CreationEvent.Properties.clientDependency,
            UmlViewsRepository.SWT_KIND));
    this.clientDependency.createControls(parent);
    this.clientDependency.addSelectionListener(
        new SelectionAdapter() {

          public void widgetSelected(SelectionEvent e) {
            if (e.item != null && e.item.getData() instanceof EObject) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      CreationEventPropertiesEditionPartImpl.this,
                      UmlViewsRepository.CreationEvent.Properties.clientDependency,
                      PropertiesEditionEvent.CHANGE,
                      PropertiesEditionEvent.SELECTION_CHANGED,
                      null,
                      e.item.getData()));
            }
          }
        });
    GridData clientDependencyData = new GridData(GridData.FILL_HORIZONTAL);
    clientDependencyData.horizontalSpan = 3;
    this.clientDependency.setLayoutData(clientDependencyData);
    this.clientDependency.disableMove();
    clientDependency.setID(UmlViewsRepository.CreationEvent.Properties.clientDependency);
    clientDependency.setEEFType("eef::AdvancedReferencesTable"); // $NON-NLS-1$
    return parent;
  }
コード例 #11
0
 protected void addFromChannels() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           fromChannels.getInput(),
           fromChannelsFilters,
           fromChannelsBusinessFilters,
           "fromChannels",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     TransformerPropertiesEditionPartImpl.this,
                     EipViewsRepository.Transformer.Properties.fromChannels,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           fromChannels.refresh();
         }
       };
   dialog.open();
 }
コード例 #12
0
 protected void addAppliedProfiles() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           appliedProfiles.getInput(),
           appliedProfilesFilters,
           appliedProfilesBusinessFilters,
           "appliedProfiles",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     ProfilesPropertiesEditionPartForm.this,
                     CustomUmlViewsRepository.Profiles.appliedProfiles,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           appliedProfiles.refresh();
         }
       };
   dialog.open();
 }
コード例 #13
0
 protected void addESuperTypes() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           eSuperTypes.getInput(),
           eSuperTypesFilters,
           eSuperTypesBusinessFilters,
           "eSuperTypes",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     EClassPropertiesEditionPartForm.this,
                     EcoreViewsRepository.EClass.Inheritance.eSuperTypes,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           eSuperTypes.refresh();
         }
       };
   dialog.open();
 }
コード例 #14
0
  protected void editTestART(DocumentedElement element) {
    // Start of user code editTestART() method body

    EObject editedElement = testARTEditUtil.foundCorrespondingEObject(element);
    IPropertiesEditionPolicyProvider policyProvider =
        PropertiesEditionPolicyProviderService.getInstance().getProvider(element);
    IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(editedElement);
    if (editionPolicy != null) {
      EObject propertiesEditionObject =
          editionPolicy.getPropertiesEditionObject(
              new EObjectPropertiesEditionContext(null, element, resourceSet));
      if (propertiesEditionObject != null) {
        testARTEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
        testART.refresh();
        propertiesEditionComponent.firePropertiesChanged(
            new PropertiesEditionEvent(
                TestFilterPropertiesEditionPartForm.this,
                NonregViewsRepository.TestFilter.testART,
                PropertiesEditionEvent.COMMIT,
                PropertiesEditionEvent.SET,
                editedElement,
                propertiesEditionObject));
      }
    }
    // End of user code

  }
 protected void addReusedPackage() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           reusedPackage.getInput(),
           reusedPackageFilters,
           reusedPackageBusinessFilters,
           "reusedPackage",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     GuidancePackagePropertiesEditionPartImpl.this,
                     UmaViewsRepository.GuidancePackage.Properties.reusedPackage,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           reusedPackage.refresh();
         }
       };
   dialog.open();
 }
コード例 #16
0
 protected void addClientDependency() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           clientDependency.getInput(),
           clientDependencyFilters,
           clientDependencyBusinessFilters,
           "clientDependency",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     CreationEventPropertiesEditionPartImpl.this,
                     UmlViewsRepository.CreationEvent.Properties.clientDependency,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           clientDependency.refresh();
         }
       };
   dialog.open();
 }
 protected void addViewContainers() {
   TabElementTreeSelectionDialog dialog =
       new TabElementTreeSelectionDialog(
           viewContainers.getInput(),
           viewContainersFilters,
           viewContainersBusinessFilters,
           "viewContainers",
           propertiesEditionComponent.getEditingContext().getAdapterFactory(),
           current.eResource()) {
         @Override
         public void process(IStructuredSelection selection) {
           for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
             EObject elem = (EObject) iter.next();
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     ViewStatePropertiesEditionPartForm.this,
                     FlowViewsRepository.ViewState.Properties.viewContainers,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.ADD,
                     null,
                     elem));
           }
           viewContainers.refresh();
         }
       };
   dialog.open();
 }
コード例 #18
0
 protected void removeFromESuperTypes(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           EClassPropertiesEditionPartForm.this,
           EcoreViewsRepository.EClass.Inheritance.eSuperTypes,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.REMOVE,
           null,
           element));
   eSuperTypes.refresh();
 }
コード例 #19
0
 protected void moveESuperTypes(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           EClassPropertiesEditionPartForm.this,
           EcoreViewsRepository.EClass.Inheritance.eSuperTypes,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   eSuperTypes.refresh();
 }
コード例 #20
0
 protected void moveAppliedProfiles(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           ProfilesPropertiesEditionPartForm.this,
           CustomUmlViewsRepository.Profiles.appliedProfiles,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   appliedProfiles.refresh();
 }
コード例 #21
0
 protected void editAppliedProfiles(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           ProfilesPropertiesEditionPartForm.this,
           CustomUmlViewsRepository.Profiles.appliedProfiles,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.EDIT,
           null,
           element));
   appliedProfiles.refresh();
 }
 protected void removeFromReusedPackage(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           GuidancePackagePropertiesEditionPartImpl.this,
           UmaViewsRepository.GuidancePackage.Properties.reusedPackage,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.REMOVE,
           null,
           element));
   reusedPackage.refresh();
 }
 protected void moveReusedPackage(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           GuidancePackagePropertiesEditionPartImpl.this,
           UmaViewsRepository.GuidancePackage.Properties.reusedPackage,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   reusedPackage.refresh();
 }
コード例 #24
0
 protected void removeFromClientDependency(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           CreationEventPropertiesEditionPartImpl.this,
           UmlViewsRepository.CreationEvent.Properties.clientDependency,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.REMOVE,
           null,
           element));
   clientDependency.refresh();
 }
 protected void moveViewContainers(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           ViewStatePropertiesEditionPartForm.this,
           FlowViewsRepository.ViewState.Properties.viewContainers,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   viewContainers.refresh();
 }
 protected void removeFromViewContainers(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           ViewStatePropertiesEditionPartForm.this,
           FlowViewsRepository.ViewState.Properties.viewContainers,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.REMOVE,
           null,
           element));
   viewContainers.refresh();
 }
コード例 #27
0
 protected void moveClientDependency(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           CreationEventPropertiesEditionPartImpl.this,
           UmlViewsRepository.CreationEvent.Properties.clientDependency,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   clientDependency.refresh();
 }
コード例 #28
0
 protected void moveFromChannels(EObject element, int oldIndex, int newIndex) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           TransformerPropertiesEditionPartImpl.this,
           EipViewsRepository.Transformer.Properties.fromChannels,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           element,
           newIndex));
   fromChannels.refresh();
 }
コード例 #29
0
 protected void removeFromFromChannels(EObject element) {
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           TransformerPropertiesEditionPartImpl.this,
           EipViewsRepository.Transformer.Properties.fromChannels,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.REMOVE,
           null,
           element));
   fromChannels.refresh();
 }
コード例 #30
0
 protected void moveTestART(DocumentedElement element, int oldIndex, int newIndex) {
   EObject editedElement = testARTEditUtil.foundCorrespondingEObject(element);
   testARTEditUtil.moveElement(element, oldIndex, newIndex);
   testART.refresh();
   propertiesEditionComponent.firePropertiesChanged(
       new PropertiesEditionEvent(
           TestFilterPropertiesEditionPartForm.this,
           NonregViewsRepository.TestFilter.testART,
           PropertiesEditionEvent.COMMIT,
           PropertiesEditionEvent.MOVE,
           editedElement,
           newIndex));
 }