use of org.eclipse.wst.xsd.ui.internal.adt.outline.ITreeElement in project webtools.sourceediting by eclipse.
the class TypeVizFigureFactory method createStructureFigure.
public IStructureFigure createStructureFigure(Object model) {
StructureFigure figure = new StructureFigure();
figure.setBorder(new LineBorder(1));
ToolbarLayout toolbarLayout = new ToolbarLayout();
toolbarLayout.setStretchMinorAxis(true);
figure.setLayoutManager(toolbarLayout);
if (model instanceof ITreeElement) {
figure.getNameLabel().setIcon(((ITreeElement) model).getImage());
}
// we should organize ITreeElement and integrate it with the facade
return figure;
}
Aggregations