Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Selection Listener in Graphiti Diagram(How to get the selected business object?)
Selection Listener in Graphiti Diagram [message #684451] Wed, 15 June 2011 15:33 Go to next message
Bjoern Ickx is currently offline Bjoern IckxFriend
Messages: 17
Registered: June 2011
Junior Member
Hello together,

when selecting an object within the diagram I want to show it's business object attributes in a tableView besides the Graphiti diagram editor.

An implemented SelectionListener on the site of the used workbench part also works within the diagram editor.

When I select an object it shows e.g.:
Selection Changed: [org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart@....

Is it possible to get the related business object with this information somehow? Or better, does Graphiti somehow offers a selectionListener that can deliver the selected business object?

Thanks for your help

Bjoern
Re: Selection Listener in Graphiti Diagram [message #684792 is a reply to message #684451] Thu, 16 June 2011 08:43 Go to previous message
Tim Kaiser is currently offline Tim KaiserFriend
Messages: 118
Registered: July 2009
Senior Member
Hi Björn,

you can have a look at PropertiesLabelProvider
in the examples.common plugin.

There , you can see how it can be done in principle.

Bets regards, Tim
Previous Topic:Create diagram with elements within
Next Topic:Connections / References issue
Goto Forum:
  


Current Time: Tue Dec 01 18:31:49 GMT 2020

Powered by FUDForum. Page generated in 0.02129 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top