Package org.eclipse.gef.ui.palette

Examples of org.eclipse.gef.ui.palette.PaletteContextMenuProvider


   *
   * @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)
View Full Code Here

TOP

Related Classes of org.eclipse.gef.ui.palette.PaletteContextMenuProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.