use of org.eclipse.gef.ui.palette.editparts.PaletteToolbarLayout in project tdi-studio-se by Talend.
the class TalendSliderPaletteEditPart method registerVisuals.
/**
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#registerVisuals()
*/
@Override
protected void registerVisuals() {
super.registerVisuals();
controller = new PaletteAnimator(((PaletteViewer) getViewer()).getPaletteViewerPreferences());
getViewer().getEditPartRegistry().put(PaletteAnimator.class, controller);
ToolbarLayout layout = new PaletteToolbarLayout();
getFigure().setLayoutManager(layout);
getFigure().addLayoutListener(controller);
}
Aggregations