actions.add(new SeparatorAction("org.jamesii.toolbar.edit",
new String[] { "org.jamesii.toolbar.main?after=org.jamesii.save" },
null));
actions.add(new ActionIAction(new UndoAction(windowManager),
"org.jamesii.undo", new String[] {
"org.jamesii.toolbar.main?after=org.jamesii.toolbar.edit",
"org.jamesii.menu.main/org.jamesii.edit?first" }, null));
actions.add(new ActionIAction(new RedoAction(windowManager),
"org.jamesii.redo", new String[] {
"org.jamesii.toolbar.main?after=org.jamesii.undo",
"org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.undo" },
null));
actions.add(new SeparatorAction("org.jamesii.toolbar.additionals",
new String[] { "org.jamesii.toolbar.main?after=org.jamesii.redo" },
null));
actions
.add(new SeparatorAction(
"org.jamesii.edit.additionals",
new String[] { "org.jamesii.menu.main/org.jamesii.edit?after=org.jamesii.redo" },
null));
actions.add(new ActionSet("org.jamesii.help", "Help",
"org.jamesii.menu.main?last", null));
actions.add(new AbstractAction("org.jamesii.showSystemInfo",
"Show System Information",
new String[] { "org.jamesii.menu.main/org.jamesii.help?first" }, null) {
@Override
public void execute() {
BasicUtilities.invokeLaterOnEDT(new Runnable() {
@Override
public void run() {
JavaInfo info = new JavaInfo();
windowManager.addWindow(new SystemInfoView(info, "this system",
Contribution.DIALOG));
}
});
}
});
actions
.add(new AbstractAction(
"org.jamesii.showPlugInInfo",
"Inspect PlugIns",
new String[] { "org.jamesii.menu.main/org.jamesii.help?after=org.jamesii.showSystemInfo" },
null) {
@Override
public void execute() {
BasicUtilities.invokeLaterOnEDT(new Runnable() {
@Override
public void run() {
windowManager.addWindow(new PlugInView(Contribution.DIALOG));
}
});
}
});
actions
.add(new AbstractAction(
"org.jamesii.showLogView",
"Show Log View",
new String[] { "org.jamesii.menu.main/org.jamesii.help?after=org.jamesii.showPlugInInfo" },
null) {
@Override
public void execute() {
BasicUtilities.invokeLaterOnEDT(new Runnable() {
@Override
public void run() {
windowManager.addWindow(LogView.getInstance());
}
});
}
});
actions.add(new ActionIAction(new HelpAction(), "help",
new String[] { "org.jamesii.menu.main/org.jamesii.help" }, null));
actions
.add(new AbstractAction(
"org.jamesii.showBackgroundTaskManager",