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.common.uri.ResourceToPossibleURI;
public class VariableDebuggerView extends ViewPart {
- public static final String VIEW_ID = "org.simantics.debug.variableDebugger";
+ public static final String VIEW_ID = "org.simantics.debug.variableDebugger"; //$NON-NLS-1$
private ResourceInput input;
@Override
public void createPartControl(Composite parent) {
- session = SimanticsUI.getSession();
+ session = Simantics.getSession();
// Initialize input
String sid = getViewSite().getSecondaryId();
//
class RefreshAction extends Action {
public RefreshAction() {
- super("Refresh", BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif"));
+ super(Messages.VariableDebuggerView_Refresh, BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); //$NON-NLS-2$
}
@Override
public void run() {
class BackAction extends Action {
public BackAction() {
- super("Back", Action.AS_PUSH_BUTTON);
+ super(Messages.VariableDebuggerView_Back, Action.AS_PUSH_BUTTON);
setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK));
setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_BACK_DISABLED));
}
class ForwardAction extends Action {
public ForwardAction() {
- super("Forward", Action.AS_PUSH_BUTTON);
+ super(Messages.VariableDebuggerView_Forward, Action.AS_PUSH_BUTTON);
setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD_DISABLED));
}
class HomeAction extends Action {
public HomeAction() {
- super("Home", Action.AS_PUSH_BUTTON);
- setToolTipText("Navigate to root library");
+ super(Messages.VariableDebuggerView_Home, Action.AS_PUSH_BUTTON);
+ setToolTipText(Messages.VariableDebuggerView_HomeTT);
setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV));
setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV_DISABLED));
}