use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.
the class LiteralTerminalPart method setDetailed.
@Override
public void setDetailed(boolean value, IEntityPart childPart) {
if (isDetailed() == value)
return;
super.setDetailed(value, childPart);
IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
lm.setSpacedChild(value ? IEntityLayout.SPACED_ALL : IEntityLayout.SPACED_NONE);
new AnimableRunnable() {
public void doRun() {
getFigure().revalidate();
getFigure().repaint();
}
}.syncExec();
}
use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.
the class AbstractCompositePart method setDetailed.
@Override
public void setDetailed(boolean value, IEntityPart childPart) {
if (isDetailed() == value)
return;
super.setDetailed(value, childPart);
IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
int childIndex = getChildren().indexOf(childPart);
lm.setSpacedChild(value ? (childIndex != -1 ? childIndex : IEntityLayout.SPACED_ALL) : IEntityLayout.SPACED_NONE);
new AnimableRunnable() {
public void doRun() {
getFigure().revalidate();
getFigure().repaint();
}
}.syncExec();
}
Aggregations