Search in sources :

Example 6 with PaletteViewer

use of org.eclipse.gef.ui.palette.PaletteViewer in project liferay-ide by liferay.

the class KaleoPaletteHelper method createPaletteViewerProvider.

protected PaletteViewerProvider createPaletteViewerProvider() {
    return new PaletteViewerProvider(getEditDomain()) {

        @Override
        protected void configurePaletteViewer(PaletteViewer viewer) {
            super.configurePaletteViewer(viewer);
            viewer.addDragSourceListener(new TemplateTransferDragSourceListener(viewer));
            viewer.addSelectionChangedListener(_getViewerSelectionChangedListener());
        }
    };
}
Also used : PaletteViewer(org.eclipse.gef.ui.palette.PaletteViewer) PaletteViewerProvider(org.eclipse.gef.ui.palette.PaletteViewerProvider) TemplateTransferDragSourceListener(org.eclipse.gef.dnd.TemplateTransferDragSourceListener)

Aggregations

PaletteViewer (org.eclipse.gef.ui.palette.PaletteViewer)6 TemplateTransferDragSourceListener (org.eclipse.gef.dnd.TemplateTransferDragSourceListener)4 PaletteViewerProvider (org.eclipse.gef.ui.palette.PaletteViewerProvider)3 FormatPainterToolEntry (com.archimatetool.editor.diagram.tools.FormatPainterToolEntry)1 ToolbarLayout (org.eclipse.draw2d.ToolbarLayout)1 Point (org.eclipse.draw2d.geometry.Point)1 RootEditPart (org.eclipse.gef.RootEditPart)1 ScalableFreeformRootEditPart (org.eclipse.gef.editparts.ScalableFreeformRootEditPart)1 PaletteListener (org.eclipse.gef.palette.PaletteListener)1 PaletteRoot (org.eclipse.gef.palette.PaletteRoot)1 ToolEntry (org.eclipse.gef.palette.ToolEntry)1 CreationFactory (org.eclipse.gef.requests.CreationFactory)1 PaletteViewerPreferences (org.eclipse.gef.ui.palette.PaletteViewerPreferences)1 PaletteAnimator (org.eclipse.gef.ui.palette.editparts.PaletteAnimator)1 PaletteToolbarLayout (org.eclipse.gef.ui.palette.editparts.PaletteToolbarLayout)1 MouseAdapter (org.eclipse.swt.events.MouseAdapter)1 MouseEvent (org.eclipse.swt.events.MouseEvent)1 MouseTrackAdapter (org.eclipse.swt.events.MouseTrackAdapter)1 TalendPaletteViewer (org.talend.designer.core.ui.editor.palette.TalendPaletteViewer)1