Example usage for org.eclipse.jface.action LegacyActionTools MNEMONIC_NONE

List of usage examples for org.eclipse.jface.action LegacyActionTools MNEMONIC_NONE

Introduction

In this page you can find the example usage for org.eclipse.jface.action LegacyActionTools MNEMONIC_NONE.

Prototype

char MNEMONIC_NONE

To view the source code for org.eclipse.jface.action LegacyActionTools MNEMONIC_NONE.

Click Source Link

Document

The constant to use if there is no mnemonic for this location.

Usage

From source file:codemirror.eclipse.swt.search.FindReplaceDialog.java

License:Open Source License

/**
 * Stores the button and its mnemonic in {@link #fMnemonicButtonMap}.
 * //from   w w  w  .  j a  va  2s  .c om
 * @param button button whose mnemonic has to be stored
 * @since 3.7
 */
private void storeButtonWithMnemonicInMap(Button button) {
    char mnemonic = LegacyActionTools.extractMnemonic(button.getText());
    if (mnemonic != LegacyActionTools.MNEMONIC_NONE)
        fMnemonicButtonMap.put(new Character(Character.toLowerCase(mnemonic)), button);
}

From source file:org.eclipse.tracecompass.tmf.ui.views.timegraph.TimeGraphFindDialog.java

License:Open Source License

/**
 * Stores the button and its mnemonic in {@link #fMnemonicButtonMap}.
 *
 * @param button/*from w  ww. java  2 s  . c o m*/
 *            button whose mnemonic has to be stored
 */
private void storeButtonWithMnemonicInMap(Button button) {
    char mnemonic = LegacyActionTools.extractMnemonic(button.getText());
    if (mnemonic != LegacyActionTools.MNEMONIC_NONE) {
        fMnemonicButtonMap.put(new Character(Character.toLowerCase(mnemonic)), button);
    }
}