📄 stepfunctioneditor.java
字号:
package com.opensymphony.workflow.designer.editor;import com.opensymphony.workflow.designer.StepCell;import com.opensymphony.workflow.designer.ResourceManager;import com.opensymphony.workflow.designer.dialogs.DialogUtils;import com.opensymphony.workflow.loader.AbstractDescriptor;import com.opensymphony.workflow.loader.ActionDescriptor;import com.opensymphony.workflow.loader.ConfigFunctionDescriptor;/** * @author baab */public class StepFunctionEditor extends FunctionEditor{ public StepFunctionEditor(StepCell cell) { super(cell); } private StepCell getCell() { return (StepCell)cell; } protected AbstractDescriptor getParent() { //todo need a check here for actions>0 or a more sensible way to get parent return (ActionDescriptor)getCell().getDescriptor().getActions().get(0); } protected ConfigFunctionDescriptor getFunction() { ConfigFunctionDescriptor template = (ConfigFunctionDescriptor)DialogUtils.getUserSelection(getModel().getPalette().getPreFunctions(), ResourceManager.getString("function.select.step"), ResourceManager.getString("function.select"), null); if(template!=null) return new ConfigFunctionDescriptor(template); return null; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -