Community
Participate
Working Groups
Created attachment 226905 [details] new classes to enable adding children shapes to compartment shape Hello, In my use case I need to show compartment figure (say EClass) with children figures (EAttribute) and highlight selected EAttributes with solid background color. However I’ve noticed that IToolBehaviorProvider#getSelectionInfoForShape does not work for shapes with transparent GraphicsAlgorithm => setFilled(false). I have prepared sample code, which is an enhancement of the Graphiti tutorial, with the possibility to add EAttribute as children to EClass figure. Just put the content of features.zip in org.eclipse.graphiti.examples.tutorial.features package, and the content of diagram.zip to org.eclipse.graphiti.examples.tutorial.diagram package. features.zip – contains new files to enable adding children shapes to compartment shape diagram.zip –contains slightly updated versions of Feature and ToolBehavior providers
Created attachment 226906 [details] slightly updated versions of Feature and ToolBehavior providers
Taking a step back and checking the behavior in the current master branch (Graphiti 0.10.0 for Eclipse Kepler) I started to remember that we already had issues with this functionality (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=391523). Not all setting in the shape selection info objects were evaluated. So we decided to strip the API down to the really supported functionality which was mainly control over hover colors. Therefore the existing functionality will not help in your case (neither in Graphiti 0.9 where the functionality is not supported, nor in 0.10 where the functionality does no longer exist). I switch this bug to an enhancement request to introduce the functionality to influence selection behavior, but I doubt that this will get into Kepler for simple lack of capacity.