SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

service:knowhow:eclipse:open_file_from_local_file_system_in_editor [2018/05/09 01:59] (current)
Line 1: Line 1:
 +Snippet from org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run():​
 +
 +    IFileStore fileStore =  EFS.getLocalFileSystem().getStore(new Path(filterPath));​
 +    fileStore =  fileStore.getChild(names[i]);​
 +    IFileInfo fetchInfo = fileStore.fetchInfo();​
 +    if (!fetchInfo.isDirectory() && fetchInfo.exists()) {
 +    IWorkbenchPage page =  window.getActivePage();​
 +    try {
 +    IDE.openEditorOnFileStore(page,​ fileStore);
  
service/knowhow/eclipse/open_file_from_local_file_system_in_editor.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2020