*
* @see org.eclipse.gef.ui.palette.PaletteViewerProvider#configurePaletteViewer(org.eclipse.gef.ui.palette.PaletteViewer)
*/
protected void configurePaletteViewer(PaletteViewer viewer) {
// super.configurePaletteViewer(viewer);
viewer.setContextMenu(new PaletteContextMenuProvider(viewer) {
public void buildContextMenu(IMenuManager menu) {
StructuredSelection sel = (StructuredSelection)getViewer().getSelection();
if (sel != null
&& sel.getFirstElement() instanceof DrawerEditPart
&& ((DrawerEditPart)sel.getFirstElement()).getDrawer() instanceof TaglibPaletteDrawer)