|SelectionHandlesEditPolicy [message #522314]
||Mon, 22 March 2010 09:51
| Missing name Missing name
Registered: March 2010
I think I have a problem with the SelectionHandlesEditPolicy.
My plugin uses a perspective with two editors side by side.
The left editors show for example a UML class diagram and the right editor a consistent other view (e.g. object diagram) of the same situation.
We have overwritten the showSelection() and hideSelection() methods of SelectionHandlesEditPolicy to show a colored highlight if one or more parts of the diagrams are selected and used listeners to make the selection in both editors consistent (if you click on one class in the class diagram, the according objects in the object diagram will be selected).
Now consider the following situation: I select an object in the class diagram and therefore the according object in the object diagram will be highlighted, too. Then I select another object in the object diagram. The result is that the new object in the object diagram and its according objects in class diagram are selected, but the old selection in the class diagram is not removed. The reason is that the hideSelection method is not called if the editor looses the focus.
Could this be a bug in GEF?
How would you fix the problem?
Powered by FUDForum
. Page generated in 0.01485 seconds