]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerEditor.java
Externalize strings in org.simantics.debug.ui
[simantics/platform.git] / bundles / org.simantics.debug.ui / src / org / simantics / debug / ui / graph / GraphicalDebuggerEditor.java
index 4c87b8a6d887a9c40e57d6f0aeb2447967ba1686..9e89ef3287b53825932bf72bb08203e4fa8e2721 100644 (file)
@@ -38,7 +38,7 @@ import org.simantics.utils.ui.LayoutUtils;
 
 public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
-    public static final String EDITOR_ID = "org.simantics.debug.graphicalDebuggerEditor";
+    public static final String EDITOR_ID = "org.simantics.debug.graphicalDebuggerEditor"; //$NON-NLS-1$
 
     private GraphicalDebugger      debugger;
     private IAction            backAction;
@@ -135,7 +135,7 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
     class RefreshAction extends Action {
         public RefreshAction() {
-            super("Refresh", BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif"));
+            super(Messages.GraphicalDebuggerEditor_Refresh, BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); //$NON-NLS-2$
         }
         @Override
         public void run() {
@@ -145,8 +145,8 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
     class FindAction extends Action {
         public FindAction() {
-            super("Find", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png"));
-            setToolTipText("Find Resource");
+            super(Messages.GraphicalDebuggerEditor_Find, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphicalDebuggerEditor_FindTT);
         }
         @Override
         public void run() {
@@ -156,8 +156,8 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
     class AddStatementAction extends Action {
         public AddStatementAction() {
-            super("AddStatement", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png"));
-            setToolTipText("Add Statement Between Existing Resources");
+            super(Messages.GraphicalDebuggerEditor_AddStatement, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphicalDebuggerEditor_AddStatementTT);
         }
         @Override
         public void run() {
@@ -170,8 +170,8 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
     }
     class AddResourceAction extends Action {
         public AddResourceAction() {
-            super("AddResource", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png"));
-            setToolTipText("Add New Related Resource");
+            super(Messages.GraphicalDebuggerEditor_AddResource, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphicalDebuggerEditor_AddResourceTT);
         }
         @Override
         public void run() {
@@ -184,8 +184,8 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
     }
     class BackAction extends Action {
         public BackAction() {
-            super("Back", Action.AS_PUSH_BUTTON);
-            setToolTipText("Back");
+            super(Messages.GraphicalDebuggerEditor_Back, Action.AS_PUSH_BUTTON);
+            setToolTipText(Messages.GraphicalDebuggerEditor_BackTT);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED));
         }
@@ -198,8 +198,8 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
     class ForwardAction extends Action {
         public ForwardAction() {
-            super("Forward", Action.AS_PUSH_BUTTON);
-            setToolTipText("Forward");
+            super(Messages.GraphicalDebuggerEditor_Forward, Action.AS_PUSH_BUTTON);
+            setToolTipText(Messages.GraphicalDebuggerEditor_ForwardTT);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED));
         }
@@ -212,7 +212,7 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
     
     class DecreaseDepthAction extends Action {
         public DecreaseDepthAction() {
-            super("Decrease", Action.AS_PUSH_BUTTON);
+            super(Messages.GraphicalDebuggerEditor_Decrease, Action.AS_PUSH_BUTTON);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED));
         }
@@ -224,7 +224,7 @@ public class GraphicalDebuggerEditor extends ResourceEditorPart {
 
     class IncreaseDepthAction extends Action {
         public IncreaseDepthAction() {
-            super("Increase", Action.AS_PUSH_BUTTON);
+            super(Messages.GraphicalDebuggerEditor_Increase, Action.AS_PUSH_BUTTON);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED));
         }