Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » DirectEditingFeature with TYPE_DIALOG type
DirectEditingFeature with TYPE_DIALOG type [message #667583] Fri, 29 April 2011 16:27 Go to next message
Dobrou Mising name is currently offline Dobrou Mising nameFriend
Messages: 16
Registered: December 2010
Junior Member
I would like to use some better direct editing feature than text or combobox. So I used TYPE_DIALOG as editing type, but it seems this option is not working.

Using this type, executing direct editing always fails with following exception:
java.lang.NullPointerException
at org.eclipse.graphiti.ui.internal.parts.directedit.GFDirectEd itManager.createCellEditorOn(GFDirectEditManager.java:148)
at org.eclipse.gef.tools.DirectEditManager.show(DirectEditManag er.java:397)
at org.eclipse.graphiti.ui.internal.parts.directedit.GFDirectEd itManager.show(GFDirectEditManager.java:306)
at org.eclipse.graphiti.ui.internal.parts.ShapeEditPart.bringUp DirectEditField(ShapeEditPart.java:693)
at org.eclipse.graphiti.ui.internal.parts.ShapeEditPart.perform Request(ShapeEditPart.java:509)
at org.eclipse.gef.tools.DelayedDirectEditHelper.run(DelayedDir ectEditHelper.java:108)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4167)
....

It seems Graphiti framework gets public constructor of abstract class DialogCellEditor with one Composite as parameter. But this constructor is only protected so null is returned ...


Am I missing something or is something wrong with TYPE_DIALOG ?
Re: DirectEditingFeature with TYPE_DIALOG type [message #667850 is a reply to message #667583] Mon, 02 May 2011 12:56 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1923
Registered: July 2009
Location: Walldorf, Germany
Senior Member
This appear to be a bug. Would you please open a bugzilla against Graphiti to track this?

Thanks,
Michael
Re: DirectEditingFeature with TYPE_DIALOG type [message #674225 is a reply to message #667850] Thu, 26 May 2011 08:17 Go to previous message
Dobrou Mising name is currently offline Dobrou Mising nameFriend
Messages: 16
Registered: December 2010
Junior Member
Ok, reported here https://bugs.eclipse.org/bugs/show_bug.cgi?id=347262
Previous Topic:How to Track Undo Command
Next Topic:Notes feature in Graphiti
Goto Forum:
  


Current Time: Thu Nov 26 10:32:28 GMT 2020

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

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

Back to the top