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" ) ; } }
Open the selected DfsPath in the editor window