?? triggerfunctioneditor.java
字號:
package com.opensymphony.workflow.designer.editor;
import com.opensymphony.workflow.designer.ResourceManager;
import com.opensymphony.workflow.designer.WorkflowDesigner;
import com.opensymphony.workflow.designer.dialogs.DialogUtils;
import com.opensymphony.workflow.loader.AbstractDescriptor;
import com.opensymphony.workflow.loader.WorkflowDescriptor;
import com.opensymphony.workflow.loader.ConfigFunctionDescriptor;
/**
* @author Andrea Capitani (a.capitani@leonardomultimedia.it)
* Date: Nov 22, 2004
* Time: 12:54:16 AM
*/
public class TriggerFunctionEditor extends FunctionEditor
{
public TriggerFunctionEditor(WorkflowDescriptor desc)
{
super(desc);
}
protected AbstractDescriptor getParent()
{
// return the WorkflowDescriptor
return getDescriptor();
}
protected ConfigFunctionDescriptor getFunction()
{
ConfigFunctionDescriptor template = (ConfigFunctionDescriptor)DialogUtils.getUserSelection(getModel().getPalette().getTriggerFunctions(),
ResourceManager.getString("function.select.trigger"),
ResourceManager.getString("function.select"),
WorkflowDesigner.INSTANCE);
if(template!=null)
return new ConfigFunctionDescriptor(template);
return null;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -