[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Opening a old revision of a binary file

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-08-22 02:51:22 CEST

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

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.