Close a graphical editor [message #16441] |
Wed, 21 January 2009 07:23  |
Eclipse User |
|
|
|
Hello,
I use package net.sf.swtbot.eclipse.gef. I want to close my graphical
editor.
I write code
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IFile file = workspace.getRoot().getFileForLocation(
new Path("/home/MyName/Bureau/MyEditor.extension");
GraphicalEditor editor = new GraphicalEditor(file);
editor.close();
File "MyEditor.extension" exists on my File System but when I debug my
code, the "file" is null.
Someone know another way to have an instance of "IFile"? I need this to
instantiate MyGraphicalEditor.
Thanks for your help.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04380 seconds