/** * Returns the formal string representation for this key stroke. * * @return The formal string representation for this key stroke. Guaranteed * not to be <code>null</code>. */ @Override public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Formats this key sequence into the current default look. * * @return A string representation for this key sequence using the default * look; never <code>null</code>. */ @Override public final String format() { return KeyFormatterFactory.getDefault().format(this); }
/** * Returns the formal string representation for this key stroke. * * @return The formal string representation for this key stroke. Guaranteed * not to be <code>null</code>. * @see java.lang.Object#toString() */ public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Formats this key sequence into the current default look. * * @return A string representation for this key sequence using the default * look; never <code>null</code>. */ @Override public final String format() { return KeyFormatterFactory.getDefault().format(this); }
/** * Formats this key stroke into the current default look. * * @return A string representation for this key stroke using the default * look; never <code>null</code>. */ public final String format() { return KeyFormatterFactory.getDefault().format(this); }
/** * Returns the formal string representation for this key sequence. * * @return The formal string representation for this key sequence. * Guaranteed not to be <code>null</code>. * @see java.lang.Object#toString() */ public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Formats this key stroke into the current default look. * * @return A string representation for this key stroke using the default * look; never <code>null</code>. */ public final String format() { return KeyFormatterFactory.getDefault().format(this); }
/** * Returns the formal string representation for this key stroke. * * @return The formal string representation for this key stroke. Guaranteed * not to be <code>null</code>. * @see java.lang.Object#toString() */ @Override public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Formats this key stroke into the current default look. * * @return A string representation for this key stroke using the default * look; never <code>null</code>. */ public final String format() { return KeyFormatterFactory.getDefault().format(this); }
/** * Returns the formal string representation for this key sequence. * * @return The formal string representation for this key sequence. * Guaranteed not to be <code>null</code>. */ @Override public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Returns the formal string representation for this key sequence. * * @return The formal string representation for this key sequence. * Guaranteed not to be <code>null</code>. * @see java.lang.Object#toString() */ @Override public final String toString() { return KeyFormatterFactory.getFormalKeyFormatter().format(this); } }
/** * Formats this key sequence into the current default look. * * @return A string representation for this key sequence using the default * look; never <code>null</code>. */ public final String format() { return KeyFormatterFactory.getDefault().format(this); }
String modifier= SWTKeySupport.getKeyFormatterForPlatform().format(AbstractJavaCompletionProposal.MODIFIER_TOGGLE_COMPLETION_MODE); label.setText(NLS.bind(PreferencesMessages.JavaEditorPreferencePage_completionToggleHint, modifier)); GridData gd= new GridData();
String modifier= SWTKeySupport.getKeyFormatterForPlatform().format(AbstractJavaCompletionProposal.MODIFIER_TOGGLE_COMPLETION_MODE); label.setText(NLS.bind(PreferencesMessages.JavaEditorPreferencePage_completionToggleHint, modifier)); GridData gd= new GridData();
/** * Returns a string representation of the "Ctrl+Return" key sequence. * * @return a string representation of the "Ctrl+Return" key sequence. */ private String getCtrlReturnText() { IKeyLookup keyLookup = KeyLookupFactory.getDefault(); int ctrlKey = keyLookup.getCtrl(); int returnKey = keyLookup.formalKeyLookup(IKeyLookup.RETURN_NAME); KeyStroke ctrlReturnKeyStroke = KeyStroke.getInstance(ctrlKey, returnKey); KeySequence ctrltReturnKeySequence = KeySequence.getInstance(ctrlReturnKeyStroke); return SWTKeySupport.getKeyFormatterForPlatform().format(ctrltReturnKeySequence); }