From 5ee1182690f96df87016073948396314df775eef Mon Sep 17 00:00:00 2001 From: Pauline DEVILLE Date: Tue, 6 Dec 2016 15:30:36 +0100 Subject: Bug 508748 - [ActivityDiagram] Pins of AddStructuralFeatureValueAction should be create and update automatically Change-Id: I8baf3589c65443e726c2b3799b815c6c9c80fd31 Signed-off-by: Pauline DEVILLE --- ...ructuralFeatureValueActionEditHelperAdvice.java | 109 +++++++++++++++++++++ .../edit/advices/PropertyEditHelperAdvice.java | 31 ++++-- .../edit/utils/updater/PinUpdaterFactory.java | 4 + .../AddStructuralFeatureValueActionPinUpdater.java | 97 ++++++++++++++++++ ...vityAutomatedModelCompletionPreferencePage.java | 2 + ...matedModelCompletionPreferencesInitializer.java | 1 + ...tomatedModelCompletionPreferencesConstants.java | 2 + 7 files changed, 239 insertions(+), 7 deletions(-) create mode 100644 plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/AddStructuralFeatureValueActionEditHelperAdvice.java create mode 100644 plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/intermediateactions/AddStructuralFeatureValueActionPinUpdater.java (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus') diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/AddStructuralFeatureValueActionEditHelperAdvice.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/AddStructuralFeatureValueActionEditHelperAdvice.java new file mode 100644 index 00000000000..3197c00089c --- /dev/null +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/AddStructuralFeatureValueActionEditHelperAdvice.java @@ -0,0 +1,109 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.diagram.activity.edit.advices; + +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice; +import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest; +import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.papyrus.uml.diagram.activity.edit.commands.util.ImportUMLPrimitiveTypePackageCommand; +import org.eclipse.papyrus.uml.diagram.activity.edit.commands.util.PinUpdateCommand; +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.PinUpdaterFactory; +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.UpdaterPinUtils; +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.preferences.AutomatedModelCompletionPreferencesInitializer; +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.preferences.IAutomatedModelCompletionPreferencesConstants; +import org.eclipse.papyrus.uml.diagram.common.Activator; +import org.eclipse.papyrus.uml.tools.utils.PackageUtil; +import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; +import org.eclipse.uml2.uml.Element; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.UMLPackage; + +/** + * + * Pins of AddStructuralFeatureValueAction should be create and update automatically + * + */ +public class AddStructuralFeatureValueActionEditHelperAdvice extends AbstractEditHelperAdvice { + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest) + * + * @param request + * @return + */ + @Override + protected ICommand getAfterConfigureCommand(ConfigureRequest request) { + // 1] get the preference for AddStructuralFeatureValueAction + final IPreferenceStore prefStore = Activator.getDefault().getPreferenceStore(); + boolean synchronizePin = (prefStore.getString(IAutomatedModelCompletionPreferencesConstants.ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR).equals(AutomatedModelCompletionPreferencesInitializer.PIN_SYNCHRONIZATION)); + // 2] check preference + if (synchronizePin) { + // 3] call the command for the AddStructuralFeatureValueAction + AddStructuralFeatureValueAction addStructuralFeatureValueAction = (AddStructuralFeatureValueAction) request.getElementToConfigure(); + if (addStructuralFeatureValueAction != null) { + return new PinUpdateCommand("Update add structural feature value action pins", PinUpdaterFactory.getInstance().instantiate(addStructuralFeatureValueAction), addStructuralFeatureValueAction); //$NON-NLS-1$ + } + } + return null; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getBeforeSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest) + * + * @param request + * @return + */ + @Override + protected ICommand getBeforeConfigureCommand(ConfigureRequest request) { + // 1] get the preference for AddStructuralFeatureValueAction + final IPreferenceStore prefStore = Activator.getDefault().getPreferenceStore(); + boolean synchronizePin = (prefStore.getString(IAutomatedModelCompletionPreferencesConstants.ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR).equals(AutomatedModelCompletionPreferencesInitializer.PIN_SYNCHRONIZATION)); + // 2] check preference + if (synchronizePin) { + // 3] call the command to import UML primitive types package + Package root = PackageUtil.getRootPackage((Element) request.getElementToConfigure()); + if (!UpdaterPinUtils.isPrimitiveTypeLibraryImported(root)) { + return new ImportUMLPrimitiveTypePackageCommand("Import UML primitive type package", root); //$NON-NLS-1$ + } + } + return null; + } + + /** + * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterSetCommand(org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest) + * + * @param request + * @return + */ + @Override + protected ICommand getAfterSetCommand(SetRequest request) { + // 1] check if the setFeature is StructuralFeature + if (request.getFeature().equals(UMLPackage.eINSTANCE.getStructuralFeatureAction_StructuralFeature())) { + // 2] get the preference for AddStructuralFeatureValueAction + final IPreferenceStore prefStore = Activator.getDefault().getPreferenceStore(); + boolean synchronizePin = (prefStore.getString(IAutomatedModelCompletionPreferencesConstants.ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR).equals(AutomatedModelCompletionPreferencesInitializer.PIN_SYNCHRONIZATION)); + // 3] check preference + if (synchronizePin) { + // 4] call the command for the AddStructuralFeatureValueAction + AddStructuralFeatureValueAction addStructuralFeatureValueAction = (AddStructuralFeatureValueAction) request.getElementToEdit(); + if (addStructuralFeatureValueAction != null) { + return new PinUpdateCommand("Update add structural feature value action pins", PinUpdaterFactory.getInstance().instantiate(addStructuralFeatureValueAction), addStructuralFeatureValueAction); //$NON-NLS-1$ + } + } + } + return null; + } +} diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/PropertyEditHelperAdvice.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/PropertyEditHelperAdvice.java index a4a71f79152..4f19104881b 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/PropertyEditHelperAdvice.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/advices/PropertyEditHelperAdvice.java @@ -30,6 +30,7 @@ import org.eclipse.papyrus.uml.tools.utils.ElementUtil; import org.eclipse.papyrus.uml.tools.utils.PackageUtil; import org.eclipse.uml2.uml.AcceptCallAction; import org.eclipse.uml2.uml.AcceptEventAction; +import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; import org.eclipse.uml2.uml.Package; import org.eclipse.uml2.uml.Property; import org.eclipse.uml2.uml.ReadStructuralFeatureAction; @@ -86,24 +87,40 @@ public class PropertyEditHelperAdvice extends AbstractEditHelperAdvice { } } } - // Pins of ReadStructuralFeatureAction should be create and update automatically - // 1] check if the setFeature is not Name (only type and multiplicity is interesting) + // check if the setFeature is not Name (only type and multiplicity is interesting) if (!request.getFeature().equals(UMLPackage.eINSTANCE.getNamedElement_Name())) { - // 2] get the preference for ReadStructuralFeatureAction + // Pins of ReadStructuralFeatureAction should be create and update automatically + // 1] get the preference for ReadStructuralFeatureAction synchronizePinPreference = prefStore.getString(IAutomatedModelCompletionPreferencesConstants.READ_STRUCTURAL_FEATURE_ACTION_ACCELERATOR).equals(AutomatedModelCompletionPreferencesInitializer.PIN_SYNCHRONIZATION); - // 3] check preference + // 2] check preference if (synchronizePinPreference) { - // 4] get all ReadStructuralFeatureAction + // 3] get all ReadStructuralFeatureAction List allReadStructuralFeatureAction = ElementUtil.getInstancesFilteredByType(root, ReadStructuralFeatureAction.class, null); - // 5] loop into the list of ReadStructuralFeatureAction + // 4] loop into the list of ReadStructuralFeatureAction for (ReadStructuralFeatureAction readStructuralFeatureAction : allReadStructuralFeatureAction) { if (readStructuralFeatureAction.getStructuralFeature() == property) { - // 6] call the command for the ReadStructuralFeatureAction whose the structuralFeature reference the property + // 5] call the command for the ReadStructuralFeatureAction whose the structuralFeature reference the property IPinUpdater updater = PinUpdaterFactory.getInstance().instantiate(readStructuralFeatureAction); command.add(new PinUpdateCommand("Update read structural feature action pins", updater, readStructuralFeatureAction)); //$NON-NLS-1$ } } } + // Pins of AddStructuralFeatureValueAction should be create and update automatically + // 1] get the preference for AddStructuralFeatureValueAction + synchronizePinPreference = prefStore.getString(IAutomatedModelCompletionPreferencesConstants.ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR).equals(AutomatedModelCompletionPreferencesInitializer.PIN_SYNCHRONIZATION); + // 2] check preference + if (synchronizePinPreference) { + // 3] get all AddStructuralFeatureValueAction + List allAddStructuralFeatureValueAction = ElementUtil.getInstancesFilteredByType(root, AddStructuralFeatureValueAction.class, null); + // 4] loop into the list of AddStructuralFeatureValueAction + for (AddStructuralFeatureValueAction addStructuralFeatureValueAction : allAddStructuralFeatureValueAction) { + if (addStructuralFeatureValueAction.getStructuralFeature() == request.getElementToEdit()) { + // 5] call the command for the AddStructuralFeatureValueAction whose the structuralFeature is the property + IPinUpdater updater = PinUpdaterFactory.getInstance().instantiate(addStructuralFeatureValueAction); + command.add(new PinUpdateCommand("Update add structural feature value action pins", updater, addStructuralFeatureValueAction)); //$NON-NLS-1$ + } + } + } } if (!command.isEmpty()) { return command; diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/PinUpdaterFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/PinUpdaterFactory.java index e6e8da78310..77fba12945f 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/PinUpdaterFactory.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/PinUpdaterFactory.java @@ -16,10 +16,12 @@ package org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater; import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.intermediateactions.AcceptCallActionPinUpdater; import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.intermediateactions.AcceptEventActionPinUpdater; +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.intermediateactions.AddStructuralFeatureValueActionPinUpdater; import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.intermediateactions.ReadStructuralFeatureActionPinUpdater; import org.eclipse.uml2.uml.AcceptCallAction; import org.eclipse.uml2.uml.AcceptEventAction; import org.eclipse.uml2.uml.ActivityNode; +import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; import org.eclipse.uml2.uml.CallBehaviorAction; import org.eclipse.uml2.uml.CallOperationAction; import org.eclipse.uml2.uml.ReadStructuralFeatureAction; @@ -75,6 +77,8 @@ public class PinUpdaterFactory { updater = (IPinUpdater) new AcceptEventActionPinUpdater(); } else if (node instanceof ReadStructuralFeatureAction) { updater = (IPinUpdater) new ReadStructuralFeatureActionPinUpdater(); + } else if (node instanceof AddStructuralFeatureValueAction) { + updater = (IPinUpdater) new AddStructuralFeatureValueActionPinUpdater(); } return updater; } diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/intermediateactions/AddStructuralFeatureValueActionPinUpdater.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/intermediateactions/AddStructuralFeatureValueActionPinUpdater.java new file mode 100644 index 00000000000..f8fd081ee28 --- /dev/null +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/intermediateactions/AddStructuralFeatureValueActionPinUpdater.java @@ -0,0 +1,97 @@ +/***************************************************************************** + * Copyright (c) 2016 CEA LIST and others. + * + * 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: + * CEA LIST - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.intermediateactions; + +import org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.AbstractActionPinUpdater; +import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; +import org.eclipse.uml2.uml.InputPin; +import org.eclipse.uml2.uml.OutputPin; +import org.eclipse.uml2.uml.StructuralFeature; +import org.eclipse.uml2.uml.UMLFactory; + +/** + * Pins of AddStructuralFeatureValueAction should be create and update automatically + * + * This class define derivation rules + */ +public class AddStructuralFeatureValueActionPinUpdater extends AbstractActionPinUpdater { + + /** + * @see org.eclipse.papyrus.uml.diagram.activity.edit.utils.updater.IPinUpdater#updatePins(org.eclipse.uml2.uml.ActivityNode) + * + * @param node + */ + @Override + public void updatePins(AddStructuralFeatureValueAction node) { + // 1] create object pin if it is not created yet + InputPin object = node.getObject(); + if(object == null){ + object = UMLFactory.eINSTANCE.createInputPin(); + object.setLower(1); + object.setUpper(1); + object.setName("object"); //$NON-NLS-1$ + } + StructuralFeature structuralFeature = node.getStructuralFeature(); + if(structuralFeature != null){ + // 2] update object pin type with the classifier owning the feature since the structural feature is set + if(structuralFeature.getFeaturingClassifiers().size() != 0){ + object.setType(structuralFeature.getFeaturingClassifiers().get(0)); + } + + // 3] update or create the result pin since the structural feature is set + // the result pin should be typed with the classifier owning the feature and its multiplicity should be 1 + OutputPin result = node.getResult(); + if (result == null) { + result = UMLFactory.eINSTANCE.createOutputPin(); + result.setLower(1); + result.setUpper(1); + result.setName("result"); //$NON-NLS-1$ + } + if (structuralFeature.getFeaturingClassifiers().size() != 0) { + result.setType(structuralFeature.getFeaturingClassifiers().get(0)); + } + node.setResult(result); + + // 4] update or create the value pin since the structural feature is set + // the value pin should have the same type as the structural feature and its multiplicity should be 1 + InputPin value = node.getValue(); + if (value == null) { + value = UMLFactory.eINSTANCE.createInputPin(); + value.setLower(1); + value.setUpper(1); + value.setName("value"); //$NON-NLS-1$ + } + value.setType(structuralFeature.getType()); + node.setValue(value); + + // 5] create the insertAt pin if the multiplicity of the structural feature is greater than 1 + // the insertAt pin should be typed by UnlimitedNatural and its multiplicity should be 1 + InputPin insertAt = node.getInsertAt(); + if (structuralFeature.getUpper() > 1 || structuralFeature.getUpper() == -1) { + if (insertAt == null) { + insertAt = UMLFactory.eINSTANCE.createInputPin(); + insertAt.setLower(1); + insertAt.setUpper(1); + insertAt.setType(this.getUMLPrimitiveType("UnlimitedNatural", node.getModel())); //$NON-NLS-1$ + insertAt.setName("insertAt"); //$NON-NLS-1$ + node.setInsertAt(insertAt); + } + } else { + node.setInsertAt(null); + } + } + node.setObject(object); + } + +} diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/ActivityAutomatedModelCompletionPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/ActivityAutomatedModelCompletionPreferencePage.java index cae2ae926d1..81acfb87eb7 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/ActivityAutomatedModelCompletionPreferencePage.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/ActivityAutomatedModelCompletionPreferencePage.java @@ -21,6 +21,7 @@ import org.eclipse.papyrus.uml.diagram.common.preferences.AutomatedModelCompleti import org.eclipse.uml2.uml.AcceptCallAction; import org.eclipse.uml2.uml.AcceptEventAction; import org.eclipse.uml2.uml.ActivityNode; +import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; import org.eclipse.uml2.uml.ReadStructuralFeatureAction; /** @@ -71,6 +72,7 @@ public class ActivityAutomatedModelCompletionPreferencePage extends AbstractAuto List> actionList = new ArrayList<>(); actionList.add(AcceptCallAction.class); actionList.add(AcceptEventAction.class); + actionList.add(AddStructuralFeatureValueAction.class); actionList.add(ReadStructuralFeatureAction.class); return actionList; } diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/AutomatedModelCompletionPreferencesInitializer.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/AutomatedModelCompletionPreferencesInitializer.java index eb38a38122d..ae76b706787 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/AutomatedModelCompletionPreferencesInitializer.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/AutomatedModelCompletionPreferencesInitializer.java @@ -46,6 +46,7 @@ public class AutomatedModelCompletionPreferencesInitializer extends AbstractPref IPreferenceStore store = getPreferenceStore(); store.setDefault(IAutomatedModelCompletionPreferencesConstants.ACCEPT_CALL_ACTION_ACCELERATOR, PIN_SYNCHRONIZATION); store.setDefault(IAutomatedModelCompletionPreferencesConstants.ACCEPTE_EVENT_ACTION_ACCELERATOR, PIN_SYNCHRONIZATION); + store.setDefault(IAutomatedModelCompletionPreferencesConstants.ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR, PIN_SYNCHRONIZATION); store.setDefault(IAutomatedModelCompletionPreferencesConstants.READ_STRUCTURAL_FEATURE_ACTION_ACCELERATOR, PIN_SYNCHRONIZATION); } diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/IAutomatedModelCompletionPreferencesConstants.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/IAutomatedModelCompletionPreferencesConstants.java index e8c9aa2005f..894d9a3a41b 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/IAutomatedModelCompletionPreferencesConstants.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/utils/updater/preferences/IAutomatedModelCompletionPreferencesConstants.java @@ -24,5 +24,7 @@ public interface IAutomatedModelCompletionPreferencesConstants { final public String ACCEPTE_EVENT_ACTION_ACCELERATOR = "org.eclipse.papyrus.uml.diagram.activity.preferences.acceptEventAction"; + final public String ADD_STRUCTURAL_FEATURE_VALUE_ACTION_ACCELERATOR = "org.eclipse.papyrus.uml.diagram.activity.preferences.addStructuralFeatureValueAction"; + final public String READ_STRUCTURAL_FEATURE_ACTION_ACCELERATOR = "org.eclipse.papyrus.uml.diagram.activity.preferences.readStructuralFeatureAction"; } -- cgit v1.2.3