|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.keyboard.XMLKeyStrokeContext
This class should only be used if your addin is part of the product. If your addin is not part of the product, see the package documentation
Example:
public class MyKeys extends XMLKeyStrokeContext { MyKeys() { super("MyContext"); } public Set getAllActions(boolean bGlobal) { HashSet set = null; if (bGlobal) { set = new HashSet(); IdeAction action1 = MyController. ...; IdeAction action2 = MyController. ...; set.add(myAction1); set.add(myAction2); } return set; } public static void register() { MyKeys myKeys = new MyKeys(); KeyStrokeContextRegistry kscr = Ide.getKeyStrokeContextRegistry(); kscr.addContext(tks); } }
Constructor Summary | |
XMLKeyStrokeContext(java.lang.String sName)
|
Method Summary | |
java.lang.String |
getAcceleratorFile()
If your addin provides predefined accelerator definitions, you should return the name of the .KDF file in your jar file. |
abstract java.util.Set |
getAllActions(boolean bGlobal)
Returns a Set of actions valid for the context. |
java.util.List |
getAllPresets()
This method is called to get a list of the predefined mappings. |
java.lang.String |
getName()
Get the name of this context as it will appear in the shortcut configuration panel. |
KeyStrokeMap |
getPresetKeyStrokeMap(java.lang.Object preset,
boolean bGlobal)
Returns the mapping between KeyStrokes and Actions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLKeyStrokeContext(java.lang.String sName)
Method Detail |
public java.lang.String getName()
KeyStrokeContext
getName
in interface KeyStrokeContext
public abstract java.util.Set getAllActions(boolean bGlobal)
KeyStrokeContext
getAllActions
in interface KeyStrokeContext
public final KeyStrokeMap getPresetKeyStrokeMap(java.lang.Object preset, boolean bGlobal)
KeyStrokeContext
getPresetKeyStrokeMap
in interface KeyStrokeContext
preset
- corresponds to one of the elements returned by
getPresetKeyStrokeMaps or null to get the default map.bGlobal
- true when asked for the global keys.public final java.util.List getAllPresets()
KeyStrokeContext
The values in the list should be one of the PC_ constants.
getAllPresets
in interface KeyStrokeContext
public java.lang.String getAcceleratorFile()
KeyStrokeContext
getAcceleratorFile
in interface KeyStrokeContext
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.