Search in sources :

Example 1 with PaletteToolbarLayout

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);
}
Also used : ToolbarLayout(org.eclipse.draw2d.ToolbarLayout) PaletteToolbarLayout(org.eclipse.gef.ui.palette.editparts.PaletteToolbarLayout) PaletteViewer(org.eclipse.gef.ui.palette.PaletteViewer) PaletteAnimator(org.eclipse.gef.ui.palette.editparts.PaletteAnimator) PaletteToolbarLayout(org.eclipse.gef.ui.palette.editparts.PaletteToolbarLayout)

Aggregations

ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)1 PaletteViewer (org.eclipse.gef.ui.palette.PaletteViewer)1 PaletteAnimator (org.eclipse.gef.ui.palette.editparts.PaletteAnimator)1 PaletteToolbarLayout (org.eclipse.gef.ui.palette.editparts.PaletteToolbarLayout)1