use of org.whole.lang.ui.editparts.AbstractCompositePart in project whole by wholeplatform.
the class WorkflowsDiagramPartFactoryVisitor method visit.
public void visit(FlowObjects entity) {
if (context instanceof ParallelPart)
part = new AbstractCompositePart() {
protected IFigure createFigure() {
CompositeFigure f = new CompositeFigure(true);
f.getLayoutManager().withMinorAlignment(Alignment.LEADING);
return f;
}
};
else
part = new AbstractCompositePart() {
protected IFigure createFigure() {
CompositeFigure f = new CompositeFigure(false);
f.getLayoutManager().withSpacing(7).withMinorAlignment(Alignment.CENTER);
return f;
}
};
}
Aggregations