📄 luablankparse.java
字号:
/**
*
*/
package flow.graph.gui.graph.lua.code;
import org.jgraph.graph.DefaultGraphCell;
import flow.graph.gui.graph.FlowGraphConstants;
import flow.graph.gui.graph.lua.xml.ActionTemplate;
import flow.graph.gui.graph.lua.xml.InputParameter;
import flow.graph.gui.graph.lua.xml.InputParameters;
import flow.graph.gui.graph.lua.xml.Parameter;
import flow.graph.gui.graph.lua.xml.Parameters;
/**
* @author Administrator
*
*/
public class LuaBlankParse {
private String defineCode = "";
private String executeCode = "";
private String discriptionCode = "";
public LuaBlankParse(DefaultGraphCell cell){
String cellid = "";
if(cell != null){
//设置cell名称到说明部分
discriptionCode += "-----------------------------------------------------\n";
discriptionCode += "-- "+cell.toString()+" 嵌入代码\n";
discriptionCode += "-----------------------------------------------------\n";
if(FlowGraphConstants.getActionTemplate(cell.getAttributes()) != null){
ActionTemplate action = (ActionTemplate)FlowGraphConstants.getActionTemplate(cell.getAttributes());
executeCode += action.getAction();
}
executeCode += "\n";
}
}
public String getDefineCode(){
return defineCode;
}
public String getExecuteCode(){
return executeCode;
}
public String getDiscriptionCode(){
return discriptionCode;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -