Create a new EditPart with ToolEntry is forbidden? [message #554054] |
Thu, 19 August 2010 22:03 |
|
Hi,
We have a GEF/GMF based editor (ext. DiagramDocumentEditor). To add EditParts to our diagram we use tools (ext. ToolEntry). We had a tool, that create a new EditPart by clicking on an other and links the new one to it.
Our problem is that we can do this only one time. After that a forbidden sign is showing and we had to move the mouse cursor to get back in the insert mode.
On the screenshot your can see this behavior.
What can we do to repair this. Tools? EditPolicy?
Thank You!
|
|
|
Re: Create a new EditPart with ToolEntry is forbidden? [message #556442 is a reply to message #554054] |
Wed, 01 September 2010 11:14 |
|
I found out why the forbidden sign is showing. The forbidden sign is showing always if EditPolicy.getCommand(request) is returning null.
I debug and found the following application flow:
[we are in insert mode]
- LayoutEditPolicy.getCommand(CreateChildRequest)
return CompoundCommand
- LayoutEditPolicy.showTargetFeedback()
[Mouse clicked, new node is creating, forbidden sign is showing]
- LayoutEditPolicy.eraseTargetFeedback()
- LayoutEditPolicy.getCommand(ConnectionStartRequest)
return null
- LayoutEditPolicy.getCommand(ConnectionEndRequest)
return null
[we had to move the mouse, we are back in the insert mode]
- LayoutEditPolicy.showTargetFeedback()
- LayoutEditPolicy.getCommand(CreateChildRequest)
return CompoundCommand
How can we get back in the insert mode and create new CreateChildRequests?
|
|
|
Powered by
FUDForum. Page generated in 0.04887 seconds