Search in sources :

Example 1 with PaletteViewerProvider

use of org.eclipse.gef.ui.palette.PaletteViewerProvider in project cubrid-manager by CUBRID.

the class ReplicationEditor method createPaletteViewerProvider.

/**
	 * @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#createPaletteViewerProvider()
	 * @return the palette provider
	 */
protected PaletteViewerProvider createPaletteViewerProvider() {
    return new PaletteViewerProvider(getEditDomain()) {

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

Aggregations

TemplateTransferDragSourceListener (org.eclipse.gef.dnd.TemplateTransferDragSourceListener)1 PaletteViewer (org.eclipse.gef.ui.palette.PaletteViewer)1 PaletteViewerProvider (org.eclipse.gef.ui.palette.PaletteViewerProvider)1