Blinking an SWT Label in Eclipse

I was playing around creating a monitoring tool for the WED Property Broker and thought how neat it would be if the information for the registered properties and actions blinked when acted upon. You see in property broker property changes and the calling of the wired actions is 100% declarative so if you have a bug in your meta-data or components are not acting correctly it can be a bit of a pain to figure out where it is going wrong. I combed the Internet looking for some sample code and found none! So here it is, on the Internet. I created it using basic UI threading techniques and encapsulated the call into a single method. You can change the delay to get slower or faster blinking.

Click here to see the code.

2 thoughts on “Blinking an SWT Label in Eclipse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s