X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.debug.ui%2Fsrc%2Forg%2Fsimantics%2Fdebug%2Fui%2Fgraph%2FGraphicalDebuggerEditor.java;h=9e89ef3287b53825932bf72bb08203e4fa8e2721;hp=4c87b8a6d887a9c40e57d6f0aeb2447967ba1686;hb=59724aa55a75a4efc3ec17e3b4a4ef62f463526e;hpb=1fe7ef332a6f996a13b4dda38bc85a743a154baa diff --git a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerEditor.java b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerEditor.java index 4c87b8a6d..9e89ef328 100644 --- a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerEditor.java +++ b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerEditor.java @@ -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)); }