protected final StrategyManager sm;
public JTextPanePreparer(final JTextPane textPane, final LANGUAGE language, final LuposDocument document) {
this.textPane = textPane;
this.document = document;
this.sm = new StrategyManager(language, document);
((JComponent) textPane).registerKeyboardAction(this, "open",
KeyStroke.getKeyStroke(KeyEvent.VK_SPACE , Event.CTRL_MASK), JComponent.WHEN_IN_FOCUSED_WINDOW);
// // Binding Alt F4
// ((JComponent) textPane).registerKeyboardAction(this, "close",
// alt(KeyEvent.VK_F4), JComponent.WHEN_FOCUSED);