Hi,
I have developed an Application in Eclipse 3.4 for Lotus Notes 8.
The application is a Notes Sidebar which lists files in a Particular folder.
Now my next task is to open the default editor for that kind of file when it is double clicked.
I used same procedure given in Eclipse for opening an editor programmtically when file is not in workbench. But seems like Its not working.
This is my code to Open File:
File fileToOpen = new File(filePath);
if (fileToOpen.exists() && fileToOpen.isFile()) {
IFileStore fileStore = EFS.getLocalFileSystem().getStore(fileToOpen.toURI());
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IDE.openEditorOnFileStore( page, fileStore );
}
Another thing. The user double-clicks on a SWT List which shows all files from a specific folder. I am not getting exceptions also.
Please help me.