Search in sources :

Example 1 with StructureFigure

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

the class XSDSimpleTypeEditPart method createFigure.

protected IFigure createFigure() {
    figure = new StructureFigure();
    figure.setBorder(new RoundedLineBorder(1, 10));
    ToolbarLayout toolbarLayout = new ToolbarLayout();
    toolbarLayout.setStretchMinorAxis(true);
    figure.setLayoutManager(toolbarLayout);
    return figure;
}
Also used : ToolbarLayout(org.eclipse.draw2d.ToolbarLayout) RoundedLineBorder(org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.figures.RoundedLineBorder) IStructureFigure(org.eclipse.wst.xsd.ui.internal.adt.design.figures.IStructureFigure) StructureFigure(org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.figures.StructureFigure)

Aggregations

ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)1 IStructureFigure (org.eclipse.wst.xsd.ui.internal.adt.design.figures.IStructureFigure)1 RoundedLineBorder (org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.figures.RoundedLineBorder)1 StructureFigure (org.eclipse.wst.xsd.ui.internal.adt.typeviz.design.figures.StructureFigure)1