[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Open IFile int the main window

May be its a stupid question but i didn't found the editorID for the normal default Editor in the main frame of eclipse. Can you say me this?

Ed Merks schrieb:
Jörg,

You'll need to create a FileEditorInput to what the IFile.


Jörg wrote:
Hello,

i have a tableviewer with some Ifiles as input. Now i wanted to open a file by doubleclick this cell. How can i do this? i have allready the listener and the IFile. I found code like this to open the editor:

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(IFile);


but this method exist not in this way.

I think it is quite easy but i found nothing what really helped me.