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 06:48 Go to next message
Eclipse User
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 11:26 Go to previous message
Derek Adams is currently offline Derek Adams
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: Sat Jul 26 07:16:34 EDT 2014

Powered by FUDForum. Page generated in 0.01893 seconds