[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] FileLink in console with a external file

hi all,

I try to have a link in a console that open a file who is not in the workspace

to be practical , I have that

IFile confFile = ResourcesPlugin.getWorkspace().getRoot()
					.getFileForLocation(new Path(line));

who return null cause the file représented by his path is out of the workspace (but really exist)

I found that
http://www.google.com/codesearch?hl=fr&q=+package:https://sifsstud2.hsr.ch/publicsvn/PythonRefactoring/trunk+doOpenEditor+show:aW3_nOKb3zY:0TJD2-nsoQg:aW3_nOKb3zY&sa=N&cd=1&ct=rc&cs_p=https://sifsstud2.hsr.ch/publicsvn/PythonRefactoring/trunk&cs_f=src/org.python.pydev/src/org/python/pydev/plugin/PydevPlugin.java

but it seem ood and bizarre (with a big ALL BELOW IS COPIED) .

plus, there some part of code I dont unterdstand like

return new PydevFileEditorInput(new File(fileAbsolutePath));

who return a class derived from IPathEditorInput and ILocationProvider

me the only thing I have is A TextEditor class so must I replace this kind of thing by
return new MyEditor().getInputEditor().???



or is there any other facilities?? thanks

a++