Search in sources :

Example 1 with RuleName

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

the class RuleNamePart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    RuleName entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(3);
    list.add(entity.getName());
    list.add(entity.getSub());
    list.add(entity.getSup());
    return list;
}
Also used : IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList) RuleName(org.whole.lang.semantics.model.RuleName)

Example 2 with RuleName

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

the class RuleNamePart method refreshVisuals.

@Override
protected void refreshVisuals() {
    RuleName entity = getModelEntity();
    getFigure().showSub(!EntityUtils.isResolver(entity.getSub()));
    getFigure().showSup(!EntityUtils.isResolver(entity.getSup()));
}
Also used : RuleName(org.whole.lang.semantics.model.RuleName)

Aggregations

RuleName (org.whole.lang.semantics.model.RuleName)2 ArrayList (java.util.ArrayList)1 IEntity (org.whole.lang.model.IEntity)1