From: Tuukka Lehtonen Date: Tue, 21 Jan 2020 11:15:44 +0000 (+0200) Subject: Fixed string externalizations for AssignSymbolGroupDialog X-Git-Tag: v1.43.0~121 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F3803%2F1;p=simantics%2Fplatform.git Fixed string externalizations for AssignSymbolGroupDialog gitlab #330 Change-Id: Ia0f39351dfd8bbc68510965cd364e9843e7bfb6b --- 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() { - } -}