}
@Override
protected IAction[] generateActions() {
IAction clearAction =
new AbstractAction("expoverview.clear", "Clear", "Clears table",
"Clears table with simulation run information.",
IconManager.getIcon(IconIdentifier.DELETE_SMALL, "Clear"),
new String[] { "" }, null, null, this) {
@Override
public void execute() {
synchronized (this) {
if (JOptionPane.showConfirmDialog(null, "Clear execution list?",
"Do you really want to clear the list of simulation runs?",
JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
simRunTableModel.clear();
}
expDurationLabel.setText("");
}
}
};
IAction exportAction =
new AbstractAction("expoverview.export", "Export", "Exports table",
"Exports table with simulation run information to text file.",
IconManager.getIcon(IconIdentifier.COPY_SMALL, null),
new String[] { "" }, null, null, this) {
@Override
public void execute() {
synchronized (this) {
export();
}
}
};
IAction runExpAct =
new ActionIAction(runExpAction, "expoverview.runexpaction",
new String[] { "" }, this);
IAction stopSimAct =
new ActionIAction(stopSimAction, "expoverview.stopsimaction",
new String[] { "" }, this);
IAction runSimAct =
new ActionIAction(runSimAction, "expoverview.runsimaction",
new String[] { "" }, this);
IAction nextStepSimAct =
new ActionIAction(nextStepSimAction, "expoverview.nextstepsimaction",
new String[] { "" }, this);
IAction nStepsSimAct =
new ActionIAction(nStepsSimAction, "expoverview.nstepssimaction",
new String[] { "" }, this);
IAction sliderAction =
new ActionIAction(sliderSimAction, "expoverview.slideraction",
new String[] { "" }, this);
IAction strucViewAction =
new ActionIAction(strucModelViewAction, "expoverview.strucviewaction",
new String[] { "" }, this);
return new IAction[] { clearAction, exportAction,
SeparatorAction.getSeparatorFor("", this), runExpAct,