private boolean navigateInRequestedEditor() { DataContext ctx = DataManager.getInstance().getDataContext(); Editor e = NAVIGATE_IN_EDITOR.getData(ctx); if (e == null) return false; if (FileDocumentManager.getInstance().getFile(e.getDocument()) != myFile) return false; navigateIn(e); return true; }
@Override public void navigateTo(@NotNull final Navigatable navigatable) { ((OpenFileDescriptor) navigatable).navigateIn(getEditor()); }