|
|
|
|
Re: Getting handle to a file outside eclipse workspace [message #511544 is a reply to message #511531] |
Mon, 01 February 2010 18:25  |
Eclipse User |
|
|
|
Rohit wrote on Mon, 01 February 2010 17:12 | File file = new File("/home/rohit/func.c");
IFileStore fileOnLocalDisk = EFS.getLocalFileSystem().getStore(file.toURI());
FileStoreEditorInput editorInput = new FileStoreEditorInput(fileOnLocalDisk);
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
try {
page.openEditor(editorInput, "org.eclipse.ui.DefaultTextEdtior");
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}*/
| What errors did you get with this code? When you say it doesn't work, what do you mean? Does the editor open with an error? Does the editor open at all? Did you try stepping through the code?
Please provide more information.
|
|
|
Powered by
FUDForum. Page generated in 0.03648 seconds