use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class BindingPart method refreshVisuals.
protected void refreshVisuals() {
Binding binding = getModelEntity();
Value valueEntity = binding.getValue();
IEntity value = Matcher.matchImpl(EnvironmentEntityDescriptorEnum.Value, valueEntity) ? valueEntity.getValue() : valueEntity.wGetAdaptee(true);
BidingFigure fig = (BidingFigure) getFigure();
if (fig.getFoldingToggle(0).getModel().isSelected() == isShowValue(value))
fig.clickFoldingToggle(0);
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class VariablesViewModelPart method getModelSpecificChildren.
@Override
protected List<IEntity> getModelSpecificChildren() {
VariablesViewModel entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(1);
list.add(entity.getEnvironments());
return list;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class AbstractPhasedFragmentPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
IEntity entity = getModelEntity();
List<IEntity> children = new ArrayList<IEntity>(2);
children.add(entity.wGet(CommonsFeatureDescriptorEnum.rootEntity));
children.add(entity.wGet(CommonsFeatureDescriptorEnum.phase));
return children;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class AbstractPhasedFragmentPart method refreshVisuals.
protected void refreshVisuals() {
IEntity entity = getModelEntity();
getFigure().showPhase(!EntityUtils.isResolver(entity.wGet(CommonsFeatureDescriptorEnum.phase)));
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class VariablePart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Variable entity = getModelEntity();
List<IEntity> children = new ArrayList<IEntity>(3);
children.add(entity.getVarType());
children.add(entity.getVarName());
children.add(entity.getQuantifier());
return children;
}
Aggregations