// Create or re-use and editor for it.
editor = Editors.attachTo(document);
container.doAdopt(editor.getWidget());
editor.init(null, KEY_BINDINGS, EDITOR_SETTINGS);
editor.addKeySignalListener(this);
KEY_BINDINGS.registerAction(KeyCombo.ORDER_K, new EditorAction() {
@Override
public void execute(EditorContext context) {
LinkerHelper.onCreateLink(context);
}
});
KEY_BINDINGS.registerAction(KeyCombo.ORDER_SHIFT_K, new EditorAction() {
@Override
public void execute(EditorContext context) {
LinkerHelper.onClearLink(context);
}
});