Skip to main content


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 14:33 Go to next message
Hong Deng is currently offline Hong DengFriend
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 19:40 Go to previous message
Eclipse UserFriend
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: Sat Apr 20 02:34:22 GMT 2024

Powered by FUDForum. Page generated in 0.02272 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top