X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.debug.ui%2Fsrc%2Forg%2Fsimantics%2Fdebug%2Fui%2Fgraph%2FGraphicalDebuggerView.java;h=a47f48e23eaad757a509ad3295ebe1e326f04878;hb=refs%2Fchanges%2F48%2F4548%2F1;hp=ca2089a39ddc2efee90cd6767bb994c814660ab2;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerView.java b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerView.java index ca2089a39..a47f48e23 100644 --- a/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerView.java +++ b/bundles/org.simantics.debug.ui/src/org/simantics/debug/ui/graph/GraphicalDebuggerView.java @@ -20,6 +20,7 @@ import org.eclipse.ui.IActionBars; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.part.ViewPart; +import org.simantics.Simantics; import org.simantics.db.Resource; import org.simantics.db.Session; import org.simantics.db.exception.DatabaseException; @@ -31,7 +32,7 @@ import org.simantics.utils.ui.LayoutUtils; public class GraphicalDebuggerView extends ViewPart { - public static final String VIEW_ID = "org.simantics.debug.graphicalDebugger"; + public static final String VIEW_ID = "org.simantics.debug.graphicalDebugger"; //$NON-NLS-1$ // private final boolean DEFAULT_RECYCLE_VIEW = true; @@ -52,7 +53,7 @@ public class GraphicalDebuggerView extends ViewPart { @Override public void createPartControl(Composite parent) { // System.out.println("koss: " + getViewSite().getSecondaryId()); - session = SimanticsUI.getSession(); + session = Simantics.getSession(); // Initialize input String sid = getViewSite().getSecondaryId(); @@ -127,7 +128,7 @@ public class GraphicalDebuggerView extends ViewPart { // class RefreshAction extends Action { public RefreshAction() { - super("Refresh", BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); + super(Messages.GraphicalDebuggerView_Refresh, BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); //$NON-NLS-2$ } @Override public void run() { @@ -137,7 +138,7 @@ public class GraphicalDebuggerView extends ViewPart { class BackAction extends Action { public BackAction() { - super("Back", Action.AS_PUSH_BUTTON); + super(Messages.GraphicalDebuggerView_Back, Action.AS_PUSH_BUTTON); setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK)); setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED)); } @@ -149,7 +150,7 @@ public class GraphicalDebuggerView extends ViewPart { class ForwardAction extends Action { public ForwardAction() { - super("Forward", Action.AS_PUSH_BUTTON); + super(Messages.GraphicalDebuggerView_Forward, Action.AS_PUSH_BUTTON); setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD)); setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED)); } @@ -161,8 +162,8 @@ public class GraphicalDebuggerView extends ViewPart { class HomeAction extends Action { public HomeAction() { - super("Home", Action.AS_PUSH_BUTTON); - setToolTipText("Navigate to root library"); + super(Messages.GraphicalDebuggerView_Home, Action.AS_PUSH_BUTTON); + setToolTipText(Messages.GraphicalDebuggerView_HomeTT); setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV)); setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV_DISABLED)); } @@ -174,8 +175,8 @@ public class GraphicalDebuggerView extends ViewPart { class DecreaseDepthAction extends Action { public DecreaseDepthAction() { - super("Decrease", Action.AS_PUSH_BUTTON); - setToolTipText("Decrease Depth"); + super(Messages.GraphicalDebuggerView_Decrease, Action.AS_PUSH_BUTTON); + setToolTipText(Messages.GraphicalDebuggerView_DecreaseTT); setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK)); setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED)); } @@ -187,8 +188,8 @@ public class GraphicalDebuggerView extends ViewPart { class IncreaseDepthAction extends Action { public IncreaseDepthAction() { - super("Increase", Action.AS_PUSH_BUTTON); - setToolTipText("Increase Depth"); + super(Messages.GraphicalDebuggerView_Increase, Action.AS_PUSH_BUTTON); + setToolTipText(Messages.GraphicalDebuggerView_IncreaseTT); setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD)); setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED)); }