use of org.eclipse.draw2d.ToolbarLayout 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;
}
use of org.eclipse.draw2d.ToolbarLayout in project webtools.sourceediting by eclipse.
the class ColumnEditPart method createFigure.
protected IFigure createFigure() {
Figure figure = new Figure();
ToolbarLayout layout = new ToolbarLayout(isHorizontal);
if (minorAlignment != -1) {
layout.setMinorAlignment(minorAlignment);
}
layout.setStretchMinorAxis(false);
layout.setSpacing(spacing);
figure.setLayoutManager(layout);
return figure;
}
use of org.eclipse.draw2d.ToolbarLayout in project webtools.sourceediting by eclipse.
the class ADTFloatingToolbarEditPart method createFigure.
protected IFigure createFigure() {
Figure figure = new Figure();
ToolbarLayout tb = new ToolbarLayout(true);
tb.setStretchMinorAxis(false);
tb.setSpacing(3);
figure.setLayoutManager(tb);
backToSchema = new ADTToolbarButton(XSDEditorPlugin.getPlugin().getIcon("elcl16/schemaview_co.gif"));
backToSchema.setToolTipText(Messages._UI_HOVER_BACK_TO_SCHEMA);
backToSchema.setBackgroundColor(ColorConstants.white);
backToSchema.setFocusTraversable(true);
figure.add(backToSchema);
figure.setBounds(new Rectangle(0, 0, 24, 24));
addToToolbar(figure);
return figure;
}
use of org.eclipse.draw2d.ToolbarLayout 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;
}
use of org.eclipse.draw2d.ToolbarLayout in project jbosstools-hibernate by jbosstools.
the class NodeHeaderFigure method addEmbeddedParent.
private void addEmbeddedParent(String nodeName, String nodeType, String iconDescriptor, boolean hideName) {
embeddedFigure = new Figure();
ToolbarLayout layout = new ToolbarLayout(true);
layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
embeddedFigure.setLayoutManager(layout);
addIconLabel(iconDescriptor);
addTypeAndNameColumn(nodeType, nodeName, hideName);
add(embeddedFigure);
}
Aggregations