Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/parts/impl/ActivityPropertiesEditionPartImpl.java')
-rw-r--r--deprecated/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/parts/impl/ActivityPropertiesEditionPartImpl.java7209
1 files changed, 0 insertions, 7209 deletions
diff --git a/deprecated/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/parts/impl/ActivityPropertiesEditionPartImpl.java b/deprecated/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/parts/impl/ActivityPropertiesEditionPartImpl.java
deleted file mode 100644
index d57f0d538f2..00000000000
--- a/deprecated/deprecated-plugins/uml.deprecated/org.eclipse.papyrus.tabbedproperties.uml/generated/org/eclipse/papyrus/tabbedproperties/uml/parts/impl/ActivityPropertiesEditionPartImpl.java
+++ /dev/null
@@ -1,7209 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Obeo.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Obeo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.papyrus.tabbedproperties.uml.parts.impl;
-
-// Start of user code for imports
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EEnumLiteral;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.util.EcoreAdapterFactory;
-import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
-import org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent;
-import org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart;
-import org.eclipse.emf.eef.runtime.api.policies.IPropertiesEditionPolicy;
-import org.eclipse.emf.eef.runtime.api.providers.IPropertiesEditionPolicyProvider;
-import org.eclipse.emf.eef.runtime.impl.notify.PropertiesEditionEvent;
-import org.eclipse.emf.eef.runtime.impl.parts.CompositePropertiesEditionPart;
-import org.eclipse.emf.eef.runtime.impl.policies.EObjectPropertiesEditionContext;
-import org.eclipse.emf.eef.runtime.impl.services.PropertiesEditionPolicyProviderService;
-import org.eclipse.emf.eef.runtime.impl.utils.EMFListEditUtil;
-import org.eclipse.emf.eef.runtime.ui.widgets.EMFComboViewer;
-import org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable;
-import org.eclipse.emf.eef.runtime.ui.widgets.SWTUtils;
-import org.eclipse.emf.eef.runtime.ui.widgets.TabElementTreeSelectionDialog;
-import org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable.ReferencesTableListener;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart;
-import org.eclipse.papyrus.tabbedproperties.uml.parts.UMLViewsRepository;
-import org.eclipse.papyrus.tabbedproperties.uml.providers.UMLMessages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.uml2.uml.ActivityEdge;
-import org.eclipse.uml2.uml.ActivityGroup;
-import org.eclipse.uml2.uml.ActivityNode;
-import org.eclipse.uml2.uml.ActivityPartition;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.CollaborationUse;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Connector;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.ElementImport;
-import org.eclipse.uml2.uml.Generalization;
-import org.eclipse.uml2.uml.GeneralizationSet;
-import org.eclipse.uml2.uml.InterfaceRealization;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.PackageImport;
-import org.eclipse.uml2.uml.Parameter;
-import org.eclipse.uml2.uml.ParameterSet;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Reception;
-import org.eclipse.uml2.uml.Substitution;
-import org.eclipse.uml2.uml.TemplateBinding;
-import org.eclipse.uml2.uml.Trigger;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.UseCase;
-import org.eclipse.uml2.uml.Variable;
-
-// End of user code
-
-/**
- * @author <a href="mailto:jerome.benois@obeo.fr">Jerome Benois</a>
- */
-public class ActivityPropertiesEditionPartImpl extends CompositePropertiesEditionPart implements ISWTPropertiesEditionPart, ActivityPropertiesEditionPart {
-
- protected EMFListEditUtil ownedCommentEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedComment;
-
- protected List<ViewerFilter> ownedCommentBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedCommentFilters = new ArrayList<ViewerFilter>();
-
- protected Text name;
-
- protected EMFComboViewer visibility;
-
- protected EMFListEditUtil clientDependencyEditUtil;
-
- protected ReferencesTable<? extends EObject> clientDependency;
-
- protected List<ViewerFilter> clientDependencyBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> clientDependencyFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil elementImportEditUtil;
-
- protected ReferencesTable<? extends EObject> elementImport;
-
- protected List<ViewerFilter> elementImportBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> elementImportFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil packageImportEditUtil;
-
- protected ReferencesTable<? extends EObject> packageImport;
-
- protected List<ViewerFilter> packageImportBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> packageImportFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedRuleEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedRule;
-
- protected List<ViewerFilter> ownedRuleBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedRuleFilters = new ArrayList<ViewerFilter>();
-
- protected Button isLeaf;
-
- protected EMFListEditUtil templateBindingEditUtil;
-
- protected ReferencesTable<? extends EObject> templateBinding;
-
- protected List<ViewerFilter> templateBindingBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> templateBindingFilters = new ArrayList<ViewerFilter>();
-
- protected Button isAbstract;
-
- protected EMFListEditUtil generalizationEditUtil;
-
- protected ReferencesTable<? extends EObject> generalization;
-
- protected List<ViewerFilter> generalizationBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> generalizationFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil powertypeExtentEditUtil;
-
- protected ReferencesTable<? extends EObject> powertypeExtent;
-
- protected List<ViewerFilter> powertypeExtentBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> powertypeExtentFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil redefinedClassifierEditUtil;
-
- protected ReferencesTable<? extends EObject> redefinedClassifier;
-
- protected List<ViewerFilter> redefinedClassifierBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> redefinedClassifierFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil substitutionEditUtil;
-
- protected ReferencesTable<? extends EObject> substitution;
-
- protected List<ViewerFilter> substitutionBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> substitutionFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil collaborationUseEditUtil;
-
- protected ReferencesTable<? extends EObject> collaborationUse;
-
- protected List<ViewerFilter> collaborationUseBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> collaborationUseFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedUseCaseEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedUseCase;
-
- protected List<ViewerFilter> ownedUseCaseBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedUseCaseFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil useCaseEditUtil;
-
- protected ReferencesTable<? extends EObject> useCase;
-
- protected List<ViewerFilter> useCaseBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> useCaseFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedAttributeEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedAttribute;
-
- protected List<ViewerFilter> ownedAttributeBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedAttributeFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedConnectorEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedConnector;
-
- protected List<ViewerFilter> ownedConnectorBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedConnectorFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedBehaviorEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedBehavior;
-
- protected List<ViewerFilter> ownedBehaviorBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedBehaviorFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil interfaceRealizationEditUtil;
-
- protected ReferencesTable<? extends EObject> interfaceRealization;
-
- protected List<ViewerFilter> interfaceRealizationBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> interfaceRealizationFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedTriggerEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedTrigger;
-
- protected List<ViewerFilter> ownedTriggerBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedTriggerFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil nestedClassifierEditUtil;
-
- protected ReferencesTable<? extends EObject> nestedClassifier;
-
- protected List<ViewerFilter> nestedClassifierBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> nestedClassifierFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedOperationEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedOperation;
-
- protected List<ViewerFilter> ownedOperationBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedOperationFilters = new ArrayList<ViewerFilter>();
-
- protected Button isActive;
-
- protected EMFListEditUtil ownedReceptionEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedReception;
-
- protected List<ViewerFilter> ownedReceptionBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedReceptionFilters = new ArrayList<ViewerFilter>();
-
- protected Button isReentrant;
-
- protected EMFListEditUtil redefinedBehaviorEditUtil;
-
- protected ReferencesTable<? extends EObject> redefinedBehavior;
-
- protected List<ViewerFilter> redefinedBehaviorBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> redefinedBehaviorFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedParameterEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedParameter;
-
- protected List<ViewerFilter> ownedParameterBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedParameterFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil preconditionEditUtil;
-
- protected ReferencesTable<? extends EObject> precondition;
-
- protected List<ViewerFilter> preconditionBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> preconditionFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil postconditionEditUtil;
-
- protected ReferencesTable<? extends EObject> postcondition;
-
- protected List<ViewerFilter> postconditionBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> postconditionFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil ownedParameterSetEditUtil;
-
- protected ReferencesTable<? extends EObject> ownedParameterSet;
-
- protected List<ViewerFilter> ownedParameterSetBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> ownedParameterSetFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil variableEditUtil;
-
- protected ReferencesTable<? extends EObject> variable;
-
- protected List<ViewerFilter> variableBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> variableFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil nodeEditUtil;
-
- protected ReferencesTable<? extends EObject> node;
-
- protected List<ViewerFilter> nodeBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> nodeFilters = new ArrayList<ViewerFilter>();
-
- protected Button isReadOnly;
-
- protected EMFListEditUtil edgeEditUtil;
-
- protected ReferencesTable<? extends EObject> edge;
-
- protected List<ViewerFilter> edgeBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> edgeFilters = new ArrayList<ViewerFilter>();
-
- protected EMFListEditUtil partitionEditUtil;
-
- protected ReferencesTable<? extends EObject> partition;
-
- protected List<ViewerFilter> partitionBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> partitionFilters = new ArrayList<ViewerFilter>();
-
- protected Button isSingleExecution;
-
- protected EMFListEditUtil groupEditUtil;
-
- protected ReferencesTable<? extends EObject> group;
-
- protected List<ViewerFilter> groupBusinessFilters = new ArrayList<ViewerFilter>();
-
- protected List<ViewerFilter> groupFilters = new ArrayList<ViewerFilter>();
-
-
-
-
-
- /**
- * Default constructor
- *
- * @param editionComponent
- * the {@link IPropertiesEditionComponent} that manage this part
- */
- public ActivityPropertiesEditionPartImpl(IPropertiesEditionComponent editionComponent) {
- super(editionComponent);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart# createFigure(org.eclipse.swt.widgets.Composite)
- */
- public Composite createFigure(final Composite parent) {
- view = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.numColumns = 3;
- view.setLayout(layout);
-
- createControls(view);
- return view;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.emf.eef.runtime.api.parts.ISWTPropertiesEditionPart# createControls(org.eclipse.swt.widgets.Composite)
- */
- public void createControls(Composite view) {
- createPropertiesGroup(view);
-
- // Start of user code for additional ui definition
-
- // End of user code
-
- }
-
- protected void createPropertiesGroup(Composite parent) {
- Group propertiesGroup = new Group(parent, SWT.NONE);
- propertiesGroup.setText(UMLMessages.ActivityPropertiesEditionPart_PropertiesGroupLabel);
- GridData propertiesGroupData = new GridData(GridData.FILL_HORIZONTAL);
- propertiesGroupData.horizontalSpan = 3;
- propertiesGroup.setLayoutData(propertiesGroupData);
- GridLayout propertiesGroupLayout = new GridLayout();
- propertiesGroupLayout.numColumns = 3;
- propertiesGroup.setLayout(propertiesGroupLayout);
- createOwnedCommentAdvancedTableComposition(propertiesGroup);
- createNameText(propertiesGroup);
- createVisibilityEMFComboViewer(propertiesGroup);
- createClientDependencyAdvancedReferencesTable(propertiesGroup);
- createElementImportAdvancedTableComposition(propertiesGroup);
- createPackageImportAdvancedTableComposition(propertiesGroup);
- createOwnedRuleAdvancedTableComposition(propertiesGroup);
- createIsLeafCheckbox(propertiesGroup);
- createTemplateBindingAdvancedTableComposition(propertiesGroup);
- createIsAbstractCheckbox(propertiesGroup);
- createGeneralizationAdvancedTableComposition(propertiesGroup);
- createPowertypeExtentAdvancedReferencesTable(propertiesGroup);
- createRedefinedClassifierAdvancedReferencesTable(propertiesGroup);
- createSubstitutionAdvancedTableComposition(propertiesGroup);
- createCollaborationUseAdvancedTableComposition(propertiesGroup);
- createOwnedUseCaseAdvancedTableComposition(propertiesGroup);
- createUseCaseAdvancedReferencesTable(propertiesGroup);
- createOwnedAttributeAdvancedTableComposition(propertiesGroup);
- createOwnedConnectorAdvancedTableComposition(propertiesGroup);
- createOwnedBehaviorAdvancedTableComposition(propertiesGroup);
- createInterfaceRealizationAdvancedTableComposition(propertiesGroup);
- createOwnedTriggerAdvancedTableComposition(propertiesGroup);
- createNestedClassifierAdvancedTableComposition(propertiesGroup);
- createOwnedOperationAdvancedTableComposition(propertiesGroup);
- createIsActiveCheckbox(propertiesGroup);
- createOwnedReceptionAdvancedTableComposition(propertiesGroup);
- createIsReentrantCheckbox(propertiesGroup);
- createRedefinedBehaviorAdvancedReferencesTable(propertiesGroup);
- createOwnedParameterAdvancedTableComposition(propertiesGroup);
- createPreconditionAdvancedReferencesTable(propertiesGroup);
- createPostconditionAdvancedReferencesTable(propertiesGroup);
- createOwnedParameterSetAdvancedTableComposition(propertiesGroup);
- createVariableAdvancedTableComposition(propertiesGroup);
- createNodeAdvancedTableComposition(propertiesGroup);
- createIsReadOnlyCheckbox(propertiesGroup);
- createEdgeAdvancedTableComposition(propertiesGroup);
- createPartitionAdvancedReferencesTable(propertiesGroup);
- createIsSingleExecutionCheckbox(propertiesGroup);
- createGroupAdvancedTableComposition(propertiesGroup);
- }
-
- /**
- * @param container
- */
- protected void createOwnedCommentAdvancedTableComposition(Composite parent) {
- this.ownedComment = new ReferencesTable<Comment>(UMLMessages.ActivityPropertiesEditionPart_OwnedCommentLabel, new ReferencesTableListener<Comment>() {
-
- public void handleAdd() {
- addToOwnedComment();
- }
-
- public void handleEdit(Comment element) {
- editOwnedComment(element);
- }
-
- public void handleMove(Comment element, int oldIndex, int newIndex) {
- moveOwnedComment(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Comment element) {
- removeFromOwnedComment(element);
- }
-
- public void navigateTo(Comment element) {
- }
- });
- this.ownedComment.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedComment, UMLViewsRepository.SWT_KIND));
- this.ownedComment.createControls(parent);
- GridData ownedCommentData = new GridData(GridData.FILL_HORIZONTAL);
- ownedCommentData.horizontalSpan = 3;
- this.ownedComment.setLayoutData(ownedCommentData);
- }
-
- /**
- *
- */
- protected void moveOwnedComment(Comment element, int oldIndex, int newIndex) {
- EObject editedElement = ownedCommentEditUtil.foundCorrespondingEObject(element);
- ownedCommentEditUtil.moveElement(element, oldIndex, newIndex);
- ownedComment.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedComment, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedComment() {
-
- // Start of user code addToOwnedComment() method body
- Comment eObject = UMLFactory.eINSTANCE.createComment();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedCommentEditUtil.addElement(propertiesEditionObject);
- ownedComment.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedComment,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedComment(Comment element) {
-
- // Start of user code removeFromOwnedComment() method body
- EObject editedElement = ownedCommentEditUtil.foundCorrespondingEObject(element);
- ownedCommentEditUtil.removeElement(element);
- ownedComment.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedComment,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedComment(Comment element) {
-
- // Start of user code editOwnedComment() method body
- EObject editedElement = ownedCommentEditUtil.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) {
- ownedCommentEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedComment.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedComment,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createNameText(Composite parent) {
- SWTUtils.createPartLabel(parent, UMLMessages.ActivityPropertiesEditionPart_NameLabel, propertiesEditionComponent.isRequired(UMLViewsRepository.Activity.name, UMLViewsRepository.SWT_KIND));
- name = new Text(parent, SWT.BORDER);
- GridData nameData = new GridData(GridData.FILL_HORIZONTAL);
- name.setLayoutData(nameData);
- name.addModifyListener(new ModifyListener() {
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.swt.events.ModifyListener#modifyText(org.eclipse.swt.events.ModifyEvent)
- */
- public void modifyText(ModifyEvent e) {
- if(propertiesEditionComponent != null)
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.name, PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, null, name.getText()));
- }
-
- });
-
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.name, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- protected void createVisibilityEMFComboViewer(Composite parent) {
- SWTUtils.createPartLabel(parent, UMLMessages.ActivityPropertiesEditionPart_VisibilityLabel, propertiesEditionComponent.isRequired(UMLViewsRepository.Activity.visibility, UMLViewsRepository.SWT_KIND));
- visibility = new EMFComboViewer(parent);
- visibility.setContentProvider(new ArrayContentProvider());
- visibility.setLabelProvider(new AdapterFactoryLabelProvider(new EcoreAdapterFactory()));
- GridData visibilityData = new GridData(GridData.FILL_HORIZONTAL);
- visibility.getCombo().setLayoutData(visibilityData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.visibility, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- protected void createClientDependencyAdvancedReferencesTable(Composite parent) {
- this.clientDependency = new ReferencesTable<Dependency>(UMLMessages.ActivityPropertiesEditionPart_ClientDependencyLabel, new ReferencesTableListener<Dependency>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<Dependency> dialog = new TabElementTreeSelectionDialog<Dependency>(resourceSet, clientDependencyFilters, clientDependencyBusinessFilters,
- "Dependency", UMLPackage.eINSTANCE.getDependency(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!clientDependencyEditUtil.getVirtualList().contains(elem))
- clientDependencyEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.clientDependency,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- clientDependency.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(Dependency element) {
- editClientDependency(element);
- }
-
- public void handleMove(Dependency element, int oldIndex, int newIndex) {
- moveClientDependency(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Dependency element) {
- removeFromClientDependency(element);
- }
-
- public void navigateTo(Dependency element) {
- }
- });
- this.clientDependency.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.clientDependency, UMLViewsRepository.SWT_KIND));
- this.clientDependency.createControls(parent);
- GridData clientDependencyData = new GridData(GridData.FILL_HORIZONTAL);
- clientDependencyData.horizontalSpan = 3;
- this.clientDependency.setLayoutData(clientDependencyData);
- this.clientDependency.disableMove();
- }
-
- /**
- *
- */
- protected void moveClientDependency(Dependency element, int oldIndex, int newIndex) {
- EObject editedElement = clientDependencyEditUtil.foundCorrespondingEObject(element);
- clientDependencyEditUtil.moveElement(element, oldIndex, newIndex);
- clientDependency.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.clientDependency, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromClientDependency(Dependency element) {
-
- // Start of user code removeFromClientDependency() method body
- EObject editedElement = clientDependencyEditUtil.foundCorrespondingEObject(element);
- clientDependencyEditUtil.removeElement(element);
- clientDependency.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.clientDependency,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editClientDependency(Dependency element) {
-
- // Start of user code editClientDependency() method body
- EObject editedElement = clientDependencyEditUtil.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) {
- clientDependencyEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- clientDependency.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.clientDependency,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createElementImportAdvancedTableComposition(Composite parent) {
- this.elementImport = new ReferencesTable<ElementImport>(UMLMessages.ActivityPropertiesEditionPart_ElementImportLabel, new ReferencesTableListener<ElementImport>() {
-
- public void handleAdd() {
- addToElementImport();
- }
-
- public void handleEdit(ElementImport element) {
- editElementImport(element);
- }
-
- public void handleMove(ElementImport element, int oldIndex, int newIndex) {
- moveElementImport(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ElementImport element) {
- removeFromElementImport(element);
- }
-
- public void navigateTo(ElementImport element) {
- }
- });
- this.elementImport.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.elementImport, UMLViewsRepository.SWT_KIND));
- this.elementImport.createControls(parent);
- GridData elementImportData = new GridData(GridData.FILL_HORIZONTAL);
- elementImportData.horizontalSpan = 3;
- this.elementImport.setLayoutData(elementImportData);
- }
-
- /**
- *
- */
- protected void moveElementImport(ElementImport element, int oldIndex, int newIndex) {
- EObject editedElement = elementImportEditUtil.foundCorrespondingEObject(element);
- elementImportEditUtil.moveElement(element, oldIndex, newIndex);
- elementImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.elementImport, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToElementImport() {
-
- // Start of user code addToElementImport() method body
- ElementImport eObject = UMLFactory.eINSTANCE.createElementImport();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- elementImportEditUtil.addElement(propertiesEditionObject);
- elementImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.elementImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromElementImport(ElementImport element) {
-
- // Start of user code removeFromElementImport() method body
- EObject editedElement = elementImportEditUtil.foundCorrespondingEObject(element);
- elementImportEditUtil.removeElement(element);
- elementImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.elementImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editElementImport(ElementImport element) {
-
- // Start of user code editElementImport() method body
- EObject editedElement = elementImportEditUtil.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) {
- elementImportEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- elementImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.elementImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createPackageImportAdvancedTableComposition(Composite parent) {
- this.packageImport = new ReferencesTable<PackageImport>(UMLMessages.ActivityPropertiesEditionPart_PackageImportLabel, new ReferencesTableListener<PackageImport>() {
-
- public void handleAdd() {
- addToPackageImport();
- }
-
- public void handleEdit(PackageImport element) {
- editPackageImport(element);
- }
-
- public void handleMove(PackageImport element, int oldIndex, int newIndex) {
- movePackageImport(element, oldIndex, newIndex);
- }
-
- public void handleRemove(PackageImport element) {
- removeFromPackageImport(element);
- }
-
- public void navigateTo(PackageImport element) {
- }
- });
- this.packageImport.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.packageImport, UMLViewsRepository.SWT_KIND));
- this.packageImport.createControls(parent);
- GridData packageImportData = new GridData(GridData.FILL_HORIZONTAL);
- packageImportData.horizontalSpan = 3;
- this.packageImport.setLayoutData(packageImportData);
- }
-
- /**
- *
- */
- protected void movePackageImport(PackageImport element, int oldIndex, int newIndex) {
- EObject editedElement = packageImportEditUtil.foundCorrespondingEObject(element);
- packageImportEditUtil.moveElement(element, oldIndex, newIndex);
- packageImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.packageImport, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToPackageImport() {
-
- // Start of user code addToPackageImport() method body
- PackageImport eObject = UMLFactory.eINSTANCE.createPackageImport();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- packageImportEditUtil.addElement(propertiesEditionObject);
- packageImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.packageImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromPackageImport(PackageImport element) {
-
- // Start of user code removeFromPackageImport() method body
- EObject editedElement = packageImportEditUtil.foundCorrespondingEObject(element);
- packageImportEditUtil.removeElement(element);
- packageImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.packageImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editPackageImport(PackageImport element) {
-
- // Start of user code editPackageImport() method body
- EObject editedElement = packageImportEditUtil.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) {
- packageImportEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- packageImport.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.packageImport,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedRuleAdvancedTableComposition(Composite parent) {
- this.ownedRule = new ReferencesTable<Constraint>(UMLMessages.ActivityPropertiesEditionPart_OwnedRuleLabel, new ReferencesTableListener<Constraint>() {
-
- public void handleAdd() {
- addToOwnedRule();
- }
-
- public void handleEdit(Constraint element) {
- editOwnedRule(element);
- }
-
- public void handleMove(Constraint element, int oldIndex, int newIndex) {
- moveOwnedRule(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Constraint element) {
- removeFromOwnedRule(element);
- }
-
- public void navigateTo(Constraint element) {
- }
- });
- this.ownedRule.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedRule, UMLViewsRepository.SWT_KIND));
- this.ownedRule.createControls(parent);
- GridData ownedRuleData = new GridData(GridData.FILL_HORIZONTAL);
- ownedRuleData.horizontalSpan = 3;
- this.ownedRule.setLayoutData(ownedRuleData);
- }
-
- /**
- *
- */
- protected void moveOwnedRule(Constraint element, int oldIndex, int newIndex) {
- EObject editedElement = ownedRuleEditUtil.foundCorrespondingEObject(element);
- ownedRuleEditUtil.moveElement(element, oldIndex, newIndex);
- ownedRule.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedRule, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedRule() {
-
- // Start of user code addToOwnedRule() method body
- Constraint eObject = UMLFactory.eINSTANCE.createConstraint();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedRuleEditUtil.addElement(propertiesEditionObject);
- ownedRule.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedRule,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedRule(Constraint element) {
-
- // Start of user code removeFromOwnedRule() method body
- EObject editedElement = ownedRuleEditUtil.foundCorrespondingEObject(element);
- ownedRuleEditUtil.removeElement(element);
- ownedRule.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedRule,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedRule(Constraint element) {
-
- // Start of user code editOwnedRule() method body
- EObject editedElement = ownedRuleEditUtil.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) {
- ownedRuleEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedRule.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedRule,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsLeafCheckbox(Composite parent) {
- isLeaf = new Button(parent, SWT.CHECK);
- isLeaf.setText(UMLMessages.ActivityPropertiesEditionPart_IsLeafLabel);
- GridData isLeafData = new GridData(GridData.FILL_HORIZONTAL);
- isLeafData.horizontalSpan = 2;
- isLeaf.setLayoutData(isLeafData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isLeaf, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- /**
- * @param container
- */
- protected void createTemplateBindingAdvancedTableComposition(Composite parent) {
- this.templateBinding = new ReferencesTable<TemplateBinding>(UMLMessages.ActivityPropertiesEditionPart_TemplateBindingLabel, new ReferencesTableListener<TemplateBinding>() {
-
- public void handleAdd() {
- addToTemplateBinding();
- }
-
- public void handleEdit(TemplateBinding element) {
- editTemplateBinding(element);
- }
-
- public void handleMove(TemplateBinding element, int oldIndex, int newIndex) {
- moveTemplateBinding(element, oldIndex, newIndex);
- }
-
- public void handleRemove(TemplateBinding element) {
- removeFromTemplateBinding(element);
- }
-
- public void navigateTo(TemplateBinding element) {
- }
- });
- this.templateBinding.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.templateBinding, UMLViewsRepository.SWT_KIND));
- this.templateBinding.createControls(parent);
- GridData templateBindingData = new GridData(GridData.FILL_HORIZONTAL);
- templateBindingData.horizontalSpan = 3;
- this.templateBinding.setLayoutData(templateBindingData);
- }
-
- /**
- *
- */
- protected void moveTemplateBinding(TemplateBinding element, int oldIndex, int newIndex) {
- EObject editedElement = templateBindingEditUtil.foundCorrespondingEObject(element);
- templateBindingEditUtil.moveElement(element, oldIndex, newIndex);
- templateBinding.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.templateBinding, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToTemplateBinding() {
-
- // Start of user code addToTemplateBinding() method body
- TemplateBinding eObject = UMLFactory.eINSTANCE.createTemplateBinding();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- templateBindingEditUtil.addElement(propertiesEditionObject);
- templateBinding.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.templateBinding,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromTemplateBinding(TemplateBinding element) {
-
- // Start of user code removeFromTemplateBinding() method body
- EObject editedElement = templateBindingEditUtil.foundCorrespondingEObject(element);
- templateBindingEditUtil.removeElement(element);
- templateBinding.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.templateBinding,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editTemplateBinding(TemplateBinding element) {
-
- // Start of user code editTemplateBinding() method body
- EObject editedElement = templateBindingEditUtil.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) {
- templateBindingEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- templateBinding.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.templateBinding,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsAbstractCheckbox(Composite parent) {
- isAbstract = new Button(parent, SWT.CHECK);
- isAbstract.setText(UMLMessages.ActivityPropertiesEditionPart_IsAbstractLabel);
- GridData isAbstractData = new GridData(GridData.FILL_HORIZONTAL);
- isAbstractData.horizontalSpan = 2;
- isAbstract.setLayoutData(isAbstractData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isAbstract, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- /**
- * @param container
- */
- protected void createGeneralizationAdvancedTableComposition(Composite parent) {
- this.generalization = new ReferencesTable<Generalization>(UMLMessages.ActivityPropertiesEditionPart_GeneralizationLabel, new ReferencesTableListener<Generalization>() {
-
- public void handleAdd() {
- addToGeneralization();
- }
-
- public void handleEdit(Generalization element) {
- editGeneralization(element);
- }
-
- public void handleMove(Generalization element, int oldIndex, int newIndex) {
- moveGeneralization(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Generalization element) {
- removeFromGeneralization(element);
- }
-
- public void navigateTo(Generalization element) {
- }
- });
- this.generalization.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.generalization, UMLViewsRepository.SWT_KIND));
- this.generalization.createControls(parent);
- GridData generalizationData = new GridData(GridData.FILL_HORIZONTAL);
- generalizationData.horizontalSpan = 3;
- this.generalization.setLayoutData(generalizationData);
- }
-
- /**
- *
- */
- protected void moveGeneralization(Generalization element, int oldIndex, int newIndex) {
- EObject editedElement = generalizationEditUtil.foundCorrespondingEObject(element);
- generalizationEditUtil.moveElement(element, oldIndex, newIndex);
- generalization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.generalization, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToGeneralization() {
-
- // Start of user code addToGeneralization() method body
- Generalization eObject = UMLFactory.eINSTANCE.createGeneralization();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- generalizationEditUtil.addElement(propertiesEditionObject);
- generalization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.generalization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromGeneralization(Generalization element) {
-
- // Start of user code removeFromGeneralization() method body
- EObject editedElement = generalizationEditUtil.foundCorrespondingEObject(element);
- generalizationEditUtil.removeElement(element);
- generalization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.generalization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editGeneralization(Generalization element) {
-
- // Start of user code editGeneralization() method body
- EObject editedElement = generalizationEditUtil.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) {
- generalizationEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- generalization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.generalization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createPowertypeExtentAdvancedReferencesTable(Composite parent) {
- this.powertypeExtent = new ReferencesTable<GeneralizationSet>(UMLMessages.ActivityPropertiesEditionPart_PowertypeExtentLabel, new ReferencesTableListener<GeneralizationSet>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<GeneralizationSet> dialog = new TabElementTreeSelectionDialog<GeneralizationSet>(resourceSet, powertypeExtentFilters, powertypeExtentBusinessFilters,
- "GeneralizationSet", UMLPackage.eINSTANCE.getGeneralizationSet(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!powertypeExtentEditUtil.getVirtualList().contains(elem))
- powertypeExtentEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.powertypeExtent,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- powertypeExtent.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(GeneralizationSet element) {
- editPowertypeExtent(element);
- }
-
- public void handleMove(GeneralizationSet element, int oldIndex, int newIndex) {
- movePowertypeExtent(element, oldIndex, newIndex);
- }
-
- public void handleRemove(GeneralizationSet element) {
- removeFromPowertypeExtent(element);
- }
-
- public void navigateTo(GeneralizationSet element) {
- }
- });
- this.powertypeExtent.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.powertypeExtent, UMLViewsRepository.SWT_KIND));
- this.powertypeExtent.createControls(parent);
- GridData powertypeExtentData = new GridData(GridData.FILL_HORIZONTAL);
- powertypeExtentData.horizontalSpan = 3;
- this.powertypeExtent.setLayoutData(powertypeExtentData);
- this.powertypeExtent.disableMove();
- }
-
- /**
- *
- */
- protected void movePowertypeExtent(GeneralizationSet element, int oldIndex, int newIndex) {
- EObject editedElement = powertypeExtentEditUtil.foundCorrespondingEObject(element);
- powertypeExtentEditUtil.moveElement(element, oldIndex, newIndex);
- powertypeExtent.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.powertypeExtent, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromPowertypeExtent(GeneralizationSet element) {
-
- // Start of user code removeFromPowertypeExtent() method body
- EObject editedElement = powertypeExtentEditUtil.foundCorrespondingEObject(element);
- powertypeExtentEditUtil.removeElement(element);
- powertypeExtent.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.powertypeExtent,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editPowertypeExtent(GeneralizationSet element) {
-
- // Start of user code editPowertypeExtent() method body
- EObject editedElement = powertypeExtentEditUtil.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) {
- powertypeExtentEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- powertypeExtent.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.powertypeExtent,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createRedefinedClassifierAdvancedReferencesTable(Composite parent) {
- this.redefinedClassifier = new ReferencesTable<Classifier>(UMLMessages.ActivityPropertiesEditionPart_RedefinedClassifierLabel, new ReferencesTableListener<Classifier>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<Classifier> dialog = new TabElementTreeSelectionDialog<Classifier>(resourceSet, redefinedClassifierFilters, redefinedClassifierBusinessFilters,
- "Classifier", UMLPackage.eINSTANCE.getClassifier(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!redefinedClassifierEditUtil.getVirtualList().contains(elem))
- redefinedClassifierEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedClassifier,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- redefinedClassifier.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(Classifier element) {
- editRedefinedClassifier(element);
- }
-
- public void handleMove(Classifier element, int oldIndex, int newIndex) {
- moveRedefinedClassifier(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Classifier element) {
- removeFromRedefinedClassifier(element);
- }
-
- public void navigateTo(Classifier element) {
- }
- });
- this.redefinedClassifier.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.redefinedClassifier, UMLViewsRepository.SWT_KIND));
- this.redefinedClassifier.createControls(parent);
- GridData redefinedClassifierData = new GridData(GridData.FILL_HORIZONTAL);
- redefinedClassifierData.horizontalSpan = 3;
- this.redefinedClassifier.setLayoutData(redefinedClassifierData);
- this.redefinedClassifier.disableMove();
- }
-
- /**
- *
- */
- protected void moveRedefinedClassifier(Classifier element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void removeFromRedefinedClassifier(Classifier element) {
-
- // Start of user code removeFromRedefinedClassifier() method body
- EObject editedElement = redefinedClassifierEditUtil.foundCorrespondingEObject(element);
- redefinedClassifierEditUtil.removeElement(element);
- redefinedClassifier.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedClassifier,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editRedefinedClassifier(Classifier element) {
-
- // Start of user code editRedefinedClassifier() method body
- EObject editedElement = redefinedClassifierEditUtil.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) {
- redefinedClassifierEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- redefinedClassifier.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedClassifier,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createSubstitutionAdvancedTableComposition(Composite parent) {
- this.substitution = new ReferencesTable<Substitution>(UMLMessages.ActivityPropertiesEditionPart_SubstitutionLabel, new ReferencesTableListener<Substitution>() {
-
- public void handleAdd() {
- addToSubstitution();
- }
-
- public void handleEdit(Substitution element) {
- editSubstitution(element);
- }
-
- public void handleMove(Substitution element, int oldIndex, int newIndex) {
- moveSubstitution(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Substitution element) {
- removeFromSubstitution(element);
- }
-
- public void navigateTo(Substitution element) {
- }
- });
- this.substitution.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.substitution, UMLViewsRepository.SWT_KIND));
- this.substitution.createControls(parent);
- GridData substitutionData = new GridData(GridData.FILL_HORIZONTAL);
- substitutionData.horizontalSpan = 3;
- this.substitution.setLayoutData(substitutionData);
- }
-
- /**
- *
- */
- protected void moveSubstitution(Substitution element, int oldIndex, int newIndex) {
- EObject editedElement = substitutionEditUtil.foundCorrespondingEObject(element);
- substitutionEditUtil.moveElement(element, oldIndex, newIndex);
- substitution.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.substitution, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToSubstitution() {
-
- // Start of user code addToSubstitution() method body
- Substitution eObject = UMLFactory.eINSTANCE.createSubstitution();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- substitutionEditUtil.addElement(propertiesEditionObject);
- substitution.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.substitution,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromSubstitution(Substitution element) {
-
- // Start of user code removeFromSubstitution() method body
- EObject editedElement = substitutionEditUtil.foundCorrespondingEObject(element);
- substitutionEditUtil.removeElement(element);
- substitution.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.substitution,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editSubstitution(Substitution element) {
-
- // Start of user code editSubstitution() method body
- EObject editedElement = substitutionEditUtil.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) {
- substitutionEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- substitution.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.substitution,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createCollaborationUseAdvancedTableComposition(Composite parent) {
- this.collaborationUse = new ReferencesTable<CollaborationUse>(UMLMessages.ActivityPropertiesEditionPart_CollaborationUseLabel, new ReferencesTableListener<CollaborationUse>() {
-
- public void handleAdd() {
- addToCollaborationUse();
- }
-
- public void handleEdit(CollaborationUse element) {
- editCollaborationUse(element);
- }
-
- public void handleMove(CollaborationUse element, int oldIndex, int newIndex) {
- moveCollaborationUse(element, oldIndex, newIndex);
- }
-
- public void handleRemove(CollaborationUse element) {
- removeFromCollaborationUse(element);
- }
-
- public void navigateTo(CollaborationUse element) {
- }
- });
- this.collaborationUse.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.collaborationUse, UMLViewsRepository.SWT_KIND));
- this.collaborationUse.createControls(parent);
- GridData collaborationUseData = new GridData(GridData.FILL_HORIZONTAL);
- collaborationUseData.horizontalSpan = 3;
- this.collaborationUse.setLayoutData(collaborationUseData);
- }
-
- /**
- *
- */
- protected void moveCollaborationUse(CollaborationUse element, int oldIndex, int newIndex) {
- EObject editedElement = collaborationUseEditUtil.foundCorrespondingEObject(element);
- collaborationUseEditUtil.moveElement(element, oldIndex, newIndex);
- collaborationUse.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.collaborationUse, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToCollaborationUse() {
-
- // Start of user code addToCollaborationUse() method body
- CollaborationUse eObject = UMLFactory.eINSTANCE.createCollaborationUse();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- collaborationUseEditUtil.addElement(propertiesEditionObject);
- collaborationUse.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.collaborationUse,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromCollaborationUse(CollaborationUse element) {
-
- // Start of user code removeFromCollaborationUse() method body
- EObject editedElement = collaborationUseEditUtil.foundCorrespondingEObject(element);
- collaborationUseEditUtil.removeElement(element);
- collaborationUse.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.collaborationUse,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editCollaborationUse(CollaborationUse element) {
-
- // Start of user code editCollaborationUse() method body
- EObject editedElement = collaborationUseEditUtil.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) {
- collaborationUseEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- collaborationUse.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.collaborationUse,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedUseCaseAdvancedTableComposition(Composite parent) {
- this.ownedUseCase = new ReferencesTable<UseCase>(UMLMessages.ActivityPropertiesEditionPart_OwnedUseCaseLabel, new ReferencesTableListener<UseCase>() {
-
- public void handleAdd() {
- addToOwnedUseCase();
- }
-
- public void handleEdit(UseCase element) {
- editOwnedUseCase(element);
- }
-
- public void handleMove(UseCase element, int oldIndex, int newIndex) {
- moveOwnedUseCase(element, oldIndex, newIndex);
- }
-
- public void handleRemove(UseCase element) {
- removeFromOwnedUseCase(element);
- }
-
- public void navigateTo(UseCase element) {
- }
- });
- this.ownedUseCase.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedUseCase, UMLViewsRepository.SWT_KIND));
- this.ownedUseCase.createControls(parent);
- GridData ownedUseCaseData = new GridData(GridData.FILL_HORIZONTAL);
- ownedUseCaseData.horizontalSpan = 3;
- this.ownedUseCase.setLayoutData(ownedUseCaseData);
- }
-
- /**
- *
- */
- protected void moveOwnedUseCase(UseCase element, int oldIndex, int newIndex) {
- EObject editedElement = ownedUseCaseEditUtil.foundCorrespondingEObject(element);
- ownedUseCaseEditUtil.moveElement(element, oldIndex, newIndex);
- ownedUseCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedUseCase, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedUseCase() {
-
- // Start of user code addToOwnedUseCase() method body
- UseCase eObject = UMLFactory.eINSTANCE.createUseCase();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedUseCaseEditUtil.addElement(propertiesEditionObject);
- ownedUseCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedUseCase,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedUseCase(UseCase element) {
-
- // Start of user code removeFromOwnedUseCase() method body
- EObject editedElement = ownedUseCaseEditUtil.foundCorrespondingEObject(element);
- ownedUseCaseEditUtil.removeElement(element);
- ownedUseCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedUseCase,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedUseCase(UseCase element) {
-
- // Start of user code editOwnedUseCase() method body
- EObject editedElement = ownedUseCaseEditUtil.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) {
- ownedUseCaseEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedUseCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedUseCase,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createUseCaseAdvancedReferencesTable(Composite parent) {
- this.useCase = new ReferencesTable<UseCase>(UMLMessages.ActivityPropertiesEditionPart_UseCaseLabel, new ReferencesTableListener<UseCase>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<UseCase> dialog = new TabElementTreeSelectionDialog<UseCase>(resourceSet, useCaseFilters, useCaseBusinessFilters,
- "UseCase", UMLPackage.eINSTANCE.getUseCase(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!useCaseEditUtil.getVirtualList().contains(elem))
- useCaseEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.useCase,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- useCase.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(UseCase element) {
- editUseCase(element);
- }
-
- public void handleMove(UseCase element, int oldIndex, int newIndex) {
- moveUseCase(element, oldIndex, newIndex);
- }
-
- public void handleRemove(UseCase element) {
- removeFromUseCase(element);
- }
-
- public void navigateTo(UseCase element) {
- }
- });
- this.useCase.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.useCase, UMLViewsRepository.SWT_KIND));
- this.useCase.createControls(parent);
- GridData useCaseData = new GridData(GridData.FILL_HORIZONTAL);
- useCaseData.horizontalSpan = 3;
- this.useCase.setLayoutData(useCaseData);
- this.useCase.disableMove();
- }
-
- /**
- *
- */
- protected void moveUseCase(UseCase element, int oldIndex, int newIndex) {
- EObject editedElement = useCaseEditUtil.foundCorrespondingEObject(element);
- useCaseEditUtil.moveElement(element, oldIndex, newIndex);
- useCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.useCase, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromUseCase(UseCase element) {
-
- // Start of user code removeFromUseCase() method body
- EObject editedElement = useCaseEditUtil.foundCorrespondingEObject(element);
- useCaseEditUtil.removeElement(element);
- useCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.useCase,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editUseCase(UseCase element) {
-
- // Start of user code editUseCase() method body
- EObject editedElement = useCaseEditUtil.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) {
- useCaseEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- useCase.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.useCase,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedAttributeAdvancedTableComposition(Composite parent) {
- this.ownedAttribute = new ReferencesTable<Property>(UMLMessages.ActivityPropertiesEditionPart_OwnedAttributeLabel, new ReferencesTableListener<Property>() {
-
- public void handleAdd() {
- addToOwnedAttribute();
- }
-
- public void handleEdit(Property element) {
- editOwnedAttribute(element);
- }
-
- public void handleMove(Property element, int oldIndex, int newIndex) {
- moveOwnedAttribute(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Property element) {
- removeFromOwnedAttribute(element);
- }
-
- public void navigateTo(Property element) {
- }
- });
- this.ownedAttribute.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedAttribute, UMLViewsRepository.SWT_KIND));
- this.ownedAttribute.createControls(parent);
- GridData ownedAttributeData = new GridData(GridData.FILL_HORIZONTAL);
- ownedAttributeData.horizontalSpan = 3;
- this.ownedAttribute.setLayoutData(ownedAttributeData);
- }
-
- /**
- *
- */
- protected void moveOwnedAttribute(Property element, int oldIndex, int newIndex) {
- EObject editedElement = ownedAttributeEditUtil.foundCorrespondingEObject(element);
- ownedAttributeEditUtil.moveElement(element, oldIndex, newIndex);
- ownedAttribute.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedAttribute, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedAttribute() {
-
- // Start of user code addToOwnedAttribute() method body
- Property eObject = UMLFactory.eINSTANCE.createProperty();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedAttributeEditUtil.addElement(propertiesEditionObject);
- ownedAttribute.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedAttribute,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedAttribute(Property element) {
-
- // Start of user code removeFromOwnedAttribute() method body
- EObject editedElement = ownedAttributeEditUtil.foundCorrespondingEObject(element);
- ownedAttributeEditUtil.removeElement(element);
- ownedAttribute.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedAttribute,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedAttribute(Property element) {
-
- // Start of user code editOwnedAttribute() method body
- EObject editedElement = ownedAttributeEditUtil.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) {
- ownedAttributeEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedAttribute.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedAttribute,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedConnectorAdvancedTableComposition(Composite parent) {
- this.ownedConnector = new ReferencesTable<Connector>(UMLMessages.ActivityPropertiesEditionPart_OwnedConnectorLabel, new ReferencesTableListener<Connector>() {
-
- public void handleAdd() {
- addToOwnedConnector();
- }
-
- public void handleEdit(Connector element) {
- editOwnedConnector(element);
- }
-
- public void handleMove(Connector element, int oldIndex, int newIndex) {
- moveOwnedConnector(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Connector element) {
- removeFromOwnedConnector(element);
- }
-
- public void navigateTo(Connector element) {
- }
- });
- this.ownedConnector.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedConnector, UMLViewsRepository.SWT_KIND));
- this.ownedConnector.createControls(parent);
- GridData ownedConnectorData = new GridData(GridData.FILL_HORIZONTAL);
- ownedConnectorData.horizontalSpan = 3;
- this.ownedConnector.setLayoutData(ownedConnectorData);
- }
-
- /**
- *
- */
- protected void moveOwnedConnector(Connector element, int oldIndex, int newIndex) {
- EObject editedElement = ownedConnectorEditUtil.foundCorrespondingEObject(element);
- ownedConnectorEditUtil.moveElement(element, oldIndex, newIndex);
- ownedConnector.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedConnector, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedConnector() {
-
- // Start of user code addToOwnedConnector() method body
- Connector eObject = UMLFactory.eINSTANCE.createConnector();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedConnectorEditUtil.addElement(propertiesEditionObject);
- ownedConnector.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedConnector,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedConnector(Connector element) {
-
- // Start of user code removeFromOwnedConnector() method body
- EObject editedElement = ownedConnectorEditUtil.foundCorrespondingEObject(element);
- ownedConnectorEditUtil.removeElement(element);
- ownedConnector.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedConnector,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedConnector(Connector element) {
-
- // Start of user code editOwnedConnector() method body
- EObject editedElement = ownedConnectorEditUtil.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) {
- ownedConnectorEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedConnector.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedConnector,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedBehaviorAdvancedTableComposition(Composite parent) {
- this.ownedBehavior = new ReferencesTable<Behavior>(UMLMessages.ActivityPropertiesEditionPart_OwnedBehaviorLabel, new ReferencesTableListener<Behavior>() {
-
- public void handleAdd() {
- addToOwnedBehavior();
- }
-
- public void handleEdit(Behavior element) {
- editOwnedBehavior(element);
- }
-
- public void handleMove(Behavior element, int oldIndex, int newIndex) {
- moveOwnedBehavior(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Behavior element) {
- removeFromOwnedBehavior(element);
- }
-
- public void navigateTo(Behavior element) {
- }
- });
- this.ownedBehavior.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedBehavior, UMLViewsRepository.SWT_KIND));
- this.ownedBehavior.createControls(parent);
- GridData ownedBehaviorData = new GridData(GridData.FILL_HORIZONTAL);
- ownedBehaviorData.horizontalSpan = 3;
- this.ownedBehavior.setLayoutData(ownedBehaviorData);
- }
-
- /**
- *
- */
- protected void moveOwnedBehavior(Behavior element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void addToOwnedBehavior() {
-
- // Start of user code addToOwnedBehavior() method body
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedBehavior(Behavior element) {
-
- // Start of user code removeFromOwnedBehavior() method body
- EObject editedElement = ownedBehaviorEditUtil.foundCorrespondingEObject(element);
- ownedBehaviorEditUtil.removeElement(element);
- ownedBehavior.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedBehavior,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedBehavior(Behavior element) {
-
- // Start of user code editOwnedBehavior() method body
- EObject editedElement = ownedBehaviorEditUtil.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) {
- ownedBehaviorEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedBehavior.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedBehavior,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createInterfaceRealizationAdvancedTableComposition(Composite parent) {
- this.interfaceRealization = new ReferencesTable<InterfaceRealization>(UMLMessages.ActivityPropertiesEditionPart_InterfaceRealizationLabel, new ReferencesTableListener<InterfaceRealization>() {
-
- public void handleAdd() {
- addToInterfaceRealization();
- }
-
- public void handleEdit(InterfaceRealization element) {
- editInterfaceRealization(element);
- }
-
- public void handleMove(InterfaceRealization element, int oldIndex, int newIndex) {
- moveInterfaceRealization(element, oldIndex, newIndex);
- }
-
- public void handleRemove(InterfaceRealization element) {
- removeFromInterfaceRealization(element);
- }
-
- public void navigateTo(InterfaceRealization element) {
- }
- });
- this.interfaceRealization.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.interfaceRealization, UMLViewsRepository.SWT_KIND));
- this.interfaceRealization.createControls(parent);
- GridData interfaceRealizationData = new GridData(GridData.FILL_HORIZONTAL);
- interfaceRealizationData.horizontalSpan = 3;
- this.interfaceRealization.setLayoutData(interfaceRealizationData);
- }
-
- /**
- *
- */
- protected void moveInterfaceRealization(InterfaceRealization element, int oldIndex, int newIndex) {
- EObject editedElement = interfaceRealizationEditUtil.foundCorrespondingEObject(element);
- interfaceRealizationEditUtil.moveElement(element, oldIndex, newIndex);
- interfaceRealization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.interfaceRealization, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToInterfaceRealization() {
-
- // Start of user code addToInterfaceRealization() method body
- InterfaceRealization eObject = UMLFactory.eINSTANCE.createInterfaceRealization();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- interfaceRealizationEditUtil.addElement(propertiesEditionObject);
- interfaceRealization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.interfaceRealization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromInterfaceRealization(InterfaceRealization element) {
-
- // Start of user code removeFromInterfaceRealization() method body
- EObject editedElement = interfaceRealizationEditUtil.foundCorrespondingEObject(element);
- interfaceRealizationEditUtil.removeElement(element);
- interfaceRealization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.interfaceRealization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editInterfaceRealization(InterfaceRealization element) {
-
- // Start of user code editInterfaceRealization() method body
- EObject editedElement = interfaceRealizationEditUtil.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) {
- interfaceRealizationEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- interfaceRealization.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.interfaceRealization,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedTriggerAdvancedTableComposition(Composite parent) {
- this.ownedTrigger = new ReferencesTable<Trigger>(UMLMessages.ActivityPropertiesEditionPart_OwnedTriggerLabel, new ReferencesTableListener<Trigger>() {
-
- public void handleAdd() {
- addToOwnedTrigger();
- }
-
- public void handleEdit(Trigger element) {
- editOwnedTrigger(element);
- }
-
- public void handleMove(Trigger element, int oldIndex, int newIndex) {
- moveOwnedTrigger(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Trigger element) {
- removeFromOwnedTrigger(element);
- }
-
- public void navigateTo(Trigger element) {
- }
- });
- this.ownedTrigger.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedTrigger, UMLViewsRepository.SWT_KIND));
- this.ownedTrigger.createControls(parent);
- GridData ownedTriggerData = new GridData(GridData.FILL_HORIZONTAL);
- ownedTriggerData.horizontalSpan = 3;
- this.ownedTrigger.setLayoutData(ownedTriggerData);
- }
-
- /**
- *
- */
- protected void moveOwnedTrigger(Trigger element, int oldIndex, int newIndex) {
- EObject editedElement = ownedTriggerEditUtil.foundCorrespondingEObject(element);
- ownedTriggerEditUtil.moveElement(element, oldIndex, newIndex);
- ownedTrigger.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedTrigger, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedTrigger() {
-
- // Start of user code addToOwnedTrigger() method body
- Trigger eObject = UMLFactory.eINSTANCE.createTrigger();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedTriggerEditUtil.addElement(propertiesEditionObject);
- ownedTrigger.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedTrigger,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedTrigger(Trigger element) {
-
- // Start of user code removeFromOwnedTrigger() method body
- EObject editedElement = ownedTriggerEditUtil.foundCorrespondingEObject(element);
- ownedTriggerEditUtil.removeElement(element);
- ownedTrigger.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedTrigger,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedTrigger(Trigger element) {
-
- // Start of user code editOwnedTrigger() method body
- EObject editedElement = ownedTriggerEditUtil.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) {
- ownedTriggerEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedTrigger.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedTrigger,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createNestedClassifierAdvancedTableComposition(Composite parent) {
- this.nestedClassifier = new ReferencesTable<Classifier>(UMLMessages.ActivityPropertiesEditionPart_NestedClassifierLabel, new ReferencesTableListener<Classifier>() {
-
- public void handleAdd() {
- addToNestedClassifier();
- }
-
- public void handleEdit(Classifier element) {
- editNestedClassifier(element);
- }
-
- public void handleMove(Classifier element, int oldIndex, int newIndex) {
- moveNestedClassifier(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Classifier element) {
- removeFromNestedClassifier(element);
- }
-
- public void navigateTo(Classifier element) {
- }
- });
- this.nestedClassifier.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.nestedClassifier, UMLViewsRepository.SWT_KIND));
- this.nestedClassifier.createControls(parent);
- GridData nestedClassifierData = new GridData(GridData.FILL_HORIZONTAL);
- nestedClassifierData.horizontalSpan = 3;
- this.nestedClassifier.setLayoutData(nestedClassifierData);
- }
-
- /**
- *
- */
- protected void moveNestedClassifier(Classifier element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void addToNestedClassifier() {
-
- // Start of user code addToNestedClassifier() method body
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromNestedClassifier(Classifier element) {
-
- // Start of user code removeFromNestedClassifier() method body
- EObject editedElement = nestedClassifierEditUtil.foundCorrespondingEObject(element);
- nestedClassifierEditUtil.removeElement(element);
- nestedClassifier.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.nestedClassifier,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editNestedClassifier(Classifier element) {
-
- // Start of user code editNestedClassifier() method body
- EObject editedElement = nestedClassifierEditUtil.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) {
- nestedClassifierEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- nestedClassifier.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.nestedClassifier,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedOperationAdvancedTableComposition(Composite parent) {
- this.ownedOperation = new ReferencesTable<Operation>(UMLMessages.ActivityPropertiesEditionPart_OwnedOperationLabel, new ReferencesTableListener<Operation>() {
-
- public void handleAdd() {
- addToOwnedOperation();
- }
-
- public void handleEdit(Operation element) {
- editOwnedOperation(element);
- }
-
- public void handleMove(Operation element, int oldIndex, int newIndex) {
- moveOwnedOperation(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Operation element) {
- removeFromOwnedOperation(element);
- }
-
- public void navigateTo(Operation element) {
- }
- });
- this.ownedOperation.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedOperation, UMLViewsRepository.SWT_KIND));
- this.ownedOperation.createControls(parent);
- GridData ownedOperationData = new GridData(GridData.FILL_HORIZONTAL);
- ownedOperationData.horizontalSpan = 3;
- this.ownedOperation.setLayoutData(ownedOperationData);
- }
-
- /**
- *
- */
- protected void moveOwnedOperation(Operation element, int oldIndex, int newIndex) {
- EObject editedElement = ownedOperationEditUtil.foundCorrespondingEObject(element);
- ownedOperationEditUtil.moveElement(element, oldIndex, newIndex);
- ownedOperation.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedOperation, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedOperation() {
-
- // Start of user code addToOwnedOperation() method body
- Operation eObject = UMLFactory.eINSTANCE.createOperation();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedOperationEditUtil.addElement(propertiesEditionObject);
- ownedOperation.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedOperation,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedOperation(Operation element) {
-
- // Start of user code removeFromOwnedOperation() method body
- EObject editedElement = ownedOperationEditUtil.foundCorrespondingEObject(element);
- ownedOperationEditUtil.removeElement(element);
- ownedOperation.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedOperation,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedOperation(Operation element) {
-
- // Start of user code editOwnedOperation() method body
- EObject editedElement = ownedOperationEditUtil.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) {
- ownedOperationEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedOperation.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedOperation,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsActiveCheckbox(Composite parent) {
- isActive = new Button(parent, SWT.CHECK);
- isActive.setText(UMLMessages.ActivityPropertiesEditionPart_IsActiveLabel);
- GridData isActiveData = new GridData(GridData.FILL_HORIZONTAL);
- isActiveData.horizontalSpan = 2;
- isActive.setLayoutData(isActiveData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isActive, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- /**
- * @param container
- */
- protected void createOwnedReceptionAdvancedTableComposition(Composite parent) {
- this.ownedReception = new ReferencesTable<Reception>(UMLMessages.ActivityPropertiesEditionPart_OwnedReceptionLabel, new ReferencesTableListener<Reception>() {
-
- public void handleAdd() {
- addToOwnedReception();
- }
-
- public void handleEdit(Reception element) {
- editOwnedReception(element);
- }
-
- public void handleMove(Reception element, int oldIndex, int newIndex) {
- moveOwnedReception(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Reception element) {
- removeFromOwnedReception(element);
- }
-
- public void navigateTo(Reception element) {
- }
- });
- this.ownedReception.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedReception, UMLViewsRepository.SWT_KIND));
- this.ownedReception.createControls(parent);
- GridData ownedReceptionData = new GridData(GridData.FILL_HORIZONTAL);
- ownedReceptionData.horizontalSpan = 3;
- this.ownedReception.setLayoutData(ownedReceptionData);
- }
-
- /**
- *
- */
- protected void moveOwnedReception(Reception element, int oldIndex, int newIndex) {
- EObject editedElement = ownedReceptionEditUtil.foundCorrespondingEObject(element);
- ownedReceptionEditUtil.moveElement(element, oldIndex, newIndex);
- ownedReception.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedReception, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedReception() {
-
- // Start of user code addToOwnedReception() method body
- Reception eObject = UMLFactory.eINSTANCE.createReception();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedReceptionEditUtil.addElement(propertiesEditionObject);
- ownedReception.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedReception,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedReception(Reception element) {
-
- // Start of user code removeFromOwnedReception() method body
- EObject editedElement = ownedReceptionEditUtil.foundCorrespondingEObject(element);
- ownedReceptionEditUtil.removeElement(element);
- ownedReception.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedReception,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedReception(Reception element) {
-
- // Start of user code editOwnedReception() method body
- EObject editedElement = ownedReceptionEditUtil.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) {
- ownedReceptionEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedReception.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedReception,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsReentrantCheckbox(Composite parent) {
- isReentrant = new Button(parent, SWT.CHECK);
- isReentrant.setText(UMLMessages.ActivityPropertiesEditionPart_IsReentrantLabel);
- GridData isReentrantData = new GridData(GridData.FILL_HORIZONTAL);
- isReentrantData.horizontalSpan = 2;
- isReentrant.setLayoutData(isReentrantData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isReentrant, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- protected void createRedefinedBehaviorAdvancedReferencesTable(Composite parent) {
- this.redefinedBehavior = new ReferencesTable<Behavior>(UMLMessages.ActivityPropertiesEditionPart_RedefinedBehaviorLabel, new ReferencesTableListener<Behavior>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<Behavior> dialog = new TabElementTreeSelectionDialog<Behavior>(resourceSet, redefinedBehaviorFilters, redefinedBehaviorBusinessFilters,
- "Behavior", UMLPackage.eINSTANCE.getBehavior(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!redefinedBehaviorEditUtil.getVirtualList().contains(elem))
- redefinedBehaviorEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedBehavior,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- redefinedBehavior.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(Behavior element) {
- editRedefinedBehavior(element);
- }
-
- public void handleMove(Behavior element, int oldIndex, int newIndex) {
- moveRedefinedBehavior(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Behavior element) {
- removeFromRedefinedBehavior(element);
- }
-
- public void navigateTo(Behavior element) {
- }
- });
- this.redefinedBehavior.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.redefinedBehavior, UMLViewsRepository.SWT_KIND));
- this.redefinedBehavior.createControls(parent);
- GridData redefinedBehaviorData = new GridData(GridData.FILL_HORIZONTAL);
- redefinedBehaviorData.horizontalSpan = 3;
- this.redefinedBehavior.setLayoutData(redefinedBehaviorData);
- this.redefinedBehavior.disableMove();
- }
-
- /**
- *
- */
- protected void moveRedefinedBehavior(Behavior element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void removeFromRedefinedBehavior(Behavior element) {
-
- // Start of user code removeFromRedefinedBehavior() method body
- EObject editedElement = redefinedBehaviorEditUtil.foundCorrespondingEObject(element);
- redefinedBehaviorEditUtil.removeElement(element);
- redefinedBehavior.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedBehavior,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editRedefinedBehavior(Behavior element) {
-
- // Start of user code editRedefinedBehavior() method body
- EObject editedElement = redefinedBehaviorEditUtil.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) {
- redefinedBehaviorEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- redefinedBehavior.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.redefinedBehavior,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedParameterAdvancedTableComposition(Composite parent) {
- this.ownedParameter = new ReferencesTable<Parameter>(UMLMessages.ActivityPropertiesEditionPart_OwnedParameterLabel, new ReferencesTableListener<Parameter>() {
-
- public void handleAdd() {
- addToOwnedParameter();
- }
-
- public void handleEdit(Parameter element) {
- editOwnedParameter(element);
- }
-
- public void handleMove(Parameter element, int oldIndex, int newIndex) {
- moveOwnedParameter(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Parameter element) {
- removeFromOwnedParameter(element);
- }
-
- public void navigateTo(Parameter element) {
- }
- });
- this.ownedParameter.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedParameter, UMLViewsRepository.SWT_KIND));
- this.ownedParameter.createControls(parent);
- GridData ownedParameterData = new GridData(GridData.FILL_HORIZONTAL);
- ownedParameterData.horizontalSpan = 3;
- this.ownedParameter.setLayoutData(ownedParameterData);
- }
-
- /**
- *
- */
- protected void moveOwnedParameter(Parameter element, int oldIndex, int newIndex) {
- EObject editedElement = ownedParameterEditUtil.foundCorrespondingEObject(element);
- ownedParameterEditUtil.moveElement(element, oldIndex, newIndex);
- ownedParameter.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameter, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedParameter() {
-
- // Start of user code addToOwnedParameter() method body
- Parameter eObject = UMLFactory.eINSTANCE.createParameter();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedParameterEditUtil.addElement(propertiesEditionObject);
- ownedParameter.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameter,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedParameter(Parameter element) {
-
- // Start of user code removeFromOwnedParameter() method body
- EObject editedElement = ownedParameterEditUtil.foundCorrespondingEObject(element);
- ownedParameterEditUtil.removeElement(element);
- ownedParameter.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameter,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedParameter(Parameter element) {
-
- // Start of user code editOwnedParameter() method body
- EObject editedElement = ownedParameterEditUtil.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) {
- ownedParameterEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedParameter.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameter,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createPreconditionAdvancedReferencesTable(Composite parent) {
- this.precondition = new ReferencesTable<Constraint>(UMLMessages.ActivityPropertiesEditionPart_PreconditionLabel, new ReferencesTableListener<Constraint>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<Constraint> dialog = new TabElementTreeSelectionDialog<Constraint>(resourceSet, preconditionFilters, preconditionBusinessFilters,
- "Constraint", UMLPackage.eINSTANCE.getConstraint(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!preconditionEditUtil.getVirtualList().contains(elem))
- preconditionEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.precondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- precondition.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(Constraint element) {
- editPrecondition(element);
- }
-
- public void handleMove(Constraint element, int oldIndex, int newIndex) {
- movePrecondition(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Constraint element) {
- removeFromPrecondition(element);
- }
-
- public void navigateTo(Constraint element) {
- }
- });
- this.precondition.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.precondition, UMLViewsRepository.SWT_KIND));
- this.precondition.createControls(parent);
- GridData preconditionData = new GridData(GridData.FILL_HORIZONTAL);
- preconditionData.horizontalSpan = 3;
- this.precondition.setLayoutData(preconditionData);
- this.precondition.disableMove();
- }
-
- /**
- *
- */
- protected void movePrecondition(Constraint element, int oldIndex, int newIndex) {
- EObject editedElement = preconditionEditUtil.foundCorrespondingEObject(element);
- preconditionEditUtil.moveElement(element, oldIndex, newIndex);
- precondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.precondition, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromPrecondition(Constraint element) {
-
- // Start of user code removeFromPrecondition() method body
- EObject editedElement = preconditionEditUtil.foundCorrespondingEObject(element);
- preconditionEditUtil.removeElement(element);
- precondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.precondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editPrecondition(Constraint element) {
-
- // Start of user code editPrecondition() method body
- EObject editedElement = preconditionEditUtil.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) {
- preconditionEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- precondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.precondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createPostconditionAdvancedReferencesTable(Composite parent) {
- this.postcondition = new ReferencesTable<Constraint>(UMLMessages.ActivityPropertiesEditionPart_PostconditionLabel, new ReferencesTableListener<Constraint>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<Constraint> dialog = new TabElementTreeSelectionDialog<Constraint>(resourceSet, postconditionFilters, postconditionBusinessFilters,
- "Constraint", UMLPackage.eINSTANCE.getConstraint(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!postconditionEditUtil.getVirtualList().contains(elem))
- postconditionEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.postcondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- postcondition.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(Constraint element) {
- editPostcondition(element);
- }
-
- public void handleMove(Constraint element, int oldIndex, int newIndex) {
- movePostcondition(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Constraint element) {
- removeFromPostcondition(element);
- }
-
- public void navigateTo(Constraint element) {
- }
- });
- this.postcondition.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.postcondition, UMLViewsRepository.SWT_KIND));
- this.postcondition.createControls(parent);
- GridData postconditionData = new GridData(GridData.FILL_HORIZONTAL);
- postconditionData.horizontalSpan = 3;
- this.postcondition.setLayoutData(postconditionData);
- this.postcondition.disableMove();
- }
-
- /**
- *
- */
- protected void movePostcondition(Constraint element, int oldIndex, int newIndex) {
- EObject editedElement = postconditionEditUtil.foundCorrespondingEObject(element);
- postconditionEditUtil.moveElement(element, oldIndex, newIndex);
- postcondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.postcondition, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromPostcondition(Constraint element) {
-
- // Start of user code removeFromPostcondition() method body
- EObject editedElement = postconditionEditUtil.foundCorrespondingEObject(element);
- postconditionEditUtil.removeElement(element);
- postcondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.postcondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editPostcondition(Constraint element) {
-
- // Start of user code editPostcondition() method body
- EObject editedElement = postconditionEditUtil.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) {
- postconditionEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- postcondition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.postcondition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createOwnedParameterSetAdvancedTableComposition(Composite parent) {
- this.ownedParameterSet = new ReferencesTable<ParameterSet>(UMLMessages.ActivityPropertiesEditionPart_OwnedParameterSetLabel, new ReferencesTableListener<ParameterSet>() {
-
- public void handleAdd() {
- addToOwnedParameterSet();
- }
-
- public void handleEdit(ParameterSet element) {
- editOwnedParameterSet(element);
- }
-
- public void handleMove(ParameterSet element, int oldIndex, int newIndex) {
- moveOwnedParameterSet(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ParameterSet element) {
- removeFromOwnedParameterSet(element);
- }
-
- public void navigateTo(ParameterSet element) {
- }
- });
- this.ownedParameterSet.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.ownedParameterSet, UMLViewsRepository.SWT_KIND));
- this.ownedParameterSet.createControls(parent);
- GridData ownedParameterSetData = new GridData(GridData.FILL_HORIZONTAL);
- ownedParameterSetData.horizontalSpan = 3;
- this.ownedParameterSet.setLayoutData(ownedParameterSetData);
- }
-
- /**
- *
- */
- protected void moveOwnedParameterSet(ParameterSet element, int oldIndex, int newIndex) {
- EObject editedElement = ownedParameterSetEditUtil.foundCorrespondingEObject(element);
- ownedParameterSetEditUtil.moveElement(element, oldIndex, newIndex);
- ownedParameterSet.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameterSet, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToOwnedParameterSet() {
-
- // Start of user code addToOwnedParameterSet() method body
- ParameterSet eObject = UMLFactory.eINSTANCE.createParameterSet();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- ownedParameterSetEditUtil.addElement(propertiesEditionObject);
- ownedParameterSet.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameterSet,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromOwnedParameterSet(ParameterSet element) {
-
- // Start of user code removeFromOwnedParameterSet() method body
- EObject editedElement = ownedParameterSetEditUtil.foundCorrespondingEObject(element);
- ownedParameterSetEditUtil.removeElement(element);
- ownedParameterSet.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameterSet,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editOwnedParameterSet(ParameterSet element) {
-
- // Start of user code editOwnedParameterSet() method body
- EObject editedElement = ownedParameterSetEditUtil.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) {
- ownedParameterSetEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- ownedParameterSet.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.ownedParameterSet,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createVariableAdvancedTableComposition(Composite parent) {
- this.variable = new ReferencesTable<Variable>(UMLMessages.ActivityPropertiesEditionPart_VariableLabel, new ReferencesTableListener<Variable>() {
-
- public void handleAdd() {
- addToVariable();
- }
-
- public void handleEdit(Variable element) {
- editVariable(element);
- }
-
- public void handleMove(Variable element, int oldIndex, int newIndex) {
- moveVariable(element, oldIndex, newIndex);
- }
-
- public void handleRemove(Variable element) {
- removeFromVariable(element);
- }
-
- public void navigateTo(Variable element) {
- }
- });
- this.variable.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.variable, UMLViewsRepository.SWT_KIND));
- this.variable.createControls(parent);
- GridData variableData = new GridData(GridData.FILL_HORIZONTAL);
- variableData.horizontalSpan = 3;
- this.variable.setLayoutData(variableData);
- }
-
- /**
- *
- */
- protected void moveVariable(Variable element, int oldIndex, int newIndex) {
- EObject editedElement = variableEditUtil.foundCorrespondingEObject(element);
- variableEditUtil.moveElement(element, oldIndex, newIndex);
- variable.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.variable, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void addToVariable() {
-
- // Start of user code addToVariable() method body
- Variable eObject = UMLFactory.eINSTANCE.createVariable();
- IPropertiesEditionPolicyProvider policyProvider = PropertiesEditionPolicyProviderService.getInstance()
- .getProvider(eObject);
- IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
- if(editionPolicy != null) {
- EObject propertiesEditionObject = editionPolicy
- .getPropertiesEditionObject(new EObjectPropertiesEditionContext(propertiesEditionComponent,
- eObject, resourceSet));
- if(propertiesEditionObject != null) {
- variableEditUtil.addElement(propertiesEditionObject);
- variable.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.variable,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.ADD, null, propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromVariable(Variable element) {
-
- // Start of user code removeFromVariable() method body
- EObject editedElement = variableEditUtil.foundCorrespondingEObject(element);
- variableEditUtil.removeElement(element);
- variable.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.variable,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editVariable(Variable element) {
-
- // Start of user code editVariable() method body
- EObject editedElement = variableEditUtil.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) {
- variableEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- variable.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.variable,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- /**
- * @param container
- */
- protected void createNodeAdvancedTableComposition(Composite parent) {
- this.node = new ReferencesTable<ActivityNode>(UMLMessages.ActivityPropertiesEditionPart_NodeLabel, new ReferencesTableListener<ActivityNode>() {
-
- public void handleAdd() {
- addToNode();
- }
-
- public void handleEdit(ActivityNode element) {
- editNode(element);
- }
-
- public void handleMove(ActivityNode element, int oldIndex, int newIndex) {
- moveNode(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ActivityNode element) {
- removeFromNode(element);
- }
-
- public void navigateTo(ActivityNode element) {
- }
- });
- this.node.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.node, UMLViewsRepository.SWT_KIND));
- this.node.createControls(parent);
- GridData nodeData = new GridData(GridData.FILL_HORIZONTAL);
- nodeData.horizontalSpan = 3;
- this.node.setLayoutData(nodeData);
- }
-
- /**
- *
- */
- protected void moveNode(ActivityNode element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void addToNode() {
-
- // Start of user code addToNode() method body
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromNode(ActivityNode element) {
-
- // Start of user code removeFromNode() method body
- EObject editedElement = nodeEditUtil.foundCorrespondingEObject(element);
- nodeEditUtil.removeElement(element);
- node.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.node,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editNode(ActivityNode element) {
-
- // Start of user code editNode() method body
- EObject editedElement = nodeEditUtil.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) {
- nodeEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- node.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.node,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsReadOnlyCheckbox(Composite parent) {
- isReadOnly = new Button(parent, SWT.CHECK);
- isReadOnly.setText(UMLMessages.ActivityPropertiesEditionPart_IsReadOnlyLabel);
- GridData isReadOnlyData = new GridData(GridData.FILL_HORIZONTAL);
- isReadOnlyData.horizontalSpan = 2;
- isReadOnly.setLayoutData(isReadOnlyData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isReadOnly, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- /**
- * @param container
- */
- protected void createEdgeAdvancedTableComposition(Composite parent) {
- this.edge = new ReferencesTable<ActivityEdge>(UMLMessages.ActivityPropertiesEditionPart_EdgeLabel, new ReferencesTableListener<ActivityEdge>() {
-
- public void handleAdd() {
- addToEdge();
- }
-
- public void handleEdit(ActivityEdge element) {
- editEdge(element);
- }
-
- public void handleMove(ActivityEdge element, int oldIndex, int newIndex) {
- moveEdge(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ActivityEdge element) {
- removeFromEdge(element);
- }
-
- public void navigateTo(ActivityEdge element) {
- }
- });
- this.edge.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.edge, UMLViewsRepository.SWT_KIND));
- this.edge.createControls(parent);
- GridData edgeData = new GridData(GridData.FILL_HORIZONTAL);
- edgeData.horizontalSpan = 3;
- this.edge.setLayoutData(edgeData);
- }
-
- /**
- *
- */
- protected void moveEdge(ActivityEdge element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void addToEdge() {
-
- // Start of user code addToEdge() method body
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromEdge(ActivityEdge element) {
-
- // Start of user code removeFromEdge() method body
- EObject editedElement = edgeEditUtil.foundCorrespondingEObject(element);
- edgeEditUtil.removeElement(element);
- edge.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.edge,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editEdge(ActivityEdge element) {
-
- // Start of user code editEdge() method body
- EObject editedElement = edgeEditUtil.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) {
- edgeEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- edge.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.edge,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createPartitionAdvancedReferencesTable(Composite parent) {
- this.partition = new ReferencesTable<ActivityPartition>(UMLMessages.ActivityPropertiesEditionPart_PartitionLabel, new ReferencesTableListener<ActivityPartition>() {
-
- public void handleAdd() {
- TabElementTreeSelectionDialog<ActivityPartition> dialog = new TabElementTreeSelectionDialog<ActivityPartition>(resourceSet, partitionFilters, partitionBusinessFilters,
- "ActivityPartition", UMLPackage.eINSTANCE.getActivityPartition(), current.eResource()) {
-
- public void process(IStructuredSelection selection) {
- for(Iterator<?> iter = selection.iterator(); iter.hasNext();) {
- EObject elem = (EObject)iter.next();
- if(!partitionEditUtil.getVirtualList().contains(elem))
- partitionEditUtil.addElement(elem);
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.partition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.ADD, null, elem));
- }
- partition.refresh();
- }
-
- };
- dialog.open();
- }
-
- public void handleEdit(ActivityPartition element) {
- editPartition(element);
- }
-
- public void handleMove(ActivityPartition element, int oldIndex, int newIndex) {
- movePartition(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ActivityPartition element) {
- removeFromPartition(element);
- }
-
- public void navigateTo(ActivityPartition element) {
- }
- });
- this.partition.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.partition, UMLViewsRepository.SWT_KIND));
- this.partition.createControls(parent);
- GridData partitionData = new GridData(GridData.FILL_HORIZONTAL);
- partitionData.horizontalSpan = 3;
- this.partition.setLayoutData(partitionData);
- this.partition.disableMove();
- }
-
- /**
- *
- */
- protected void movePartition(ActivityPartition element, int oldIndex, int newIndex) {
- EObject editedElement = partitionEditUtil.foundCorrespondingEObject(element);
- partitionEditUtil.moveElement(element, oldIndex, newIndex);
- partition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.partition, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.MOVE, editedElement, newIndex));
- }
-
- /**
- *
- */
- protected void removeFromPartition(ActivityPartition element) {
-
- // Start of user code removeFromPartition() method body
- EObject editedElement = partitionEditUtil.foundCorrespondingEObject(element);
- partitionEditUtil.removeElement(element);
- partition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.partition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editPartition(ActivityPartition element) {
-
- // Start of user code editPartition() method body
- EObject editedElement = partitionEditUtil.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) {
- partitionEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- partition.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.partition,
- PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
- protected void createIsSingleExecutionCheckbox(Composite parent) {
- isSingleExecution = new Button(parent, SWT.CHECK);
- isSingleExecution.setText(UMLMessages.ActivityPropertiesEditionPart_IsSingleExecutionLabel);
- GridData isSingleExecutionData = new GridData(GridData.FILL_HORIZONTAL);
- isSingleExecutionData.horizontalSpan = 2;
- isSingleExecution.setLayoutData(isSingleExecutionData);
- SWTUtils.createHelpButton(parent, propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.isSingleExecution, UMLViewsRepository.SWT_KIND), null); //$NON-NLS-1$
- }
-
- /**
- * @param container
- */
- protected void createGroupAdvancedTableComposition(Composite parent) {
- this.group = new ReferencesTable<ActivityGroup>(UMLMessages.ActivityPropertiesEditionPart_GroupLabel, new ReferencesTableListener<ActivityGroup>() {
-
- public void handleAdd() {
- addToGroup();
- }
-
- public void handleEdit(ActivityGroup element) {
- editGroup(element);
- }
-
- public void handleMove(ActivityGroup element, int oldIndex, int newIndex) {
- moveGroup(element, oldIndex, newIndex);
- }
-
- public void handleRemove(ActivityGroup element) {
- removeFromGroup(element);
- }
-
- public void navigateTo(ActivityGroup element) {
- }
- });
- this.group.setHelpText(propertiesEditionComponent.getHelpContent(UMLViewsRepository.Activity.group, UMLViewsRepository.SWT_KIND));
- this.group.createControls(parent);
- GridData groupData = new GridData(GridData.FILL_HORIZONTAL);
- groupData.horizontalSpan = 3;
- this.group.setLayoutData(groupData);
- }
-
- /**
- *
- */
- protected void moveGroup(ActivityGroup element, int oldIndex, int newIndex) {
- }
-
- /**
- *
- */
- protected void addToGroup() {
-
- // Start of user code addToGroup() method body
- // End of user code
-
- }
-
- /**
- *
- */
- protected void removeFromGroup(ActivityGroup element) {
-
- // Start of user code removeFromGroup() method body
- EObject editedElement = groupEditUtil.foundCorrespondingEObject(element);
- groupEditUtil.removeElement(element);
- group.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.group,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.REMOVE, null, editedElement));
- // End of user code
-
- }
-
- /**
- *
- */
- protected void editGroup(ActivityGroup element) {
-
- // Start of user code editGroup() method body
- EObject editedElement = groupEditUtil.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) {
- groupEditUtil.putElementToRefresh(editedElement, propertiesEditionObject);
- group.refresh();
- propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(
- ActivityPropertiesEditionPartImpl.this, UMLViewsRepository.Activity.group,
- PropertiesEditionEvent.CHANGE, PropertiesEditionEvent.SET, editedElement,
- propertiesEditionObject));
- }
- }
- // End of user code
-
- }
-
-
- public void firePropertiesChanged(PropertiesEditionEvent event) {
- // Start of user code for tab synchronization
-
- // End of user code
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedCommentToAdd()
- */
- public List getOwnedCommentToAdd() {
- return ownedCommentEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedCommentToRemove()
- */
- public List getOwnedCommentToRemove() {
- return ownedCommentEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedCommentToEdit()
- */
- public Map getOwnedCommentToEdit() {
- return ownedCommentEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedCommentToMove()
- */
- public List getOwnedCommentToMove() {
- return ownedCommentEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedCommentTable()
- */
- public List getOwnedCommentTable() {
- return ownedCommentEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedComment(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedComment(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedCommentEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedCommentEditUtil = new EMFListEditUtil(current, feature);
- this.ownedComment.setInput(ownedCommentEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedComment(EObject newValue)
- */
- public void updateOwnedComment(EObject newValue) {
- if(ownedCommentEditUtil != null) {
- ownedCommentEditUtil.reinit(newValue);
- ownedComment.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedComment(ViewerFilter filter)
- */
- public void addFilterToOwnedComment(ViewerFilter filter) {
- ownedCommentFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedComment(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedComment(ViewerFilter filter) {
- ownedCommentBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedCommentTable(EObject element)
- */
- public boolean isContainedInOwnedCommentTable(EObject element) {
- return ownedCommentEditUtil.contains(element);
- }
-
- public void setMessageForOwnedComment(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedComment() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getName()
- */
- public String getName() {
- return name.getText();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setName(String newValue)
- */
- public void setName(String newValue) {
- if(newValue != null) {
- name.setText(newValue);
- } else {
- name.setText(""); //$NON-NLS-1$
- }
- }
-
- public void setMessageForName(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForName() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVisibility()
- */
- public Enumerator getVisibility() {
- EEnumLiteral selection = (EEnumLiteral)((StructuredSelection)visibility.getSelection()).getFirstElement();
- return selection.getInstance();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initVisibility(EEnum eenum, Enumerator current)
- */
- public void initVisibility(EEnum eenum, Enumerator current) {
- visibility.setInput(eenum.getELiterals());
- visibility.modelUpdating(new StructuredSelection(current));
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setVisibility(Enumerator newValue)
- */
- public void setVisibility(Enumerator newValue) {
- visibility.modelUpdating(new StructuredSelection(newValue));
- }
-
- public void setMessageForVisibility(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForVisibility() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getClientDependencyToAdd()
- */
- public List getClientDependencyToAdd() {
- return clientDependencyEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getClientDependencyToRemove()
- */
- public List getClientDependencyToRemove() {
- return clientDependencyEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getClientDependencyTable()
- */
- public List getClientDependencyTable() {
- return clientDependencyEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initClientDependency(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initClientDependency(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- clientDependencyEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- clientDependencyEditUtil = new EMFListEditUtil(current, feature);
- this.clientDependency.setInput(clientDependencyEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateClientDependency(EObject newValue)
- */
- public void updateClientDependency(EObject newValue) {
- if(clientDependencyEditUtil != null) {
- clientDependencyEditUtil.reinit(newValue);
- clientDependency.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterClientDependency(ViewerFilter filter)
- */
- public void addFilterToClientDependency(ViewerFilter filter) {
- clientDependencyFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterClientDependency(ViewerFilter filter)
- */
- public void addBusinessFilterToClientDependency(ViewerFilter filter) {
- clientDependencyBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInClientDependencyTable(EObject element)
- */
- public boolean isContainedInClientDependencyTable(EObject element) {
- return clientDependencyEditUtil.contains(element);
- }
-
- public void setMessageForClientDependency(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForClientDependency() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getElementImportToAdd()
- */
- public List getElementImportToAdd() {
- return elementImportEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getElementImportToRemove()
- */
- public List getElementImportToRemove() {
- return elementImportEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getElementImportToEdit()
- */
- public Map getElementImportToEdit() {
- return elementImportEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getElementImportToMove()
- */
- public List getElementImportToMove() {
- return elementImportEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getElementImportTable()
- */
- public List getElementImportTable() {
- return elementImportEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initElementImport(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initElementImport(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- elementImportEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- elementImportEditUtil = new EMFListEditUtil(current, feature);
- this.elementImport.setInput(elementImportEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateElementImport(EObject newValue)
- */
- public void updateElementImport(EObject newValue) {
- if(elementImportEditUtil != null) {
- elementImportEditUtil.reinit(newValue);
- elementImport.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterElementImport(ViewerFilter filter)
- */
- public void addFilterToElementImport(ViewerFilter filter) {
- elementImportFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterElementImport(ViewerFilter filter)
- */
- public void addBusinessFilterToElementImport(ViewerFilter filter) {
- elementImportBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInElementImportTable(EObject element)
- */
- public boolean isContainedInElementImportTable(EObject element) {
- return elementImportEditUtil.contains(element);
- }
-
- public void setMessageForElementImport(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForElementImport() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPackageImportToAdd()
- */
- public List getPackageImportToAdd() {
- return packageImportEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPackageImportToRemove()
- */
- public List getPackageImportToRemove() {
- return packageImportEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPackageImportToEdit()
- */
- public Map getPackageImportToEdit() {
- return packageImportEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPackageImportToMove()
- */
- public List getPackageImportToMove() {
- return packageImportEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPackageImportTable()
- */
- public List getPackageImportTable() {
- return packageImportEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initPackageImport(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initPackageImport(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- packageImportEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- packageImportEditUtil = new EMFListEditUtil(current, feature);
- this.packageImport.setInput(packageImportEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updatePackageImport(EObject newValue)
- */
- public void updatePackageImport(EObject newValue) {
- if(packageImportEditUtil != null) {
- packageImportEditUtil.reinit(newValue);
- packageImport.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterPackageImport(ViewerFilter filter)
- */
- public void addFilterToPackageImport(ViewerFilter filter) {
- packageImportFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterPackageImport(ViewerFilter filter)
- */
- public void addBusinessFilterToPackageImport(ViewerFilter filter) {
- packageImportBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInPackageImportTable(EObject element)
- */
- public boolean isContainedInPackageImportTable(EObject element) {
- return packageImportEditUtil.contains(element);
- }
-
- public void setMessageForPackageImport(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForPackageImport() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedRuleToAdd()
- */
- public List getOwnedRuleToAdd() {
- return ownedRuleEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedRuleToRemove()
- */
- public List getOwnedRuleToRemove() {
- return ownedRuleEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedRuleToEdit()
- */
- public Map getOwnedRuleToEdit() {
- return ownedRuleEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedRuleToMove()
- */
- public List getOwnedRuleToMove() {
- return ownedRuleEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedRuleTable()
- */
- public List getOwnedRuleTable() {
- return ownedRuleEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedRule(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initOwnedRule(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedRuleEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedRuleEditUtil = new EMFListEditUtil(current, feature);
- this.ownedRule.setInput(ownedRuleEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedRule(EObject newValue)
- */
- public void updateOwnedRule(EObject newValue) {
- if(ownedRuleEditUtil != null) {
- ownedRuleEditUtil.reinit(newValue);
- ownedRule.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedRule(ViewerFilter filter)
- */
- public void addFilterToOwnedRule(ViewerFilter filter) {
- ownedRuleFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedRule(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedRule(ViewerFilter filter) {
- ownedRuleBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedRuleTable(EObject element)
- */
- public boolean isContainedInOwnedRuleTable(EObject element) {
- return ownedRuleEditUtil.contains(element);
- }
-
- public void setMessageForOwnedRule(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedRule() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsLeaf()
- */
- public Boolean getIsLeaf() {
- return Boolean.valueOf(isLeaf.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsLeaf(Boolean newValue)
- */
- public void setIsLeaf(Boolean newValue) {
- if(newValue != null) {
- isLeaf.setSelection(newValue.booleanValue());
- } else {
- isLeaf.setSelection(false);
- }
- }
-
- public void setMessageForIsLeaf(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsLeaf() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getTemplateBindingToAdd()
- */
- public List getTemplateBindingToAdd() {
- return templateBindingEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getTemplateBindingToRemove()
- */
- public List getTemplateBindingToRemove() {
- return templateBindingEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getTemplateBindingToEdit()
- */
- public Map getTemplateBindingToEdit() {
- return templateBindingEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getTemplateBindingToMove()
- */
- public List getTemplateBindingToMove() {
- return templateBindingEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getTemplateBindingTable()
- */
- public List getTemplateBindingTable() {
- return templateBindingEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initTemplateBinding(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initTemplateBinding(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- templateBindingEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- templateBindingEditUtil = new EMFListEditUtil(current, feature);
- this.templateBinding.setInput(templateBindingEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateTemplateBinding(EObject newValue)
- */
- public void updateTemplateBinding(EObject newValue) {
- if(templateBindingEditUtil != null) {
- templateBindingEditUtil.reinit(newValue);
- templateBinding.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterTemplateBinding(ViewerFilter filter)
- */
- public void addFilterToTemplateBinding(ViewerFilter filter) {
- templateBindingFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterTemplateBinding(ViewerFilter filter)
- */
- public void addBusinessFilterToTemplateBinding(ViewerFilter filter) {
- templateBindingBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInTemplateBindingTable(EObject element)
- */
- public boolean isContainedInTemplateBindingTable(EObject element) {
- return templateBindingEditUtil.contains(element);
- }
-
- public void setMessageForTemplateBinding(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForTemplateBinding() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsAbstract()
- */
- public Boolean getIsAbstract() {
- return Boolean.valueOf(isAbstract.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsAbstract(Boolean newValue)
- */
- public void setIsAbstract(Boolean newValue) {
- if(newValue != null) {
- isAbstract.setSelection(newValue.booleanValue());
- } else {
- isAbstract.setSelection(false);
- }
- }
-
- public void setMessageForIsAbstract(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsAbstract() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGeneralizationToAdd()
- */
- public List getGeneralizationToAdd() {
- return generalizationEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGeneralizationToRemove()
- */
- public List getGeneralizationToRemove() {
- return generalizationEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGeneralizationToEdit()
- */
- public Map getGeneralizationToEdit() {
- return generalizationEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGeneralizationToMove()
- */
- public List getGeneralizationToMove() {
- return generalizationEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGeneralizationTable()
- */
- public List getGeneralizationTable() {
- return generalizationEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initGeneralization(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initGeneralization(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- generalizationEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- generalizationEditUtil = new EMFListEditUtil(current, feature);
- this.generalization.setInput(generalizationEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateGeneralization(EObject newValue)
- */
- public void updateGeneralization(EObject newValue) {
- if(generalizationEditUtil != null) {
- generalizationEditUtil.reinit(newValue);
- generalization.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterGeneralization(ViewerFilter filter)
- */
- public void addFilterToGeneralization(ViewerFilter filter) {
- generalizationFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterGeneralization(ViewerFilter filter)
- */
- public void addBusinessFilterToGeneralization(ViewerFilter filter) {
- generalizationBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInGeneralizationTable(EObject element)
- */
- public boolean isContainedInGeneralizationTable(EObject element) {
- return generalizationEditUtil.contains(element);
- }
-
- public void setMessageForGeneralization(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForGeneralization() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPowertypeExtentToAdd()
- */
- public List getPowertypeExtentToAdd() {
- return powertypeExtentEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPowertypeExtentToRemove()
- */
- public List getPowertypeExtentToRemove() {
- return powertypeExtentEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPowertypeExtentTable()
- */
- public List getPowertypeExtentTable() {
- return powertypeExtentEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initPowertypeExtent(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initPowertypeExtent(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- powertypeExtentEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- powertypeExtentEditUtil = new EMFListEditUtil(current, feature);
- this.powertypeExtent.setInput(powertypeExtentEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updatePowertypeExtent(EObject newValue)
- */
- public void updatePowertypeExtent(EObject newValue) {
- if(powertypeExtentEditUtil != null) {
- powertypeExtentEditUtil.reinit(newValue);
- powertypeExtent.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterPowertypeExtent(ViewerFilter filter)
- */
- public void addFilterToPowertypeExtent(ViewerFilter filter) {
- powertypeExtentFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterPowertypeExtent(ViewerFilter filter)
- */
- public void addBusinessFilterToPowertypeExtent(ViewerFilter filter) {
- powertypeExtentBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInPowertypeExtentTable(EObject element)
- */
- public boolean isContainedInPowertypeExtentTable(EObject element) {
- return powertypeExtentEditUtil.contains(element);
- }
-
- public void setMessageForPowertypeExtent(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForPowertypeExtent() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedClassifierToAdd()
- */
- public List getRedefinedClassifierToAdd() {
- return redefinedClassifierEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedClassifierToRemove()
- */
- public List getRedefinedClassifierToRemove() {
- return redefinedClassifierEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedClassifierTable()
- */
- public List getRedefinedClassifierTable() {
- return redefinedClassifierEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initRedefinedClassifier(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initRedefinedClassifier(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- redefinedClassifierEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- redefinedClassifierEditUtil = new EMFListEditUtil(current, feature);
- this.redefinedClassifier.setInput(redefinedClassifierEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateRedefinedClassifier(EObject newValue)
- */
- public void updateRedefinedClassifier(EObject newValue) {
- if(redefinedClassifierEditUtil != null) {
- redefinedClassifierEditUtil.reinit(newValue);
- redefinedClassifier.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterRedefinedClassifier(ViewerFilter filter)
- */
- public void addFilterToRedefinedClassifier(ViewerFilter filter) {
- redefinedClassifierFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterRedefinedClassifier(ViewerFilter filter)
- */
- public void addBusinessFilterToRedefinedClassifier(ViewerFilter filter) {
- redefinedClassifierBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInRedefinedClassifierTable(EObject element)
- */
- public boolean isContainedInRedefinedClassifierTable(EObject element) {
- return redefinedClassifierEditUtil.contains(element);
- }
-
- public void setMessageForRedefinedClassifier(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForRedefinedClassifier() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getSubstitutionToAdd()
- */
- public List getSubstitutionToAdd() {
- return substitutionEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getSubstitutionToRemove()
- */
- public List getSubstitutionToRemove() {
- return substitutionEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getSubstitutionToEdit()
- */
- public Map getSubstitutionToEdit() {
- return substitutionEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getSubstitutionToMove()
- */
- public List getSubstitutionToMove() {
- return substitutionEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getSubstitutionTable()
- */
- public List getSubstitutionTable() {
- return substitutionEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initSubstitution(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initSubstitution(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- substitutionEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- substitutionEditUtil = new EMFListEditUtil(current, feature);
- this.substitution.setInput(substitutionEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateSubstitution(EObject newValue)
- */
- public void updateSubstitution(EObject newValue) {
- if(substitutionEditUtil != null) {
- substitutionEditUtil.reinit(newValue);
- substitution.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterSubstitution(ViewerFilter filter)
- */
- public void addFilterToSubstitution(ViewerFilter filter) {
- substitutionFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterSubstitution(ViewerFilter filter)
- */
- public void addBusinessFilterToSubstitution(ViewerFilter filter) {
- substitutionBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInSubstitutionTable(EObject element)
- */
- public boolean isContainedInSubstitutionTable(EObject element) {
- return substitutionEditUtil.contains(element);
- }
-
- public void setMessageForSubstitution(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForSubstitution() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getCollaborationUseToAdd()
- */
- public List getCollaborationUseToAdd() {
- return collaborationUseEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getCollaborationUseToRemove()
- */
- public List getCollaborationUseToRemove() {
- return collaborationUseEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getCollaborationUseToEdit()
- */
- public Map getCollaborationUseToEdit() {
- return collaborationUseEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getCollaborationUseToMove()
- */
- public List getCollaborationUseToMove() {
- return collaborationUseEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getCollaborationUseTable()
- */
- public List getCollaborationUseTable() {
- return collaborationUseEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initCollaborationUse(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initCollaborationUse(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- collaborationUseEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- collaborationUseEditUtil = new EMFListEditUtil(current, feature);
- this.collaborationUse.setInput(collaborationUseEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateCollaborationUse(EObject newValue)
- */
- public void updateCollaborationUse(EObject newValue) {
- if(collaborationUseEditUtil != null) {
- collaborationUseEditUtil.reinit(newValue);
- collaborationUse.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterCollaborationUse(ViewerFilter filter)
- */
- public void addFilterToCollaborationUse(ViewerFilter filter) {
- collaborationUseFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterCollaborationUse(ViewerFilter filter)
- */
- public void addBusinessFilterToCollaborationUse(ViewerFilter filter) {
- collaborationUseBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInCollaborationUseTable(EObject element)
- */
- public boolean isContainedInCollaborationUseTable(EObject element) {
- return collaborationUseEditUtil.contains(element);
- }
-
- public void setMessageForCollaborationUse(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForCollaborationUse() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedUseCaseToAdd()
- */
- public List getOwnedUseCaseToAdd() {
- return ownedUseCaseEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedUseCaseToRemove()
- */
- public List getOwnedUseCaseToRemove() {
- return ownedUseCaseEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedUseCaseToEdit()
- */
- public Map getOwnedUseCaseToEdit() {
- return ownedUseCaseEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedUseCaseToMove()
- */
- public List getOwnedUseCaseToMove() {
- return ownedUseCaseEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedUseCaseTable()
- */
- public List getOwnedUseCaseTable() {
- return ownedUseCaseEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedUseCase(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedUseCase(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedUseCaseEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedUseCaseEditUtil = new EMFListEditUtil(current, feature);
- this.ownedUseCase.setInput(ownedUseCaseEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedUseCase(EObject newValue)
- */
- public void updateOwnedUseCase(EObject newValue) {
- if(ownedUseCaseEditUtil != null) {
- ownedUseCaseEditUtil.reinit(newValue);
- ownedUseCase.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedUseCase(ViewerFilter filter)
- */
- public void addFilterToOwnedUseCase(ViewerFilter filter) {
- ownedUseCaseFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedUseCase(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedUseCase(ViewerFilter filter) {
- ownedUseCaseBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedUseCaseTable(EObject element)
- */
- public boolean isContainedInOwnedUseCaseTable(EObject element) {
- return ownedUseCaseEditUtil.contains(element);
- }
-
- public void setMessageForOwnedUseCase(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedUseCase() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getUseCaseToAdd()
- */
- public List getUseCaseToAdd() {
- return useCaseEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getUseCaseToRemove()
- */
- public List getUseCaseToRemove() {
- return useCaseEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getUseCaseTable()
- */
- public List getUseCaseTable() {
- return useCaseEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initUseCase(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initUseCase(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- useCaseEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- useCaseEditUtil = new EMFListEditUtil(current, feature);
- this.useCase.setInput(useCaseEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateUseCase(EObject newValue)
- */
- public void updateUseCase(EObject newValue) {
- if(useCaseEditUtil != null) {
- useCaseEditUtil.reinit(newValue);
- useCase.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterUseCase(ViewerFilter filter)
- */
- public void addFilterToUseCase(ViewerFilter filter) {
- useCaseFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterUseCase(ViewerFilter filter)
- */
- public void addBusinessFilterToUseCase(ViewerFilter filter) {
- useCaseBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInUseCaseTable(EObject element)
- */
- public boolean isContainedInUseCaseTable(EObject element) {
- return useCaseEditUtil.contains(element);
- }
-
- public void setMessageForUseCase(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForUseCase() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedAttributeToAdd()
- */
- public List getOwnedAttributeToAdd() {
- return ownedAttributeEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedAttributeToRemove()
- */
- public List getOwnedAttributeToRemove() {
- return ownedAttributeEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedAttributeToEdit()
- */
- public Map getOwnedAttributeToEdit() {
- return ownedAttributeEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedAttributeToMove()
- */
- public List getOwnedAttributeToMove() {
- return ownedAttributeEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedAttributeTable()
- */
- public List getOwnedAttributeTable() {
- return ownedAttributeEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedAttribute(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedAttribute(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedAttributeEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedAttributeEditUtil = new EMFListEditUtil(current, feature);
- this.ownedAttribute.setInput(ownedAttributeEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedAttribute(EObject newValue)
- */
- public void updateOwnedAttribute(EObject newValue) {
- if(ownedAttributeEditUtil != null) {
- ownedAttributeEditUtil.reinit(newValue);
- ownedAttribute.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedAttribute(ViewerFilter filter)
- */
- public void addFilterToOwnedAttribute(ViewerFilter filter) {
- ownedAttributeFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedAttribute(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedAttribute(ViewerFilter filter) {
- ownedAttributeBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedAttributeTable(EObject element)
- */
- public boolean isContainedInOwnedAttributeTable(EObject element) {
- return ownedAttributeEditUtil.contains(element);
- }
-
- public void setMessageForOwnedAttribute(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedAttribute() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedConnectorToAdd()
- */
- public List getOwnedConnectorToAdd() {
- return ownedConnectorEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedConnectorToRemove()
- */
- public List getOwnedConnectorToRemove() {
- return ownedConnectorEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedConnectorToEdit()
- */
- public Map getOwnedConnectorToEdit() {
- return ownedConnectorEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedConnectorToMove()
- */
- public List getOwnedConnectorToMove() {
- return ownedConnectorEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedConnectorTable()
- */
- public List getOwnedConnectorTable() {
- return ownedConnectorEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedConnector(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedConnector(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedConnectorEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedConnectorEditUtil = new EMFListEditUtil(current, feature);
- this.ownedConnector.setInput(ownedConnectorEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedConnector(EObject newValue)
- */
- public void updateOwnedConnector(EObject newValue) {
- if(ownedConnectorEditUtil != null) {
- ownedConnectorEditUtil.reinit(newValue);
- ownedConnector.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedConnector(ViewerFilter filter)
- */
- public void addFilterToOwnedConnector(ViewerFilter filter) {
- ownedConnectorFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedConnector(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedConnector(ViewerFilter filter) {
- ownedConnectorBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedConnectorTable(EObject element)
- */
- public boolean isContainedInOwnedConnectorTable(EObject element) {
- return ownedConnectorEditUtil.contains(element);
- }
-
- public void setMessageForOwnedConnector(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedConnector() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedBehaviorToAdd()
- */
- public List getOwnedBehaviorToAdd() {
- return ownedBehaviorEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedBehaviorToRemove()
- */
- public List getOwnedBehaviorToRemove() {
- return ownedBehaviorEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedBehaviorToEdit()
- */
- public Map getOwnedBehaviorToEdit() {
- return ownedBehaviorEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedBehaviorToMove()
- */
- public List getOwnedBehaviorToMove() {
- return ownedBehaviorEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedBehaviorTable()
- */
- public List getOwnedBehaviorTable() {
- return ownedBehaviorEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedBehavior(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedBehavior(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedBehaviorEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedBehaviorEditUtil = new EMFListEditUtil(current, feature);
- this.ownedBehavior.setInput(ownedBehaviorEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedBehavior(EObject newValue)
- */
- public void updateOwnedBehavior(EObject newValue) {
- if(ownedBehaviorEditUtil != null) {
- ownedBehaviorEditUtil.reinit(newValue);
- ownedBehavior.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedBehavior(ViewerFilter filter)
- */
- public void addFilterToOwnedBehavior(ViewerFilter filter) {
- ownedBehaviorFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedBehavior(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedBehavior(ViewerFilter filter) {
- ownedBehaviorBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedBehaviorTable(EObject element)
- */
- public boolean isContainedInOwnedBehaviorTable(EObject element) {
- return ownedBehaviorEditUtil.contains(element);
- }
-
- public void setMessageForOwnedBehavior(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedBehavior() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getInterfaceRealizationToAdd()
- */
- public List getInterfaceRealizationToAdd() {
- return interfaceRealizationEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getInterfaceRealizationToRemove()
- */
- public List getInterfaceRealizationToRemove() {
- return interfaceRealizationEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getInterfaceRealizationToEdit()
- */
- public Map getInterfaceRealizationToEdit() {
- return interfaceRealizationEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getInterfaceRealizationToMove()
- */
- public List getInterfaceRealizationToMove() {
- return interfaceRealizationEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getInterfaceRealizationTable()
- */
- public List getInterfaceRealizationTable() {
- return interfaceRealizationEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initInterfaceRealization(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initInterfaceRealization(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- interfaceRealizationEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- interfaceRealizationEditUtil = new EMFListEditUtil(current, feature);
- this.interfaceRealization.setInput(interfaceRealizationEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateInterfaceRealization(EObject newValue)
- */
- public void updateInterfaceRealization(EObject newValue) {
- if(interfaceRealizationEditUtil != null) {
- interfaceRealizationEditUtil.reinit(newValue);
- interfaceRealization.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterInterfaceRealization(ViewerFilter filter)
- */
- public void addFilterToInterfaceRealization(ViewerFilter filter) {
- interfaceRealizationFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterInterfaceRealization(ViewerFilter filter)
- */
- public void addBusinessFilterToInterfaceRealization(ViewerFilter filter) {
- interfaceRealizationBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInInterfaceRealizationTable(EObject element)
- */
- public boolean isContainedInInterfaceRealizationTable(EObject element) {
- return interfaceRealizationEditUtil.contains(element);
- }
-
- public void setMessageForInterfaceRealization(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForInterfaceRealization() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedTriggerToAdd()
- */
- public List getOwnedTriggerToAdd() {
- return ownedTriggerEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedTriggerToRemove()
- */
- public List getOwnedTriggerToRemove() {
- return ownedTriggerEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedTriggerToEdit()
- */
- public Map getOwnedTriggerToEdit() {
- return ownedTriggerEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedTriggerToMove()
- */
- public List getOwnedTriggerToMove() {
- return ownedTriggerEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedTriggerTable()
- */
- public List getOwnedTriggerTable() {
- return ownedTriggerEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedTrigger(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedTrigger(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedTriggerEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedTriggerEditUtil = new EMFListEditUtil(current, feature);
- this.ownedTrigger.setInput(ownedTriggerEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedTrigger(EObject newValue)
- */
- public void updateOwnedTrigger(EObject newValue) {
- if(ownedTriggerEditUtil != null) {
- ownedTriggerEditUtil.reinit(newValue);
- ownedTrigger.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedTrigger(ViewerFilter filter)
- */
- public void addFilterToOwnedTrigger(ViewerFilter filter) {
- ownedTriggerFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedTrigger(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedTrigger(ViewerFilter filter) {
- ownedTriggerBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedTriggerTable(EObject element)
- */
- public boolean isContainedInOwnedTriggerTable(EObject element) {
- return ownedTriggerEditUtil.contains(element);
- }
-
- public void setMessageForOwnedTrigger(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedTrigger() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNestedClassifierToAdd()
- */
- public List getNestedClassifierToAdd() {
- return nestedClassifierEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNestedClassifierToRemove()
- */
- public List getNestedClassifierToRemove() {
- return nestedClassifierEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNestedClassifierToEdit()
- */
- public Map getNestedClassifierToEdit() {
- return nestedClassifierEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNestedClassifierToMove()
- */
- public List getNestedClassifierToMove() {
- return nestedClassifierEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNestedClassifierTable()
- */
- public List getNestedClassifierTable() {
- return nestedClassifierEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initNestedClassifier(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initNestedClassifier(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- nestedClassifierEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- nestedClassifierEditUtil = new EMFListEditUtil(current, feature);
- this.nestedClassifier.setInput(nestedClassifierEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateNestedClassifier(EObject newValue)
- */
- public void updateNestedClassifier(EObject newValue) {
- if(nestedClassifierEditUtil != null) {
- nestedClassifierEditUtil.reinit(newValue);
- nestedClassifier.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterNestedClassifier(ViewerFilter filter)
- */
- public void addFilterToNestedClassifier(ViewerFilter filter) {
- nestedClassifierFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterNestedClassifier(ViewerFilter filter)
- */
- public void addBusinessFilterToNestedClassifier(ViewerFilter filter) {
- nestedClassifierBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInNestedClassifierTable(EObject element)
- */
- public boolean isContainedInNestedClassifierTable(EObject element) {
- return nestedClassifierEditUtil.contains(element);
- }
-
- public void setMessageForNestedClassifier(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForNestedClassifier() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedOperationToAdd()
- */
- public List getOwnedOperationToAdd() {
- return ownedOperationEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedOperationToRemove()
- */
- public List getOwnedOperationToRemove() {
- return ownedOperationEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedOperationToEdit()
- */
- public Map getOwnedOperationToEdit() {
- return ownedOperationEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedOperationToMove()
- */
- public List getOwnedOperationToMove() {
- return ownedOperationEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedOperationTable()
- */
- public List getOwnedOperationTable() {
- return ownedOperationEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedOperation(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedOperation(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedOperationEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedOperationEditUtil = new EMFListEditUtil(current, feature);
- this.ownedOperation.setInput(ownedOperationEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedOperation(EObject newValue)
- */
- public void updateOwnedOperation(EObject newValue) {
- if(ownedOperationEditUtil != null) {
- ownedOperationEditUtil.reinit(newValue);
- ownedOperation.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedOperation(ViewerFilter filter)
- */
- public void addFilterToOwnedOperation(ViewerFilter filter) {
- ownedOperationFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedOperation(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedOperation(ViewerFilter filter) {
- ownedOperationBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedOperationTable(EObject element)
- */
- public boolean isContainedInOwnedOperationTable(EObject element) {
- return ownedOperationEditUtil.contains(element);
- }
-
- public void setMessageForOwnedOperation(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedOperation() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsActive()
- */
- public Boolean getIsActive() {
- return Boolean.valueOf(isActive.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsActive(Boolean newValue)
- */
- public void setIsActive(Boolean newValue) {
- if(newValue != null) {
- isActive.setSelection(newValue.booleanValue());
- } else {
- isActive.setSelection(false);
- }
- }
-
- public void setMessageForIsActive(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsActive() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedReceptionToAdd()
- */
- public List getOwnedReceptionToAdd() {
- return ownedReceptionEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedReceptionToRemove()
- */
- public List getOwnedReceptionToRemove() {
- return ownedReceptionEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedReceptionToEdit()
- */
- public Map getOwnedReceptionToEdit() {
- return ownedReceptionEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedReceptionToMove()
- */
- public List getOwnedReceptionToMove() {
- return ownedReceptionEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedReceptionTable()
- */
- public List getOwnedReceptionTable() {
- return ownedReceptionEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedReception(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedReception(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedReceptionEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedReceptionEditUtil = new EMFListEditUtil(current, feature);
- this.ownedReception.setInput(ownedReceptionEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedReception(EObject newValue)
- */
- public void updateOwnedReception(EObject newValue) {
- if(ownedReceptionEditUtil != null) {
- ownedReceptionEditUtil.reinit(newValue);
- ownedReception.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedReception(ViewerFilter filter)
- */
- public void addFilterToOwnedReception(ViewerFilter filter) {
- ownedReceptionFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedReception(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedReception(ViewerFilter filter) {
- ownedReceptionBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedReceptionTable(EObject element)
- */
- public boolean isContainedInOwnedReceptionTable(EObject element) {
- return ownedReceptionEditUtil.contains(element);
- }
-
- public void setMessageForOwnedReception(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedReception() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsReentrant()
- */
- public Boolean getIsReentrant() {
- return Boolean.valueOf(isReentrant.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsReentrant(Boolean newValue)
- */
- public void setIsReentrant(Boolean newValue) {
- if(newValue != null) {
- isReentrant.setSelection(newValue.booleanValue());
- } else {
- isReentrant.setSelection(false);
- }
- }
-
- public void setMessageForIsReentrant(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsReentrant() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedBehaviorToAdd()
- */
- public List getRedefinedBehaviorToAdd() {
- return redefinedBehaviorEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedBehaviorToRemove()
- */
- public List getRedefinedBehaviorToRemove() {
- return redefinedBehaviorEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getRedefinedBehaviorTable()
- */
- public List getRedefinedBehaviorTable() {
- return redefinedBehaviorEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initRedefinedBehavior(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initRedefinedBehavior(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- redefinedBehaviorEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- redefinedBehaviorEditUtil = new EMFListEditUtil(current, feature);
- this.redefinedBehavior.setInput(redefinedBehaviorEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateRedefinedBehavior(EObject newValue)
- */
- public void updateRedefinedBehavior(EObject newValue) {
- if(redefinedBehaviorEditUtil != null) {
- redefinedBehaviorEditUtil.reinit(newValue);
- redefinedBehavior.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterRedefinedBehavior(ViewerFilter filter)
- */
- public void addFilterToRedefinedBehavior(ViewerFilter filter) {
- redefinedBehaviorFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterRedefinedBehavior(ViewerFilter filter)
- */
- public void addBusinessFilterToRedefinedBehavior(ViewerFilter filter) {
- redefinedBehaviorBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInRedefinedBehaviorTable(EObject element)
- */
- public boolean isContainedInRedefinedBehaviorTable(EObject element) {
- return redefinedBehaviorEditUtil.contains(element);
- }
-
- public void setMessageForRedefinedBehavior(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForRedefinedBehavior() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterToAdd()
- */
- public List getOwnedParameterToAdd() {
- return ownedParameterEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterToRemove()
- */
- public List getOwnedParameterToRemove() {
- return ownedParameterEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterToEdit()
- */
- public Map getOwnedParameterToEdit() {
- return ownedParameterEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterToMove()
- */
- public List getOwnedParameterToMove() {
- return ownedParameterEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterTable()
- */
- public List getOwnedParameterTable() {
- return ownedParameterEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedParameter(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedParameter(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedParameterEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedParameterEditUtil = new EMFListEditUtil(current, feature);
- this.ownedParameter.setInput(ownedParameterEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedParameter(EObject newValue)
- */
- public void updateOwnedParameter(EObject newValue) {
- if(ownedParameterEditUtil != null) {
- ownedParameterEditUtil.reinit(newValue);
- ownedParameter.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedParameter(ViewerFilter filter)
- */
- public void addFilterToOwnedParameter(ViewerFilter filter) {
- ownedParameterFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedParameter(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedParameter(ViewerFilter filter) {
- ownedParameterBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedParameterTable(EObject element)
- */
- public boolean isContainedInOwnedParameterTable(EObject element) {
- return ownedParameterEditUtil.contains(element);
- }
-
- public void setMessageForOwnedParameter(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedParameter() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPreconditionToAdd()
- */
- public List getPreconditionToAdd() {
- return preconditionEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPreconditionToRemove()
- */
- public List getPreconditionToRemove() {
- return preconditionEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPreconditionTable()
- */
- public List getPreconditionTable() {
- return preconditionEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initPrecondition(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initPrecondition(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- preconditionEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- preconditionEditUtil = new EMFListEditUtil(current, feature);
- this.precondition.setInput(preconditionEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updatePrecondition(EObject newValue)
- */
- public void updatePrecondition(EObject newValue) {
- if(preconditionEditUtil != null) {
- preconditionEditUtil.reinit(newValue);
- precondition.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterPrecondition(ViewerFilter filter)
- */
- public void addFilterToPrecondition(ViewerFilter filter) {
- preconditionFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterPrecondition(ViewerFilter filter)
- */
- public void addBusinessFilterToPrecondition(ViewerFilter filter) {
- preconditionBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInPreconditionTable(EObject element)
- */
- public boolean isContainedInPreconditionTable(EObject element) {
- return preconditionEditUtil.contains(element);
- }
-
- public void setMessageForPrecondition(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForPrecondition() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPostconditionToAdd()
- */
- public List getPostconditionToAdd() {
- return postconditionEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPostconditionToRemove()
- */
- public List getPostconditionToRemove() {
- return postconditionEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPostconditionTable()
- */
- public List getPostconditionTable() {
- return postconditionEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initPostcondition(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initPostcondition(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- postconditionEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- postconditionEditUtil = new EMFListEditUtil(current, feature);
- this.postcondition.setInput(postconditionEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updatePostcondition(EObject newValue)
- */
- public void updatePostcondition(EObject newValue) {
- if(postconditionEditUtil != null) {
- postconditionEditUtil.reinit(newValue);
- postcondition.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterPostcondition(ViewerFilter filter)
- */
- public void addFilterToPostcondition(ViewerFilter filter) {
- postconditionFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterPostcondition(ViewerFilter filter)
- */
- public void addBusinessFilterToPostcondition(ViewerFilter filter) {
- postconditionBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInPostconditionTable(EObject element)
- */
- public boolean isContainedInPostconditionTable(EObject element) {
- return postconditionEditUtil.contains(element);
- }
-
- public void setMessageForPostcondition(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForPostcondition() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterSetToAdd()
- */
- public List getOwnedParameterSetToAdd() {
- return ownedParameterSetEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterSetToRemove()
- */
- public List getOwnedParameterSetToRemove() {
- return ownedParameterSetEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterSetToEdit()
- */
- public Map getOwnedParameterSetToEdit() {
- return ownedParameterSetEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterSetToMove()
- */
- public List getOwnedParameterSetToMove() {
- return ownedParameterSetEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getOwnedParameterSetTable()
- */
- public List getOwnedParameterSetTable() {
- return ownedParameterSetEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initOwnedParameterSet(EObject current, EReference
- * containingFeature, EReference feature)
- */
- public void initOwnedParameterSet(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- ownedParameterSetEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- ownedParameterSetEditUtil = new EMFListEditUtil(current, feature);
- this.ownedParameterSet.setInput(ownedParameterSetEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateOwnedParameterSet(EObject newValue)
- */
- public void updateOwnedParameterSet(EObject newValue) {
- if(ownedParameterSetEditUtil != null) {
- ownedParameterSetEditUtil.reinit(newValue);
- ownedParameterSet.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterOwnedParameterSet(ViewerFilter filter)
- */
- public void addFilterToOwnedParameterSet(ViewerFilter filter) {
- ownedParameterSetFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterOwnedParameterSet(ViewerFilter filter)
- */
- public void addBusinessFilterToOwnedParameterSet(ViewerFilter filter) {
- ownedParameterSetBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInOwnedParameterSetTable(EObject element)
- */
- public boolean isContainedInOwnedParameterSetTable(EObject element) {
- return ownedParameterSetEditUtil.contains(element);
- }
-
- public void setMessageForOwnedParameterSet(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForOwnedParameterSet() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVariableToAdd()
- */
- public List getVariableToAdd() {
- return variableEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVariableToRemove()
- */
- public List getVariableToRemove() {
- return variableEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVariableToEdit()
- */
- public Map getVariableToEdit() {
- return variableEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVariableToMove()
- */
- public List getVariableToMove() {
- return variableEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getVariableTable()
- */
- public List getVariableTable() {
- return variableEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initVariable(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initVariable(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- variableEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- variableEditUtil = new EMFListEditUtil(current, feature);
- this.variable.setInput(variableEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateVariable(EObject newValue)
- */
- public void updateVariable(EObject newValue) {
- if(variableEditUtil != null) {
- variableEditUtil.reinit(newValue);
- variable.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterVariable(ViewerFilter filter)
- */
- public void addFilterToVariable(ViewerFilter filter) {
- variableFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterVariable(ViewerFilter filter)
- */
- public void addBusinessFilterToVariable(ViewerFilter filter) {
- variableBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInVariableTable(EObject element)
- */
- public boolean isContainedInVariableTable(EObject element) {
- return variableEditUtil.contains(element);
- }
-
- public void setMessageForVariable(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForVariable() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNodeToAdd()
- */
- public List getNodeToAdd() {
- return nodeEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNodeToRemove()
- */
- public List getNodeToRemove() {
- return nodeEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNodeToEdit()
- */
- public Map getNodeToEdit() {
- return nodeEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNodeToMove()
- */
- public List getNodeToMove() {
- return nodeEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getNodeTable()
- */
- public List getNodeTable() {
- return nodeEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initNode(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initNode(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- nodeEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- nodeEditUtil = new EMFListEditUtil(current, feature);
- this.node.setInput(nodeEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateNode(EObject newValue)
- */
- public void updateNode(EObject newValue) {
- if(nodeEditUtil != null) {
- nodeEditUtil.reinit(newValue);
- node.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterNode(ViewerFilter filter)
- */
- public void addFilterToNode(ViewerFilter filter) {
- nodeFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterNode(ViewerFilter filter)
- */
- public void addBusinessFilterToNode(ViewerFilter filter) {
- nodeBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInNodeTable(EObject element)
- */
- public boolean isContainedInNodeTable(EObject element) {
- return nodeEditUtil.contains(element);
- }
-
- public void setMessageForNode(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForNode() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsReadOnly()
- */
- public Boolean getIsReadOnly() {
- return Boolean.valueOf(isReadOnly.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsReadOnly(Boolean newValue)
- */
- public void setIsReadOnly(Boolean newValue) {
- if(newValue != null) {
- isReadOnly.setSelection(newValue.booleanValue());
- } else {
- isReadOnly.setSelection(false);
- }
- }
-
- public void setMessageForIsReadOnly(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsReadOnly() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getEdgeToAdd()
- */
- public List getEdgeToAdd() {
- return edgeEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getEdgeToRemove()
- */
- public List getEdgeToRemove() {
- return edgeEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getEdgeToEdit()
- */
- public Map getEdgeToEdit() {
- return edgeEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getEdgeToMove()
- */
- public List getEdgeToMove() {
- return edgeEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getEdgeTable()
- */
- public List getEdgeTable() {
- return edgeEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initEdge(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initEdge(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- edgeEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- edgeEditUtil = new EMFListEditUtil(current, feature);
- this.edge.setInput(edgeEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateEdge(EObject newValue)
- */
- public void updateEdge(EObject newValue) {
- if(edgeEditUtil != null) {
- edgeEditUtil.reinit(newValue);
- edge.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterEdge(ViewerFilter filter)
- */
- public void addFilterToEdge(ViewerFilter filter) {
- edgeFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterEdge(ViewerFilter filter)
- */
- public void addBusinessFilterToEdge(ViewerFilter filter) {
- edgeBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInEdgeTable(EObject element)
- */
- public boolean isContainedInEdgeTable(EObject element) {
- return edgeEditUtil.contains(element);
- }
-
- public void setMessageForEdge(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForEdge() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPartitionToAdd()
- */
- public List getPartitionToAdd() {
- return partitionEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPartitionToRemove()
- */
- public List getPartitionToRemove() {
- return partitionEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getPartitionTable()
- */
- public List getPartitionTable() {
- return partitionEditUtil.getVirtualList();
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initPartition(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initPartition(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- partitionEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- partitionEditUtil = new EMFListEditUtil(current, feature);
- this.partition.setInput(partitionEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updatePartition(EObject newValue)
- */
- public void updatePartition(EObject newValue) {
- if(partitionEditUtil != null) {
- partitionEditUtil.reinit(newValue);
- partition.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterPartition(ViewerFilter filter)
- */
- public void addFilterToPartition(ViewerFilter filter) {
- partitionFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterPartition(ViewerFilter filter)
- */
- public void addBusinessFilterToPartition(ViewerFilter filter) {
- partitionBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInPartitionTable(EObject element)
- */
- public boolean isContainedInPartitionTable(EObject element) {
- return partitionEditUtil.contains(element);
- }
-
- public void setMessageForPartition(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForPartition() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getIsSingleExecution()
- */
- public Boolean getIsSingleExecution() {
- return Boolean.valueOf(isSingleExecution.getSelection());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#setIsSingleExecution(Boolean newValue)
- */
- public void setIsSingleExecution(Boolean newValue) {
- if(newValue != null) {
- isSingleExecution.setSelection(newValue.booleanValue());
- } else {
- isSingleExecution.setSelection(false);
- }
- }
-
- public void setMessageForIsSingleExecution(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForIsSingleExecution() {
-
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGroupToAdd()
- */
- public List getGroupToAdd() {
- return groupEditUtil.getElementsToAdd();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGroupToRemove()
- */
- public List getGroupToRemove() {
- return groupEditUtil.getElementsToRemove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGroupToEdit()
- */
- public Map getGroupToEdit() {
- return groupEditUtil.getElementsToRefresh();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGroupToMove()
- */
- public List getGroupToMove() {
- return groupEditUtil.getElementsToMove();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#getGroupTable()
- */
- public List getGroupTable() {
- return groupEditUtil.getVirtualList();
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#initGroup(EObject current, EReference containingFeature,
- * EReference feature)
- */
- public void initGroup(EObject current, EReference containingFeature, EReference feature) {
- if(current.eResource() != null && current.eResource().getResourceSet() != null)
- this.resourceSet = current.eResource().getResourceSet();
- if(containingFeature != null)
- groupEditUtil = new EMFListEditUtil(current, containingFeature, feature);
- else
- groupEditUtil = new EMFListEditUtil(current, feature);
- this.group.setInput(groupEditUtil.getVirtualList());
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#updateGroup(EObject newValue)
- */
- public void updateGroup(EObject newValue) {
- if(groupEditUtil != null) {
- groupEditUtil.reinit(newValue);
- group.refresh();
- }
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addFilterGroup(ViewerFilter filter)
- */
- public void addFilterToGroup(ViewerFilter filter) {
- groupFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#addBusinessFilterGroup(ViewerFilter filter)
- */
- public void addBusinessFilterToGroup(ViewerFilter filter) {
- groupBusinessFilters.add(filter);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.tabbedproperties.uml.parts.ActivityPropertiesEditionPart#isContainedInGroupTable(EObject element)
- */
- public boolean isContainedInGroupTable(EObject element) {
- return groupEditUtil.contains(element);
- }
-
- public void setMessageForGroup(String msg, int msgLevel) {
-
- }
-
- public void unsetMessageForGroup() {
-
- }
-
-
-
-
-
- // Start of user code additional methods
-
- // End of user code
-
-}

Back to the top