use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class ReplacePart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Replace entity = getModelEntity();
List<IEntity> children = new ArrayList<IEntity>(2);
children.add(entity.getDeleteContent());
children.add(entity.getInsertContent());
return children;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class RevisionPart method refreshVisuals.
@Override
protected void refreshVisuals() {
int index = 0, additions = 0, deletions = 0;
Revision entity = getModelEntity();
if (EntityUtils.hasParent(entity))
index = entity.wGetParent().wIndexOf(entity);
try {
IBindingManager bm = BindingManagerFactory.instance.createArguments();
IEntity result = BehaviorUtils.apply("whole:org.whole.lang.changes:RevisionsLibrarySemantics#revisionSummary", entity, bm);
additions = result.wGet(0).wIntValue();
deletions = result.wGet(1).wIntValue();
} catch (Exception e) {
}
getFigure().updateData(index, additions, deletions);
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class RevisionPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Revision entity = getModelEntity();
List<IEntity> children = new ArrayList<IEntity>(1);
children.add(entity.getRevisor());
return children;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class EditorPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Editor entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(5);
list.add(entity.getEditorName());
list.add(entity.getSuperEditorName());
list.add(entity.getModelComponent());
list.add(entity.getViewComponent());
list.add(entity.getControllerComponent());
return list;
}
use of org.whole.lang.model.IEntity in project whole by wholeplatform.
the class NotPart method getModelSpecificChildren.
protected List<IEntity> getModelSpecificChildren() {
Not entity = getModelEntity();
List<IEntity> list = new ArrayList<IEntity>(1);
list.add(entity.getPredicate());
return list;
}
Aggregations