Search in sources :

Example 1 with IfTemplate

use of org.whole.lang.semantics.model.IfTemplate in project whole by wholeplatform.

the class IfTemplateRowPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    IfTemplate entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getExpression());
    list.add(entity.getCondition());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) IfTemplate(org.whole.lang.semantics.model.IfTemplate)

Example 2 with IfTemplate

use of org.whole.lang.semantics.model.IfTemplate in project whole by wholeplatform.

the class IfTemplatePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    IfTemplate entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getExpression());
    list.add(entity.getCondition());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) IfTemplate(org.whole.lang.semantics.model.IfTemplate)

Example 3 with IfTemplate

use of org.whole.lang.semantics.model.IfTemplate in project whole by wholeplatform.

the class IfTemplatePart method refreshVisuals.

@Override
protected void refreshVisuals() {
    IfTemplate entity = getModelEntity();
    GuardedTemplateFigure f = (GuardedTemplateFigure) getFigure();
    f.showAsStageDown(SemanticsUtils.inStageDownContext(entity));
}
Also used : GuardedTemplateFigure(org.whole.lang.semantics.ui.figures.GuardedTemplateFigure) IfTemplate(org.whole.lang.semantics.model.IfTemplate)

Aggregations

IfTemplate (org.whole.lang.semantics.model.IfTemplate)3 ArrayList (java.util.ArrayList)2 IEntity (org.whole.lang.model.IEntity)2 GuardedTemplateFigure (org.whole.lang.semantics.ui.figures.GuardedTemplateFigure)1