Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » programmatically opening GraphicalEditor
programmatically opening GraphicalEditor [message #86798] Fri, 11 July 2003 10:33 Go to next message
Hong Deng is currently offline Hong Deng
Messages: 15
Registered: July 2009
Junior Member
Hi All,

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.

Thanks

Bharat
Re: programmatically opening GraphicalEditor [message #86840 is a reply to message #86798] Fri, 11 July 2003 15:40 Go to previous message
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
Previous Topic:Re: Where can I find FreeformGraphicalRootEditPart?
Next Topic:Design question
Goto Forum:
  


Current Time: Wed Apr 16 09:40:59 EDT 2014

Powered by FUDForum. Page generated in 0.21057 seconds