1 package com.opensymphony.workflow.designer.actions; 2 3 import java.awt.*; 4 import java.awt.event.ActionEvent ; 5 import javax.swing.*; 6 7 import com.opensymphony.workflow.designer.ResourceManager; 8 import com.opensymphony.workflow.designer.WorkflowGraphModel; 9 import com.opensymphony.workflow.loader.WorkflowDescriptor; 10 11 16 public class CreateStep extends AbstractAction 17 { 18 private WorkflowDescriptor workflow; 19 private WorkflowGraphModel model; 20 private Point location; 21 22 public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) 23 { 24 super(ResourceManager.getString("step")); 25 this.workflow = workflow; 26 this.model = model; 27 this.location = location; 28 } 29 30 public void actionPerformed(ActionEvent e) 31 { 32 CellFactory.createStep(workflow, model, location); 33 } 34 } 35 | Popular Tags |