Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Trouble listening for changes to the Build model.
Trouble listening for changes to the Build model. [message #291133] Fri, 09 September 2005 00:10
Christopher Hull is currently offline Christopher HullFriend
Messages: 27
Registered: July 2009
Junior Member
I need to listen for a change in the CDT build model so that a UI can
update.



When the user accesses the properties for a C/C++ project in CDT, I need to
know when this change takes place.

The point of interest in the UI is.

(Select project, right click) Properties -> C/C++ Build Configuration,
which has a drop down menu containing one of "Release" or "Debug".



Programmatically, I am able to access the configuration name via a static
method in ManagedBuildManager.



Static BuildINfo info getBuildInfo( IProject );

which then allows me to access the configuration name

info.getConfigurationName();



I had hoped to subscribe via the subscribe method in ManagedBuildManager,
but it's not a static, and I don't know how to get a hold of a (or the)
ManagedBuildManager.



The method I appear to want to access is:

Public sync void subscribe( IResource whatResource??,
IScannerINfoChangeListener foo);



How do I subscribe to changes in the build model? Is there another way to
tell when configuration name changes?



Thanks;

-Chris
Previous Topic:objectState and projectPersistentProperty
Next Topic:Is there a separate CDT development newsgroup?
Goto Forum:
  


Current Time: Fri Apr 19 14:15:42 GMT 2024

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

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

Back to the top