From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx] On
Behalf Of Sennikovsky, Mikhail
Sent: Friday, September 09, 2005
5:27 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] Trouble
listening to changes in the Build model
Hi Chris,
There is no managed build model change
notification mechanism implemented yet. The subscribe and unsubscribe methods
of the ManagedBuildManager are the parts of the SCannerInfoProvider mechanism
that is now deprecated and will be removed for the next releases. This
mechanism is not intended to notify about the Managed Build model changes.
You might want to raise a PR in bugzilla
if you think the managed build model change notification mechanism is to be
implemented.
Thank you,
Mikhail
From:
cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Chris Hull
Sent: Friday, September 09, 2005
3:10 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Trouble
listening to changes in the Build model
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