| [news.eclipse.platform] Re: Open IFile int the main window |
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.