1 11 package org.eclipse.jface.bindings.keys; 12 13 14 23 public final class KeyLookupFactory { 24 25 28 private static final SWTKeyLookup SWT_KEY_LOOKUP = new SWTKeyLookup(); 29 30 34 private static IKeyLookup defaultLookup = SWT_KEY_LOOKUP; 35 36 42 public static final IKeyLookup getSWTKeyLookup() { 43 return SWT_KEY_LOOKUP; 44 } 45 46 51 public static final IKeyLookup getDefault() { 52 return defaultLookup; 53 } 54 55 61 public static final void setDefault(final IKeyLookup defaultLookup) { 62 if (defaultLookup == null) { 63 throw new NullPointerException ("The look-up must not be null"); } 65 66 KeyLookupFactory.defaultLookup = defaultLookup; 67 } 68 69 72 private KeyLookupFactory() { 73 } 75 } 76 | Popular Tags |