How do I listen for changes to the build model? [message #153580] |
Fri, 09 September 2005 14:22 |
Eclipse User |
|
|
|
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 huhWhatResource??,
IScannerINfoChangeListener me);
How do I subscribe to changes in the build model? Is there another way to
tell when configuration name changes?
Thanks;
-Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03043 seconds