Delete of pictogram element using keyboard is not working [message #1121122] |
Mon, 30 September 2013 09:40 |
PALANI SANKAR Messages: 35 Registered: April 2013 |
Member |
|
|
Hi All
I am facing a problem that delete of pictogram element using keyboard is not working.
when i select an element explicitly , in the context(IContext) i am not getting the selected pictogram element , i am getting context.getPictogramElement as DiagramImpl and i am not getting as ContainerShapeImpl. I can't able to figure out why on selection of element am getting diagramimpl as context.getpictogramelement.
But when i do right click and do delete i am getting the correct pictogramElement.
Can someone help me in resolving this issue.
Thanks
Palani
Thanks
Palani
|
|
|
|
Re: Delete of pictogram element using keyboard is not working [message #1121220 is a reply to message #1121122] |
Mon, 30 September 2013 11:48 |
PALANI SANKAR Messages: 35 Registered: April 2013 |
Member |
|
|
Hi Michael
I am not hovering over and i am just doing explicit selection on the element, but context.getpictogramelement gives me diagramimpl only always.
So i tried another approach like i create a new delete context and got the selected pictogram element using getDiagramBehavior().getDiagramContainer().getSelectedPictogramElements()[0]
It works fine for me and it solves my issue.correct me if am wrong.
Thanks
Palani
Thanks
Palani
|
|
|
Powered by
FUDForum. Page generated in 0.05592 seconds