Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2018-04-13 09:16:52 +0000
committerAnsgar Radermacher2018-05-24 08:12:31 +0000
commit1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5 (patch)
treebd019b9624e9b1d7df8e86dc46655d9d133b17be
parentca57936e6e2fbdabcbf0c3ef3bdeff123ffba174 (diff)
downloadorg.eclipse.papyrus-1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5.tar.gz
org.eclipse.papyrus-1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5.tar.xz
org.eclipse.papyrus-1037d7f15d0cdec50f5ca59ab7208f9cb886f8d5.zip
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 <ansgar.radermacher@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite/custom-src/org/eclipse/papyrus/uml/diagram/composite/custom/edit/command/PropertyPartFromTypeCreateCommand.java5
1 files changed, 1 insertions, 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);
}

Back to the top