Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Delete of pictogram element using keyboard is not working(Delete of Pictogram element using keyboard delete is not working)
Delete of pictogram element using keyboard is not working [message #1121122] Mon, 30 September 2013 05:40 Go to next message
PALANI SANKAR is currently offline 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 #1121196 is a reply to message #1121122] Mon, 30 September 2013 07:17 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Palani,

how do you trigger the selection via the keyboard? What you describe sounds
a bit like you just move around the cursor but do not trigger the actual
selection by pressing space.

Michael
Re: Delete of pictogram element using keyboard is not working [message #1121220 is a reply to message #1121122] Mon, 30 September 2013 07:48 Go to previous message
PALANI SANKAR is currently offline 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
Previous Topic:Distinguish Containers
Next Topic:Maintaining shape properties after closing the diagram
Goto Forum:
  


Current Time: Sat Jul 26 09:30:58 EDT 2014

Powered by FUDForum. Page generated in 0.02368 seconds