Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-03-11 12:23:27 +0000
committerAnsgar Radermacher2014-03-11 12:28:53 +0000
commit67c1c74a2e7135df29a40d589b4e715ced905a90 (patch)
treec8eaec2ae0ee9978f1948dd0444bde0017c24676 /plugins/infra
parente6e5f0e360117e271e761d1e345d266f4479c5a0 (diff)
downloadorg.eclipse.papyrus-67c1c74a2e7135df29a40d589b4e715ced905a90.tar.gz
org.eclipse.papyrus-67c1c74a2e7135df29a40d589b4e715ced905a90.tar.xz
org.eclipse.papyrus-67c1c74a2e7135df29a40d589b4e715ced905a90.zip
[Bug 429744] [UML 2.5] Migrate Papyrus to UML 2.5 - Adaptation of MTL files (due to standard profile)
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/ui/DirectEditorsContributionItem.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/ui/DirectEditorsContributionItem.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/ui/DirectEditorsContributionItem.java
index bc57fa0ca1a..93d889f796d 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/ui/DirectEditorsContributionItem.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors/src/org/eclipse/papyrus/extensionpoints/editors/ui/DirectEditorsContributionItem.java
@@ -41,7 +41,7 @@ public class DirectEditorsContributionItem extends ContributionItem implements I
*
*/
public DirectEditorsContributionItem() {
- setId("org.eclipse.papyrus.editors.menuitem");
+ setId("org.eclipse.papyrus.editors.menuitem"); //$NON-NLS-1$
}
/**
@@ -86,7 +86,7 @@ public class DirectEditorsContributionItem extends ContributionItem implements I
return;
}
- // get the uml object type of this element, using the business resolver
+ // get the UML object type of this element, using the business resolver
final Object businessObject = EMFHelper.getEObject(selectedElement);
// no object found: exit
@@ -111,9 +111,10 @@ public class DirectEditorsContributionItem extends ContributionItem implements I
protected void createSubMenu(Menu menu, int index, Object businessObject, Collection<DirectEditorExtensionPoint> configurations) {
// create direct item, and then create sub-items
subMenuItem = new MenuItem(menu, SWT.CASCADE);
- String type = ((businessObject instanceof EObject) ? ((EObject)businessObject).eClass().getName() : "");
+ String type = ((businessObject instanceof EObject) ?
+ ((EObject)businessObject).eClass().getName() : ""); //$NON-NLS-1$
- subMenuItem.setText("Edit " + type);
+ subMenuItem.setText("Edit " + type); //$NON-NLS-1$
// submenu
Menu subMenu = new Menu(menu);
@@ -127,11 +128,10 @@ public class DirectEditorsContributionItem extends ContributionItem implements I
for(final DirectEditorExtensionPoint configuration : configurations) {
MenuItem item = new MenuItem(subMenu, SWT.NONE);
StringBuffer buffer = new StringBuffer();
- buffer.append("Using ");
+ buffer.append("Using "); //$NON-NLS-1$
buffer.append(configuration.getLanguage());
- buffer.append(" Editor");
if(configuration.equals(defaultConfig)) {
- buffer.append(" (Default via F2)");
+ buffer.append(" (Default via F2)"); //$NON-NLS-1$
}
item.setText(buffer.toString());
item.addSelectionListener(new SelectionListener() {

Back to the top