Highlighting a list of model elements [message #193348] |
Wed, 18 June 2008 17:22 |
Eclipse User |
|
|
|
Originally posted by: jgreen.upb.de
Hi,
I need some advice how to approach the following:
UC1: Given a list of model elements, I want to highlight them in the editor when a "highlight mode" is activated.
(By highlighting I mean i.e. to draw a red box around them. The "highlight mode" could be toggled by an action somewhere)
UC2: In the "highlighting mode" I want to be able to select/deselect the model elements in the editor which shall be
contained in the list of highlighted model elements.
I thought of providing an EditPolicy through the EditPolicyProvider. Such a HighlightEditPolicy could have a listener on
the list of highlighted elements and show/hide a highlight-figure on the "Feedback-Layer" (UC1). The EditPolicy could
furthermore have a SelectionListener on its EditPart (for UC2) and add/remove element from the "hightlight-list"...
Has anyone done anything similar yet?
Or do you know anything similar in other GMF/EMF contexts that I should have a look at?
Other thoughts?
Thanks for helping
Joel
|
|
|
Powered by
FUDForum. Page generated in 0.04657 seconds