|Modifier and Type||Method and Description|
public static String getLocalizingBundleMessage(FileObject fo, String key, String defaultValue)
public static String keyStrokesToString(Collection<? extends KeyStroke> keys, boolean emacsStyle)
Utilities#keyToString(javax.swing.KeyStroke, java.lang.String, boolean)
KeyStrokes to its textual representation. There are two available formats for the textual representation:
KeyStroketo a string that looks like for example 'Ctrl+A' or 'Alt+Shift+M'.
KeyStroketo a string that's known from Emacs and that looks like for example 'C-A' or 'AS-M'. It uses methods from
org.openide.util.Utilities, which take care of Mac OS specifics and use 'D' and 'O' wildcards for encoding 'Ctrl' and 'Alt' keys.
truethe returned string will be in so called Emacs style, ortherwise it will be in human readable format.
KeyStrokes passed in.
Utilities.stringToKeys(java.lang.String). Note the differences in delimiter used by the two methods.
KeyStrokeobjects. Please see
#keyStrokesToString(Collectionror details about the available formats.
key- The textual representation of keystorkes to convert. Its format depends on the value of
keystring is expected to be in so called emacs format, ortherwise it will be in human readable format.
KeyStrokes that were represented by the
nullif the textual representation was malformed.