code: private void open(IStructuredSelection selection) throws IOException,
        PartInitException, InvocationTargetException, InterruptedException {
  
      for (DFSFile file : filterSelection(DFSFile.class, selection)) {
  
        IStorageEditorInput editorInput = new DFSFileEditorInput(file);
        targetPart.getSite().getWorkbenchWindow().getActivePage().openEditor(
            editorInput, "org.eclipse.ui.DefaultTextEditor");
      }
    }
docs: Open the selected DfsPath in the editor window
  
  @param selection
  @throws JSchException
  @throws IOException
  @throws PartInitException
  @throws InvocationTargetException
  @throws InterruptedException