use of org.whole.lang.environment.model.Value 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.environment.model.Value in project whole by wholeplatform.
the class BindingPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Binding binding = getModelEntity();
Value valueEntity = binding.getValue();
IEntity value = Matcher.matchImpl(EnvironmentEntityDescriptorEnum.Value, valueEntity) ? valueEntity.getValue() : valueEntity.wGetAdaptee(true);
List<IEntity> children = new ArrayList<IEntity>(4);
children.add(EnvironmentEntityFactory.instance.createId(Integer.toHexString(System.identityHashCode(value))));
children.add(ModelsEntityFactory.instance.createEntityType(value.wGetEntityDescriptor().getURI()));
children.add(binding.getName());
children.add(value);
return children;
}
Aggregations