Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Property Change listener query(Can a toolbar icon be a Property Source Provider)
Property Change listener query [message #651762] Tue, 01 February 2011 13:59
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
I have two views which have Tables in them.

I have a toolbar icon which is like a toggle for showing a column with check boxes in the tables in the above two views.

When the toolbar icon is clicked, the tables will have to show a column with check boxes. When it is clicked again, the column with check boxes is removed.


1. I can make the two views as Property Change Listeners and when the toolbar icon is clicked, the views will listen to the click and update the table accordingly.The icon will update the property source.

2. I dont use the listener mechanism. On clicking the toolbar icon, i can check if the views which I want to respond to are visible. If they are visible, i call the method in the view to turn off or turn on the check box column.


Is there is a better way to achieve this? Which of the above two is more desirable?
Previous Topic:How to add my importWizards in Toolbar
Next Topic:how to extract additional file types from bundle
Goto Forum:
  


Current Time: Sat Dec 20 19:34:31 GMT 2014

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

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