ide/src/org/xnap/commons/gui/shortcut/EmacsKeyBindings.java
public static void load() {
		JTextComponent[] jtcs = new JTextComponent[] { new JTextArea(),
				new JTextPane(), new JTextField(), new JEditorPane(), };

		for (int i = 0; i < jtcs.length; i++) {
			Keymap orig = jtcs[i].getKeymap();
			Keymap backup = JTextComponent.addKeymap(jtcs[i].getClass()
					.getName(), null);

			Action[] bound = orig.getBoundActions();
			for (int j = 0; j < bound.length; j++) {
				KeyStroke[] strokes = orig.getKeyStrokesForAction(bound[j]);
				for (int k = 0; k < strokes.length; k++) {
					backup.addActionForKeyStroke(strokes[k], bound[j]);
				}
			}

			backup.setDefaultAction(orig.getDefaultAction());
		}

		loadEmacsKeyBindings();
	}
/***
	 * Loads the emacs keybindings for all common <code>JTextComponent</code>s.
	 * 
	 * The shared keymap instances of the concrete subclasses of
	 * {@link JTextComponent} are fed with the keybindings.
	 * 
	 * The original keybindings are stored in a backup array.
	 */
Loads the emacs keybindings for all common JTextComponents.

The shared keymap instances of the concrete subclasses of
JTextComponent are fed with the keybindings.

The original keybindings are stored in a backup array.
Loads the emacs keybindings for all common JTextComponents . The shared keymap instances of the concrete subclasses of JTextComponent are fed with the keybindings . The original keybindings are stored in a backup array .
public static void load() {
		JTextComponent[] jtcs = new JTextComponent[] { new JTextArea(),
				new JTextPane(), new JTextField(), new JEditorPane(), };
		for (int i = 0; i < jtcs.length; i++) {
			Keymap orig = jtcs[i].getKeymap();
			Keymap backup = JTextComponent.addKeymap(jtcs[i].getClass()
					.getName(), null);
			Action[] bound = orig.getBoundActions();
			for (int j = 0; j < bound.length; j++) {
				KeyStroke[] strokes = orig.getKeyStrokesForAction(bound[j]);
				for (int k = 0; k < strokes.length; k++) {
					backup.addActionForKeyStroke(strokes[k], bound[j]);
				}
			}
			backup.setDefaultAction(orig.getDefaultAction());
		}
		loadEmacsKeyBindings();
	}
public static void load ( ) { JTextComponent [ ] jtcs = new JTextComponent [ ] { new JTextArea ( ) , new JTextPane ( ) , new JTextField ( ) , new JEditorPane ( ) , } ; for ( int i = 0 ; i < jtcs . length ; i ++ ) { Keymap orig = jtcs [ i ] . getKeymap ( ) ; Keymap backup = JTextComponent . addKeymap ( jtcs [ i ] . getClass ( ) . getName ( ) , null ) ; Action [ ] bound = orig . getBoundActions ( ) ; for ( int j = 0 ; j < bound . length ; j ++ ) { KeyStroke [ ] strokes = orig . getKeyStrokesForAction ( bound [ j ] ) ; for ( int k = 0 ; k < strokes . length ; k ++ ) { backup . addActionForKeyStroke ( strokes [ k ] , bound [ j ] ) ; } } backup . setDefaultAction ( orig . getDefaultAction ( ) ) ; } loadEmacsKeyBindings ( ) ; }
Loads the emacs keybindings for all common <code>JTextComponent</code>s.
Loads the emacs keybindings for all common <code > JTextComponent< / code > s .