]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/GraphDebuggerEditor.java
Externalize strings in org.simantics.debug.ui
[simantics/platform.git] / bundles / org.simantics.debug.ui / src / org / simantics / debug / ui / GraphDebuggerEditor.java
index 8cabe294812cbc30bb2b51237516cac3e68dab96..890036afcb623fbeeba3dc03367a06ed7eb5b45c 100644 (file)
@@ -38,7 +38,7 @@ import org.simantics.utils.ui.LayoutUtils;
 
 public class GraphDebuggerEditor extends ResourceEditorPart {
 
-    public static final String EDITOR_ID = "org.simantics.debug.graphDebuggerEditor";
+    public static final String EDITOR_ID = "org.simantics.debug.graphDebuggerEditor"; //$NON-NLS-1$
 
     private GraphDebugger      debugger;
     private IAction            backAction;
@@ -120,8 +120,8 @@ public class GraphDebuggerEditor extends ResourceEditorPart {
 
     class RefreshAction extends Action {
         public RefreshAction() {
-            super("Refresh", BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif"));
-            setToolTipText("Refresh");
+            super(Messages.GraphDebuggerEditor_Refresh, BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphDebuggerEditor_RefreshTT);
         }
         @Override
         public void run() {
@@ -131,8 +131,8 @@ public class GraphDebuggerEditor extends ResourceEditorPart {
 
     class FindAction extends Action {
         public FindAction() {
-            super("Find", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png"));
-            setToolTipText("Find Resource");
+            super(Messages.GraphDebuggerEditor_Find, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphDebuggerEditor_FindTT);
         }
         @Override
         public void run() {
@@ -142,8 +142,8 @@ public class GraphDebuggerEditor 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.GraphDebuggerEditor_AddStatement, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphDebuggerEditor_AddStatementTT);
         }
         @Override
         public void run() {
@@ -157,8 +157,8 @@ public class GraphDebuggerEditor 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.GraphDebuggerEditor_AddResource, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+            setToolTipText(Messages.GraphDebuggerEditor_AddResourceTT);
         }
         @Override
         public void run() {
@@ -172,8 +172,8 @@ public class GraphDebuggerEditor extends ResourceEditorPart {
 
     class BackAction extends Action {
         public BackAction() {
-            super("Back", Action.AS_PUSH_BUTTON);
-            setToolTipText("Back");
+            super(Messages.GraphDebuggerEditor_Back, Action.AS_PUSH_BUTTON);
+            setToolTipText(Messages.GraphDebuggerEditor_BackTT);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED));
         }
@@ -186,8 +186,8 @@ public class GraphDebuggerEditor extends ResourceEditorPart {
 
     class ForwardAction extends Action {
         public ForwardAction() {
-            super("Forward", Action.AS_PUSH_BUTTON);
-            setToolTipText("Forward");
+            super(Messages.GraphDebuggerEditor_Forward, Action.AS_PUSH_BUTTON);
+            setToolTipText(Messages.GraphDebuggerEditor_ForwardTT);
             setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
             setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED));
         }