menuItem.addActionListener(new AbstractAction() {
private DynamicWorkflowRunnerWindow window;
public void actionPerformed(ActionEvent event) {
if (this.window == null) {
this.window = new DynamicWorkflowRunnerWindow(
WorkflowMenu.this.engine);
}
this.window.show();
}
});