/** * Creates an instance of <code>KeyStroke</code> given a natural key. * * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. This key stroke will have no modifier keys. * Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int naturalKey) { return new KeyStroke(NO_KEY, naturalKey); }
/** * Creates an instance of <code>KeyStroke</code> given a natural key. * * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. This key stroke will have no modifier keys. * Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int naturalKey) { return new KeyStroke(NO_KEY, naturalKey); }
/** * Creates an instance of <code>KeyStroke</code> given a natural key. * * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. This key stroke will have no modifier keys. * Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int naturalKey) { return new KeyStroke(NO_KEY, naturalKey); }
/** * Creates an instance of <code>KeyStroke</code> given a set of modifier keys * and a natural key. * * @param modifierKeys * the modifier keys. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no modifier keys. * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int modifierKeys, final int naturalKey) { return new KeyStroke(modifierKeys, naturalKey); }
/** * Creates an instance of <code>KeyStroke</code> given a set of modifier keys * and a natural key. * * @param modifierKeys * the modifier keys. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no modifier keys. * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int modifierKeys, final int naturalKey) { return new KeyStroke(modifierKeys, naturalKey); }
/** * Creates an instance of <code>KeyStroke</code> given a set of modifier keys * and a natural key. * * @param modifierKeys * the modifier keys. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no modifier keys. * @param naturalKey * the natural key. The format of this integer is defined by * whichever widget toolkit you are using; <code>NO_KEY</code> * always means no natural key. * @return a key stroke. Guaranteed not to be <code>null</code>. * @see SWTKeySupport */ public static final KeyStroke getInstance(final int modifierKeys, final int naturalKey) { return new KeyStroke(modifierKeys, naturalKey); }
return new KeyStroke(modifierKeys, naturalKey);
return new KeyStroke(modifierKeys, naturalKey);
return new KeyStroke(modifierKeys, naturalKey);