public class GraphDebuggerView extends ViewPart {
- public static final String VIEW_ID = "org.simantics.debug.graphDebugger";
+ public static final String VIEW_ID = "org.simantics.debug.graphDebugger"; //$NON-NLS-1$
// private final boolean DEFAULT_RECYCLE_VIEW = true;
@Override
public void createPartControl(Composite parent) {
// System.out.println("koss: " + getViewSite().getSecondaryId());
- 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"));
- setToolTipText("Refresh");
+ super(Messages.GraphDebuggerView_Refresh, BundleUtils.getImageDescriptorFromPlugin(SimanticsUI.PLUGIN_ID, "icons/refresh.gif")); //$NON-NLS-2$
+ setToolTipText(Messages.GraphDebuggerView_Refresh);
}
@Override
public void run() {
class BackAction extends Action {
public BackAction() {
- super("Back", Action.AS_PUSH_BUTTON);
- setToolTipText("Back");
+ super(Messages.GraphDebuggerView_Back, Action.AS_PUSH_BUTTON);
+ setToolTipText(Messages.GraphDebuggerView_BackTT);
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);
- setToolTipText("Forward");
+ super(Messages.GraphDebuggerView_Forward, Action.AS_PUSH_BUTTON);
+ setToolTipText(Messages.GraphDebuggerView_ForwardTT);
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.GraphDebuggerView_Home, Action.AS_PUSH_BUTTON);
+ setToolTipText(Messages.GraphDebuggerView_HomeTT);
setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV));
setDisabledImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_ETOOL_HOME_NAV_DISABLED));
}
class FindAction extends Action {
public FindAction() {
- super("Find", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png"));
- setToolTipText("Find Resource");
+ super(Messages.GraphDebuggerView_Find, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_blue.png")); //$NON-NLS-2$
+ setToolTipText(Messages.GraphDebuggerView_FindTT);
}
@Override
public void run() {
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.GraphDebuggerView_AddStatement, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+ setToolTipText(Messages.GraphDebuggerView_AddStatementTT);
}
@Override
public void run() {
class AddResourceAction extends Action {
public AddResourceAction() {
- super("AddResource", BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png"));
- setToolTipText("Add New Related Resource");
+ super(Messages.GraphDebuggerView_AddResource, BundleUtils.getImageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/cog_add.png")); //$NON-NLS-2$
+ setToolTipText(Messages.GraphDebuggerView_AddResourceTT);
}
@Override
public void run() {