[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: Eugene Kuleshov <eu_at_md.pp.ru>
Date: 2006-08-21 20:43:50 CEST

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

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.