1 package com.opensymphony.workflow.designer.editor; 2 3 import com.opensymphony.workflow.designer.ResultEdge; 4 import com.opensymphony.workflow.designer.ResourceManager; 5 import com.opensymphony.workflow.designer.dialogs.DialogUtils; 6 import com.opensymphony.workflow.loader.AbstractDescriptor; 7 import com.opensymphony.workflow.loader.ConfigFunctionDescriptor; 8 9 12 public class ResultFunctionEditor extends FunctionEditor 13 { 14 15 protected ResultEdge edge; 16 17 public ResultFunctionEditor(ResultEdge cell) 18 { 19 super(null); 20 edge = cell; 21 } 22 23 protected AbstractDescriptor getParent() 24 { 25 return edge.getDescriptor(); 26 } 27 28 protected ConfigFunctionDescriptor getFunction() 29 { 30 ConfigFunctionDescriptor template = (ConfigFunctionDescriptor)DialogUtils.getUserSelection(getModel().getPalette().getPreFunctions(), 31 ResourceManager.getString("function.select.pre"), 32 ResourceManager.getString("function.select"), null); 33 if(template!=null) 34 return new ConfigFunctionDescriptor(template); 35 return null; 36 } 37 } 38 | Popular Tags |