Eugene Kuleshov <eu@md.pp.ru> wrote on 08/21/2006 02:43:50 PM:
> 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())
Thanks. It looks like I can get this working. It is working for me in
tests. I just need a little more free time to test and examine the
changes, then I should be able to commit.
I am saving the contents to a temp file and then open using the external
editor. The temp file is then deleted when the JVM closes.
I just need to test things like what happens when it is a .java file etc.
to make sure it does not do any of these things.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Aug 22 02:51:40 2006