コード例 #1
0
  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;
  }
コード例 #2
0
 @Override
 public void navigateTo(@NotNull final Navigatable navigatable) {
   ((OpenFileDescriptor) navigatable).navigateIn(getEditor());
 }