Community
Participate
Working Groups
Build Identifier: 0.7.1.v20110111-0756 Using TYPE_DIALOG in DirectEditingFeature doesn't work. Wxecuting 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 ... Reproducible: Always Steps to Reproduce: 1. Create DirectEditingFeature 2. Set type to TYPE_DIALOG 3. Invoke DirectEditingFeature in diagram
You are right. Unfortunately the type IDirectEditing.TYPE_DIALOG is currently not supported by Graphiti. Originally it was planned to support such kind of type (that's why it is still in the interface) but we never had a concrete request. But nevertheless the org.eclipse.jface.viewers.DialogCellEditor is an abstract class, what kind of dialog did you expect when you used this type? BR, Matthias
(In reply to comment #1) > You are right. Unfortunately the type IDirectEditing.TYPE_DIALOG is currently > not supported by Graphiti. > > Originally it was planned to support such kind of type (that's why it is still > in the interface) but we never had a concrete request. > > But nevertheless the org.eclipse.jface.viewers.DialogCellEditor is an abstract > class, what kind of dialog did you expect when you used this type? > > BR, > Matthias I expected possibility to use some custom dialog. I didn't know this feature is in unsupported state. I'm sorry if I missed some note in documentation...
It is planned to support custom dialog celleditor's in the next release (Juno).
Would like to target for Juno
Fixed. Customers can now provide their own cell editors for the direct editing mode. Steps to do this: 1) set direct editing type to TYPE_CUSTOM (TYPE_DIALOG has been renamed) 2) the direct editing feature must implement the interface org.eclipse.graphiti.ui.platform.ICellEditorProvider. commit 691942cc2b886aa645d3ecd305b29a19d692698c Author: mgorning <matthias.gorning@sap.com> 2011-12-29 13:39:31 Committer: mgorning <matthias.gorning@sap.com> 2011-12-29 13:39:31 Parent: 0ab70753d4689baba969e59de02ae3930847e465 (formatter) Branches: origin/master, master Bug 347262 - DirectEditingFeature with TYPE_DIALOG type / unsupported types removed
Bookkeeping: Set target release
Part of Graphiti 0.9.0 (Eclipse Juno)