Example usage for org.eclipse.jface.action MenuManager MANAGER_KEY

List of usage examples for org.eclipse.jface.action MenuManager MANAGER_KEY

Introduction

In this page you can find the example usage for org.eclipse.jface.action MenuManager MANAGER_KEY.

Prototype

String MANAGER_KEY

To view the source code for org.eclipse.jface.action MenuManager MANAGER_KEY.

Click Source Link

Document

The key under which the MenuManager is added to the data properties of the Menu created by the manager.

Usage

From source file:org.jboss.tools.windup.ui.internal.services.CreateMigrationIssueService.java

License:Open Source License

private MenuManager getMenuManager(ITextEditor editor) {
    Control control = editor.getAdapter(Control.class);
    if (control != null && !control.isDisposed()) {
        Menu menu = control.getMenu();
        if (menu != null && !menu.isDisposed()) {
            return (MenuManager) menu.getData(MenuManager.MANAGER_KEY);
        }//from   w ww . j  ava2 s .  c  o  m
    }
    return null;
}