Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » State switch
State switch [message #143516] Tue, 20 July 2004 09:20 Go to next message
Eclipse UserFriend
Originally posted by: tvanlessen.taval.de

Hi!

I'd like to switch the editor in another state when a special tool gets
selected. If my tool is selected, I need to change the color of all
figures to grey. My tool can tag the editparts and tagged figures should
be green. If I select another tool, the editor should display the
"normal" colors.

Which is the best way/location to implement this?

Thanks a lot.
Tammo
Re: State switch [message #143850 is a reply to message #143516] Wed, 21 July 2004 21:59 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
One of many possible ways: when activate() in invoked on your tool, you can
perhaps set a flag (either on the graphical viewer or the model) and have
all the EditParts refresh.

"Tammo van Lessen" <tvanlessen@taval.de> wrote in message
news:cdio32$b69$1@eclipse.org...
> Hi!
>
> I'd like to switch the editor in another state when a special tool gets
> selected. If my tool is selected, I need to change the color of all
> figures to grey. My tool can tag the editparts and tagged figures should
> be green. If I select another tool, the editor should display the
> "normal" colors.
>
> Which is the best way/location to implement this?
>
> Thanks a lot.
> Tammo
>
Previous Topic:Bring to Front
Next Topic:ClassCasteException when working with tutoial
Goto Forum:
  


Current Time: Tue Apr 23 11:46:21 GMT 2024

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

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

Back to the top