Search in sources :

Example 1 with NewConditionNodeOp

use of com.liferay.ide.kaleo.core.op.NewConditionNodeOp in project liferay-ide by liferay.

the class ConditionNodeAddActionHandler method createOp.

@Override
protected NewNodeOp createOp(Presentation context) {
    NewConditionNodeOp op = NewConditionNodeOp.TYPE.instantiate();
    op.getNewConditionNode().setScriptLanguage(KaleoModelUtil.getDefaultValue(context.part().getLocalModelElement(), KaleoCore.DEFAULT_SCRIPT_LANGUAGE_KEY, ScriptLanguageType.GROOVY));
    return op;
}
Also used : NewConditionNodeOp(com.liferay.ide.kaleo.core.op.NewConditionNodeOp)

Aggregations

NewConditionNodeOp (com.liferay.ide.kaleo.core.op.NewConditionNodeOp)1