naturalKey = lookup.formalKeyLookup(token);
private static String getEnterBinding() { return KeyStroke.getInstance(KeyLookupFactory.getDefault().formalKeyLookup(IKeyLookup.CR_NAME)).format(); }
protected static String getEnterBinding() { return KeyStroke.getInstance(KeyLookupFactory.getDefault().formalKeyLookup(IKeyLookup.CR_NAME)).format(); }
naturalKey = lookup.formalKeyLookup(token);
naturalKey = lookup.formalKeyLookup(token);
private static String getEnterBinding() { return KeyStroke.getInstance(KeyLookupFactory.getDefault().formalKeyLookup(IKeyLookup.CR_NAME)).format(); }
private static String getEnterBinding() { return KeyStroke.getInstance(KeyLookupFactory.getDefault().formalKeyLookup(IKeyLookup.CR_NAME)).format(); }
/** * 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); }