Examples of createContextMenu()


Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

    if (focus == null || focus.isDisposed())
      return;
   
    MenuManager menu= new MenuManager();
    fillMenu(menu);
    final Menu widget= menu.createContextMenu(focus.getShell());
    Point location= computeMenuLocation(focus, widget);
    if (location == null)
      return;
    widget.setLocation(location);
    widget.setVisible(true);
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

            public void menuAboutToShow(IMenuManager manager) {
                manager.add(_startWGARuntime);
                manager.add(_stopWGARuntime);
            }
        });
        Menu menu = menuMgr.createContextMenu(_table.getControl());
        _table.getControl().setMenu(menu);
        getSite().registerContextMenu(menuMgr, _table);
    }
   
    private void hookDoubleClickAction() {
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void run() {
        onNewFolder();
      }
    });

    Menu menu = menuManager.createContextMenu(fFolderViewer.getTree());
    fFolderViewer.getTree().setMenu(menu);

    /* Register Model Listeners */
    registerListeners();
  }
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

        trayMenu.add(new Separator());

        /* Other Items */
        fActionBarAdvisor.fillTrayItem(trayMenu);

        Menu menu = trayMenu.createContextMenu(shell);
        menu.setVisible(true);
      }
    });

    /* Handle DefaultSelection */
 
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

          }
        });
      }
    });

    Menu menu = manager.createContextMenu(fBrowser);
    fBrowser.setMenu(menu);
  }

  /**
   * Returns the Browser-Widget this class is wrapping.
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

        MediaViewPart.this.fillContextMenu(manager);
      }
    });

    if (lControl != null && lProvider != null) {
      Menu menu = menuMgr.createContextMenu(lControl);
      lControl.setMenu(menu);
      // Register to the workbench.
      getSite().registerContextMenu(menuMgr, lProvider);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

          }
        });
      }
    });

    Menu menu = manager.createContextMenu(fBrowser);
    fBrowser.setMenu(menu);
  }

  /**
   * Returns the Browser-Widget this class is wrapping.
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

      public void run() {
        onNewFolder();
      }
    });

    Menu menu = menuManager.createContextMenu(fFolderViewer.getTree());
    fFolderViewer.getTree().setMenu(menu);

    /* Register Model Listeners */
    registerListeners();
  }
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

          @Override
          public Menu createMenu(Control parent) {
            MenuManager manager = new MenuManager();
            IStructuredSelection activeFeedViewSelection = OwlUI.getActiveFeedViewSelection();
            ApplicationActionBarAdvisor.fillLabelMenu(manager, activeFeedViewSelection, fWindow, true);
            return manager.createContextMenu(parent);
          }
        };

        /* Move */
      case MOVE:
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.createContextMenu()

          @Override
          public Menu createMenu(Control parent) {
            MenuManager manager = new MenuManager();
            IStructuredSelection activeFeedViewSelection = OwlUI.getActiveFeedViewSelection();
            ApplicationActionBarAdvisor.fillShareMenu(manager, activeFeedViewSelection, fWindow, true);
            return manager.createContextMenu(parent);
          }
        };

        /* Bookmarks */
      case BOOKMARKS:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.