Search in sources :

Example 1 with ICompartmentFigure

use of org.eclipse.wst.xsd.ui.internal.adt.design.figures.ICompartmentFigure in project webtools.sourceediting by eclipse.

the class TypeVizFigureFactory method createCompartmentFigure.

public ICompartmentFigure createCompartmentFigure(Object model) {
    CompartmentFigure figure = new CompartmentFigure();
    figure.setBorder(new MarginBorder(1));
    ToolbarLayout toolbarLayout = new ToolbarLayout(false);
    toolbarLayout.setStretchMinorAxis(true);
    figure.setLayoutManager(toolbarLayout);
    return figure;
}
Also used : ToolbarLayout(org.eclipse.draw2d.ToolbarLayout) MarginBorder(org.eclipse.draw2d.MarginBorder) ICompartmentFigure(org.eclipse.wst.xsd.ui.internal.adt.design.figures.ICompartmentFigure)

Aggregations

MarginBorder (org.eclipse.draw2d.MarginBorder)1 ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)1 ICompartmentFigure (org.eclipse.wst.xsd.ui.internal.adt.design.figures.ICompartmentFigure)1