From 59fab72711793472f964a0f6a08322478680e345 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 21 Jan 2020 13:15:44 +0200 Subject: [PATCH] Fixed string externalizations for AssignSymbolGroupDialog gitlab #330 Change-Id: Ia0f39351dfd8bbc68510965cd364e9843e7bfb6b --- .../ui/actions/AssignSymbolGroupsDialog.java | 4 ++-- .../simantics/modeling/ui/actions/Messages.java | 2 ++ .../modeling/ui/actions/WorkbenchMessages.java | 16 ---------------- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/WorkbenchMessages.java diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/AssignSymbolGroupsDialog.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/AssignSymbolGroupsDialog.java index a85c35628..2af151094 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/AssignSymbolGroupsDialog.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/AssignSymbolGroupsDialog.java @@ -135,7 +135,7 @@ public abstract class AssignSymbolGroupsDialog extends SelectionDialog { Label label = new Label(buttonComposite, SWT.NONE); Button newButton = createButton(buttonComposite, - IDialogConstants.INTERNAL_ID-1, org.simantics.modeling.ui.actions.WorkbenchMessages.AssignSymbolGroupsDialog_New, false); + IDialogConstants.INTERNAL_ID-1, org.simantics.modeling.ui.actions.Messages.AssignSymbolGroupsDialog_New, false); listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { @@ -145,7 +145,7 @@ public abstract class AssignSymbolGroupsDialog extends SelectionDialog { newButton.addSelectionListener(listener); Button removeButton = createButton(buttonComposite, - IDialogConstants.INTERNAL_ID-2, org.simantics.modeling.ui.actions.WorkbenchMessages.AssignSymbolGroupsDialog_Remove, false); + IDialogConstants.INTERNAL_ID-2, org.simantics.modeling.ui.actions.Messages.AssignSymbolGroupsDialog_Remove, false); listener = new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/Messages.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/Messages.java index 2039c105b..6c45308a6 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/Messages.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/Messages.java @@ -16,6 +16,8 @@ public class Messages extends NLS { public static String AssignSymbolGroup_SelectSymbolGroupsTheSelectedSymbolsAreShownIn; public static String AssignSymbolGroup_SymbolGroupAssignments; public static String AssignSymbolGroup_WriteSymbolGroupName; + public static String AssignSymbolGroupsDialog_New; + public static String AssignSymbolGroupsDialog_Remove; public static String CompilePGraphsAction_CompilePGraphs; public static String CompilePGraphsAction_Continue; public static String CompilePGraphsAction_FollowingIssuesFound; diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/WorkbenchMessages.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/WorkbenchMessages.java deleted file mode 100644 index 24e7b8af4..000000000 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/WorkbenchMessages.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.simantics.modeling.ui.actions; - -import org.eclipse.osgi.util.NLS; - -public class WorkbenchMessages extends NLS { - private static final String BUNDLE_NAME = "org.simantics.modeling.ui.actions.messages"; //$NON-NLS-1$ - public static String AssignSymbolGroupsDialog_New; - public static String AssignSymbolGroupsDialog_Remove; - static { - // initialize resource bundle - NLS.initializeMessages(BUNDLE_NAME, WorkbenchMessages.class); - } - - private WorkbenchMessages() { - } -} -- 2.47.1