I want to provider directedit in contextmenu.
I can call the directedit after the shape is added. But when I put the code in the custom feature, I can't call the directedit.
In the custom feature, the code as:
IDirectEditingInfo directEditingInfo = getFeatureProvider().getDirectEditingInfo();
Michael Wenz Messages: 1885 Registered: July 2009 Location: Walldorf, Germany
In the add feature you usually enable direct editing by calling:
Afterwards the diagram is refreshed automatically since something is added to it. That is probably missing in the case of your custom feature (not sure what else is done there). Have you tried to trigger a refresh of the diagram in the end of your feature (DiagramBehavior or DiagramRefreshBehavior.refresh())?