new String[] { "" }, null, null, this) {
@Override
public void execute() {
synchronized (this) {
ISimulationServer simServer = (ISimulationServer) getServer();
ComputationTaskIDObject info =
(ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
try {
simServer.startSimulationRun(info);
} catch (RemoteException e) {
SimSystem.report(e);
}
}
}
};
action.setEnabled(getSelectedNodeInfo() != null);
actions.add(action);
action =
new AbstractAction("simulation.pause", "pause", pauseIcon,
new String[] { "" }, null, null, this) {
@Override
public void execute() {
synchronized (this) {
ISimulationServer simServer = (ISimulationServer) getServer();
ComputationTaskIDObject info =
(ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
try {
simServer.executeRunnableCommand(info, "pause", null);
} catch (RemoteException e) {
SimSystem.report(e);
}
}
}
};
action.setEnabled(getSelectedNodeInfo() != null);
actions.add(action);
action =
new AbstractAction("simulation.stop", "stop", stopIcon,
new String[] { "" }, null, null, this) {
@Override
public void execute() {
synchronized (this) {
ISimulationServer simServer = (ISimulationServer) getServer();
ComputationTaskIDObject info =
(ComputationTaskIDObject) getSelectedNodeInfo().getInfo();
try {
simServer.stopProc(info);
} catch (RemoteException e) {
SimSystem.report(e);
}
}
}