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

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.