| java.lang.Object org.eclipse.ui.keys.SWTKeySupport
SWTKeySupport | final public class SWTKeySupport (Code) | | A utility class for converting SWT events into key strokes.
since: 3.0 |
convertAcceleratorToKeyStroke | public static KeyStroke convertAcceleratorToKeyStroke(int accelerator)(Code) | | Given an SWT accelerator value, provide the corresponding key stroke.
Parameters: accelerator - The accelerator to convert; should be a valid SWT acceleratorvalue. The equivalent key stroke; never null . |
convertEventToModifiedAccelerator | public static int convertEventToModifiedAccelerator(Event event)(Code) | |
Converts the given event into an SWT accelerator value -- considering the
modified character with the shift modifier. This is the third accelerator
value that should be checked.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as
"Ctrl+Shift+%".
Parameters: event - The event to be converted; must not be null . The combination of the state mask and the unmodified character. |
convertEventToUnmodifiedAccelerator | public static int convertEventToUnmodifiedAccelerator(Event event)(Code) | |
Converts the given event into an SWT accelerator value -- considering the
unmodified character with all modifier keys. This is the first
accelerator value that should be checked. However, all alphabetic
characters are considered as their uppercase equivalents.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as
"Ctrl+Shift+5".
Parameters: event - The event to be converted; must not be null . The combination of the state mask and the unmodified character. |
convertEventToUnmodifiedAccelerator | public static int convertEventToUnmodifiedAccelerator(KeyEvent event)(Code) | |
Converts the given event into an SWT accelerator value -- considering the
unmodified character with all modifier keys. This is the first
accelerator value that should be checked. However, all alphabetic
characters are considered as their uppercase equivalents.
For example, on a standard US keyboard, "Ctrl+Shift+5" would be viewed as
"Ctrl+%".
Parameters: event - The event to be converted; must not be null . The combination of the state mask and the unmodified character. |
convertEventToUnshiftedModifiedAccelerator | public static int convertEventToUnshiftedModifiedAccelerator(Event event)(Code) | | Converts the given event into an SWT accelerator value -- considering
the modified character without the shift modifier. This is the second
accelerator value that should be checked. Key strokes with alphabetic
natural keys are run through convertEventToUnmodifiedAccelerator
Parameters: event - The event to be converted; must not be null . The combination of the state mask without shift, and themodified character. |
convertKeyStrokeToAccelerator | final public static int convertKeyStrokeToAccelerator(KeyStroke keyStroke)(Code) | | Given a key stroke, this method provides the equivalent SWT accelerator
value. The functional inverse of convertAcceleratorToKeyStroke .
Parameters: keyStroke - The key stroke to convert; must not be null . The SWT accelerator value |
getKeyFormatterForPlatform | public static IKeyFormatter getKeyFormatterForPlatform()(Code) | | Provides an instance of IKeyFormatter appropriate for the
current instance.
an instance of IKeyFormatter appropriate for thecurrent instance; never null . |
|
|