01: package com.opensymphony.workflow.designer.actions;
02:
03: import java.awt.*;
04: import java.awt.event.ActionEvent;
05: import javax.swing.*;
06:
07: import com.opensymphony.workflow.designer.ResourceManager;
08: import com.opensymphony.workflow.designer.WorkflowGraphModel;
09: import com.opensymphony.workflow.loader.WorkflowDescriptor;
10:
11: /**
12: * User: Hani Suleiman
13: * Date: Oct 24, 2003
14: * Time: 2:29:02 PM
15: */
16: public class CreateStep extends AbstractAction {
17: private WorkflowDescriptor workflow;
18: private WorkflowGraphModel model;
19: private Point location;
20:
21: public CreateStep(WorkflowDescriptor workflow,
22: WorkflowGraphModel model, Point location) {
23: super (ResourceManager.getString("step"));
24: this .workflow = workflow;
25: this .model = model;
26: this .location = location;
27: }
28:
29: public void actionPerformed(ActionEvent e) {
30: CellFactory.createStep(workflow, model, location);
31: }
32: }
|