Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.composite/custom-src/org/eclipse/papyrus/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.composite/custom-src/org/eclipse/papyrus/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java b/plugins/uml/org.eclipse.papyrus.diagram.composite/custom-src/org/eclipse/papyrus/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java
index 25ac6d1ed9c..dceaa997874 100644
--- a/plugins/uml/org.eclipse.papyrus.diagram.composite/custom-src/org/eclipse/papyrus/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java
+++ b/plugins/uml/org.eclipse.papyrus.diagram.composite/custom-src/org/eclipse/papyrus/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java
@@ -71,11 +71,11 @@ public class PropertyPartFromTypeCreateCommand extends EditElementCommand {
StructuredClassifier owner = (StructuredClassifier)getElementToEdit();
owner.getOwnedAttributes().add(newElement);
newElement.setType(type);
-
- ElementInitializers.getInstance().init_Property_3070(newElement);
-
- ((CreateElementRequest)getRequest()).setNewElement(newElement);
-
+
+ String elementName = type.getName()+ Integer.toString(owner.getOwnedAttributes().size());
+
+ newElement.setName(elementName);
+ ((CreateElementRequest)getRequest()).setNewElement(newElement);
semanticAdapter.setElement(newElement);
return CommandResult.newOKCommandResult(semanticAdapter);
}

Back to the top