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