[187490] Ensuring child descriptors for link end data are appropriate.
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/CreateLinkActionItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/CreateLinkActionItemProvider.java
index 1f5ea5a..23b3d58 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/CreateLinkActionItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/CreateLinkActionItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: CreateLinkActionItemProvider.java,v 1.6 2007/03/22 16:46:11 khussey Exp $
+ * $Id: CreateLinkActionItemProvider.java,v 1.7 2007/05/23 20:31:56 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -28,6 +28,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
//import org.eclipse.uml2.uml.CreateLinkAction;
+import org.eclipse.uml2.uml.UMLFactory;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.edit.UMLEditPlugin;
@@ -153,4 +154,12 @@
return UMLEditPlugin.INSTANCE;
}
+ @Override
+ protected void collectNewEndDataChildDescriptors(
+ Collection<Object> newChildDescriptors, Object object) {
+ newChildDescriptors.add(createChildParameter(
+ UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
+ .createLinkEndCreationData()));
+ }
+
}
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestroyLinkActionItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestroyLinkActionItemProvider.java
index e568e9c..90e4338 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestroyLinkActionItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/DestroyLinkActionItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: DestroyLinkActionItemProvider.java,v 1.6 2007/03/22 16:46:12 khussey Exp $
+ * $Id: DestroyLinkActionItemProvider.java,v 1.7 2007/05/23 20:31:56 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -28,6 +28,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
//import org.eclipse.uml2.uml.DestroyLinkAction;
+import org.eclipse.uml2.uml.UMLFactory;
import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.edit.UMLEditPlugin;
@@ -153,4 +154,12 @@
return UMLEditPlugin.INSTANCE;
}
+ @Override
+ protected void collectNewEndDataChildDescriptors(
+ Collection<Object> newChildDescriptors, Object object) {
+ newChildDescriptors.add(createChildParameter(
+ UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
+ .createLinkEndDestructionData()));
+ }
+
}
diff --git a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LinkActionItemProvider.java b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LinkActionItemProvider.java
index 613741b..0767ff7 100644
--- a/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LinkActionItemProvider.java
+++ b/plugins/org.eclipse.uml2.uml.edit/src/org/eclipse/uml2/uml/edit/providers/LinkActionItemProvider.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - initial API and implementation
*
- * $Id: LinkActionItemProvider.java,v 1.5 2007/03/22 16:46:09 khussey Exp $
+ * $Id: LinkActionItemProvider.java,v 1.6 2007/05/23 20:31:56 khussey Exp $
*/
package org.eclipse.uml2.uml.edit.providers;
@@ -189,24 +189,14 @@
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
+ * @generated NOT
*/
@Override
protected void collectNewChildDescriptors(
Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
- .createLinkEndData()));
-
- newChildDescriptors.add(createChildParameter(
- UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
- .createLinkEndCreationData()));
-
- newChildDescriptors.add(createChildParameter(
- UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
- .createLinkEndDestructionData()));
+ collectNewEndDataChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add(createChildParameter(
UMLPackage.Literals.LINK_ACTION__INPUT_VALUE, UMLFactory.eINSTANCE
@@ -221,6 +211,13 @@
.createActionInputPin()));
}
+ protected void collectNewEndDataChildDescriptors(
+ Collection<Object> newChildDescriptors, Object object) {
+ newChildDescriptors.add(createChildParameter(
+ UMLPackage.Literals.LINK_ACTION__END_DATA, UMLFactory.eINSTANCE
+ .createLinkEndData()));
+ }
+
/**
* This returns the label text for {@link org.eclipse.emf.edit.command.CreateChildCommand}.
* <!-- begin-user-doc -->