From 1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5 Mon Sep 17 00:00:00 2001 From: Ansgar Radermacher Date: Fri, 13 Apr 2018 11:16:52 +0200 Subject: Bug 521473 - [Properties View][Internationalization] Label should not be set automatically - Remove label in case of drag&drop of Type in composite structure Signed-off-by: Ansgar Radermacher --- .../custom/edit/command/PropertyPartFromTypeCreateCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/custom-src/org/eclipse/papyrus/uml/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/custom-src/org/eclipse/papyrus/uml/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java index b7d16ae0e79..f4ff8ad1b5a 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/custom-src/org/eclipse/papyrus/uml/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/custom-src/org/eclipse/papyrus/uml/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java @@ -22,8 +22,8 @@ import org.eclipse.gmf.runtime.common.core.command.CommandResult; import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand; import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; import org.eclipse.gmf.runtime.notation.View; -import org.eclipse.papyrus.infra.internationalization.common.utils.InternationalizationPreferencesUtils; import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter; +import org.eclipse.papyrus.infra.internationalization.common.utils.InternationalizationPreferencesUtils; import org.eclipse.papyrus.uml.internationalization.utils.utils.UMLLabelInternationalization; import org.eclipse.uml2.uml.Property; import org.eclipse.uml2.uml.StructuredClassifier; @@ -106,9 +106,6 @@ public class PropertyPartFromTypeCreateCommand extends EditElementCommand { i++; } newElement.setName(elementName); - if(!elementName.isEmpty()){ - UMLLabelInternationalization.getInstance().setLabel(newElement, elementName, null); - } return CommandResult.newOKCommandResult(semanticAdapter); } -- cgit v1.2.3