Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How do I listen for changes to the build model?
How do I listen for changes to the build model? [message #153580] Fri, 09 September 2005 14:22
Eclipse UserFriend
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
Previous Topic:"Keep Going On Error" does not work
Next Topic:Plug-in that works with CDT. Is this the place to ask?
Goto Forum:
  


Current Time: Fri Apr 25 01:41:39 EDT 2025

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

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

Back to the top