Fixed string externalizations for AssignSymbolGroupDialog 03/3803/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 21 Jan 2020 11:15:44 +0000 (13:15 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 21 Jan 2020 11:15:44 +0000 (13:15 +0200)
gitlab #330

Change-Id: Ia0f39351dfd8bbc68510965cd364e9843e7bfb6b

bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/AssignSymbolGroupsDialog.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/Messages.java
bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/WorkbenchMessages.java [deleted file]

index a85c35628fb1a69252eed0359ed3ae7c7fdb8c7c..2af1510945b05e1958d4406e270d1fe9bcf05c7c 100644 (file)
@@ -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) {
index 2039c105b6b82a33de2a2b5c4e30c6540afb80de..6c45308a68fa10522df94dae50beb4194d9df3de 100644 (file)
@@ -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 (file)
index 24e7b8a..0000000
+++ /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() {
-       }
-}