| commit | 1b15419acb8d1aa7954044ce2daad6ea51bdfae1 | [log] [tgz] |
|---|---|---|
| author | cwaniek <cwaniek> | Tue Jun 07 12:39:46 2011 +0000 |
| committer | cwaniek <cwaniek> | Tue Jun 07 12:39:46 2011 +0000 |
| tree | a8f863dd33cb174634c97a22c42fc8460b21ce67 | |
| parent | 8389961b5b013a529ba66560f6caf6e41449e596 [diff] |
respecting l10n in 'Apply Profile/Apply Stereotype' context menues
diff --git a/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyProfileAction.java b/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyProfileAction.java index 9a8cfbc..eb34f65 100644 --- a/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyProfileAction.java +++ b/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyProfileAction.java
@@ -81,7 +81,7 @@ } protected String calculateText() { - String name = myProfile.getName(); + String name = myProfile.getLabel(); return name != null ? name : EMPTY_NAME; }
diff --git a/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyStereotypeAction.java b/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyStereotypeAction.java index 8ea444e..0e964ba 100644 --- a/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyStereotypeAction.java +++ b/plugins/org.eclipse.uml2.diagram.common/src/org/eclipse/uml2/diagram/common/stereo/ApplyStereotypeAction.java
@@ -68,7 +68,7 @@ } private String calculateText() { - String name = myStereotype.getQualifiedName(); + String name = myStereotype.getLabel(); return name != null ? name : EMPTY_NAME; }