Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Can I get the IEditorPart from IFile ?
Can I get the IEditorPart from IFile ? [message #166271] Fri, 05 December 2003 11:48 Go to next message
Eclipse UserFriend
Originally posted by: sckimos.enet.co.kr

Hi.

If I have an IFile and the file is open, can I get the IEditorPart object
from it?
Re: Can I get the IEditorPart from IFile ? [message #166485 is a reply to message #166271] Fri, 05 December 2003 16:26 Go to previous message
Derek Adams is currently offline Derek AdamsFriend
Messages: 28
Registered: July 2009
Junior Member
Kimos wrote:

> Hi.

> If I have an IFile and the file is open, can I get the IEditorPart object
> from it?

Try "WorkbenchPage.getEditorManager().findEditor(new
FileEditorInput(file))". I think that will work...

Derek
Previous Topic:Workspace saves
Next Topic:Clay Database Modelling
Goto Forum:
  


Current Time: Sun Dec 21 13:41:26 GMT 2014

Powered by FUDForum. Page generated in 0.04515 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software