LIRA Olavo wrote:
> It looks like the code will open the file in the right editor,
> provided that it is an Eclipse editor. In order to open an external
> editor, your
>
> editor input has to implement IPathEditorInput, and in order to
> implement that, you have to be able to provide an IPath for the item.
> I think this is where things fall apart as in order to have an IPath
> the file has to exist in your workspace. If someone can tell me a
> way to get an IPath for an external file, I could look into getting
> the file into a /tmp file and then open an external editor. I do not
> know how to get an IPath for a file outside the workspace.
Actually it is only necessary for IResource, IFile, etc to be n the
workspace, but IPath can point anywhere, so you can just use new
Path(file.getAbsolutePath())
regards,
Eugene
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Mon Aug 21 20:44:17 2006