@Override protected void createEditingActions() { super.createEditingActions(); for (PyRootTypeProvider provider : myRootTypeProviders) { ContentEntryEditingAction action = provider.createRootEntryEditingAction( myTree, myFilePointersDisposable, PyContentEntriesEditor.this, getModel()); myEditingActionsGroup.add(action); CustomShortcutSet shortcut = provider.getShortcut(); if (shortcut != null) { action.registerCustomShortcutSet(shortcut, myTree); } } }
@Override public void setContentEntryEditor(ContentEntryEditor newEditor) { PyContentEntriesEditor.MyContentEntryEditor existingEditor = getContentEntryEditor(); if (Comparing.equal(existingEditor, newEditor)) { return; } if (existingEditor != null) { existingEditor.removeListener(myListener); } if (newEditor != null) { ((PyContentEntriesEditor.MyContentEntryEditor) newEditor).addListener(myListener); } super.setContentEntryEditor(newEditor); }