Search in sources :

Example 1 with XsiCompositeElementNodeFigure

use of org.whole.lang.xsi.ui.figures.XsiCompositeElementNodeFigure in project whole by wholeplatform.

the class XsiCompositeElementPart method createFigure.

@Override
protected IFigure createFigure() {
    boolean startOpened = !getContents().isEmpty();
    IEntityFigure figure = new XsiCompositeElementNodeFigure(startOpened, createLabel());
    if (isRoot)
        figure.setBorder(new MarginBorder(4, 8, 2, 4));
    return figure;
}
Also used : IEntityFigure(org.whole.lang.ui.figures.IEntityFigure) XsiCompositeElementNodeFigure(org.whole.lang.xsi.ui.figures.XsiCompositeElementNodeFigure) MarginBorder(org.eclipse.draw2d.MarginBorder)

Aggregations

MarginBorder (org.eclipse.draw2d.MarginBorder)1 IEntityFigure (org.whole.lang.ui.figures.IEntityFigure)1 XsiCompositeElementNodeFigure (org.whole.lang.xsi.ui.figures.XsiCompositeElementNodeFigure)1