Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Highlighting a list of model elements
Highlighting a list of model elements [message #193348] Wed, 18 June 2008 21:22
Eclipse UserFriend
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
Previous Topic:Create Node Manually
Next Topic:Customizing messages of Java Audit Rules
Goto Forum:
  


Current Time: Fri Apr 26 23:26:19 GMT 2024

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

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

Back to the top