this.jobManagers = jobManagers;
this.workflowBuilder = new WorkflowBuilderPanel(iconManager);
//menu:
FlexibleMenuBar menuBar = new FlexibleMenuBar();
menuBar.add("File");
JMenuItem mnuiSaveWorkflow = new JMenuItem("Save Workflow");
menuBar.add("File", mnuiSaveWorkflow);
InputFormFactory factory = new InputFormFactory(iconManager, new InputParameterWidgetFactory());
ShowInputFormAction showInputForm = new ShowInputFormAction(workflowBuilder, factory);
JMenuItem mnuiUseWorkflow = new JMenuItem(showInputForm);
mnuiUseWorkflow.setText("Use Workflow");
menuBar.add("File", mnuiUseWorkflow);
menuBar.addSeparator("File");
JMenuItem mnuiExit = new JMenuItem(new CloseFrameAction(this));
mnuiExit.setText("Exit");
menuBar.add("File", mnuiExit);
menuBar.add("Job Managers");
JMenu mnuManagersDisplay = new JMenu("Display");
JobManagerMenuItems items = new JobManagerMenuItems(jobManagers, workflowBuilder.taskSelectPanel);
items.addAll(mnuManagersDisplay);
List entries = jobManagers.getJobManagerEntries();
if (entries.size() > 0)
items.selectJobManager(((JobManagerEntry)entries.get(0)).getId());
menuBar.add("Job Managers", mnuManagersDisplay);
setJMenuBar(menuBar);
//content: