|Re: programmatically opening GraphicalEditor [message #86840 is a reply to message #86798]
||Fri, 11 July 2003 19:40
Originally posted by: g.wagenknecht.intershop.com|
"Qhmd" <firstname.lastname@example.org> wrote in message
> 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.
Powered by FUDForum
. Page generated in 0.02155 seconds