Example usage for org.eclipse.jface.dialogs PopupDialog POPUP_IMG_MENU_DISABLED

List of usage examples for org.eclipse.jface.dialogs PopupDialog POPUP_IMG_MENU_DISABLED

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs PopupDialog POPUP_IMG_MENU_DISABLED.

Prototype

String POPUP_IMG_MENU_DISABLED

To view the source code for org.eclipse.jface.dialogs PopupDialog POPUP_IMG_MENU_DISABLED.

Click Source Link

Document

Image registry key for disabled menu image.

Usage

From source file:com.xored.glance.ui.panels.SearchPanel.java

License:Open Source License

protected ToolItem createSettingsMenu(final ToolBar bar) {
    final ToolItem settings = new ToolItem(bar, SWT.PUSH);
    settings.setImage(JFaceResources.getImage(PopupDialog.POPUP_IMG_MENU));
    settings.setDisabledImage(JFaceResources.getImage(PopupDialog.POPUP_IMG_MENU_DISABLED));
    settings.setToolTipText("Settings"); //$NON-NLS-1$
    settings.addSelectionListener(new SelectionAdapter() {
        @Override/* w  w  w  .  j  a v  a 2  s . com*/
        public void selected(final SelectionEvent e) {
            showSettings();
        }
    });
    return settings;
}