[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Reacting to project option changes

Hi,

I'm trying to do the same here, but the getDelta() method of CProjectDescriptionEvent seems to always return null, even though I've changed several build settings and clicked apply. I'm wondering if this is a bug or I'm just not using it properly?

Cheers,
Mike

On 6 July 2009 14:11, Christian W. Damus <cdamus@xxxxxxx> wrote:
Hi, Volodya,

I'm glad it works for you!  You are correct that the the project-description delta from the workspace notifies of changes to a different file:  it's the .project file.  The C Project Description file is .cproject.  Happily, there are APIs that let us not not worry about which file is which  ;-)

Cheers,

Christian


On Mon, 2009-07-06 at 17:03 +0400, Vladimir Prus wrote:
On Monday 06 July 2009 Christian W. Damus wrote:

Hi Christian,

> You can attach an ICProjectDescriptionListener to the CoreModel, to be
> notified whenever a project's description changes.  All of the managed
> build settings are stored in the project description.

This appears to be working fine for what I want. I previously
used resource listener, trying to catch deltas with IResourceDelta.DESCRIPTION
flag on project, but presumably that's some different description.

Thanks a lot!

- Volodya
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Christian W. Damus
Software Developer, IDE Team
QNX Software Systems

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev