use of org.eclipse.gef.internal.ui.palette.editparts.ColumnsLayout in project tdi-studio-se by Talend.
the class TalendDrawerFigure method setLayoutMode.
@Override
public void setLayoutMode(int layoutMode) {
if (this.talendLayoutMode == layoutMode) {
return;
}
this.talendLayoutMode = layoutMode;
LayoutManager manager;
if (layoutMode == PaletteViewerPreferences.LAYOUT_COLUMNS) {
manager = new ColumnsLayout();
getContentPane().setBorder(customizedCSSStyleSetting.getScrollPaneBorder());
} else if (layoutMode == PaletteViewerPreferences.LAYOUT_ICONS) {
PaletteContainerFlowLayout fl = new PaletteContainerFlowLayout();
fl.setMinorSpacing(0);
fl.setMajorSpacing(0);
manager = fl;
getContentPane().setBorder(customizedCSSStyleSetting.getScrollPaneBorder());
} else {
manager = new ToolbarLayout();
getContentPane().setBorder(customizedCSSStyleSetting.getScrollPaneListBorder());
}
getContentPane().setLayoutManager(manager);
}
Aggregations