|
Re: programmatically opening GraphicalEditor [message #86840 is a reply to message #86798] |
Fri, 11 July 2003 19:40 |
Eclipse User |
|
|
|
Originally posted by: g.wagenknecht.intershop.com
"Qhmd" <hmdeng6@yahoo.com> wrote in message
news:3F0ECAB4.7F5119D8@yahoo.com...
> I want to open my GraphicalEditor programmatically as a result of a menu
> selection by the user. The problem I have is what input should I give to
> openEditor() method of IWorkbenchPage. I've tried many things, but I
> always get a NullPointerException.
You should probably use the same IEditorInput you use when it is opened
regulary. Also don't forget the editor id. A good point to look at is the
EditorUtility class available in JDT UI source.
Cu, Gunnar
|
|
|
Powered by
FUDForum. Page generated in 0.02272 seconds