|
|
Re: IResourceChangeListener usage [message #1073467 is a reply to message #1073112] |
Wed, 24 July 2013 21:35 |
Camilo Bernal Messages: 7 Registered: December 2012 |
Junior Member |
|
|
Ed Merks wrote on Wed, 24 July 2013 02:56Camilo,
Comments below.
On 23/07/2013 8:52 PM, Camilo Bernal wrote:
> Hi,
>
> I'm attempting to use the IResourceChangeListener interface to find
> out if a specific project(C/C++) has been built, and consequently
> execute a clean up action. At the moment I've registered the listener
> for events of type IResourceChangeEvent.POST_BUILD. The problem I'm
> facing is that the listener is being notified for more then just
> post-build events; it's getting notified for running/profiling projects.
Is that influenced by Window->Preference->Run/Debug->Launching->Build
(if required) before launching?
> So my question is if there is a way to differentiate project
> post-build events that are triggered from manual/automatic builds.
> Also, what sort of events correspond to the
> IResourceChangeEvent.POST_BUILD type?
What you're describing sounds more like something a builder should do.
Inactivating the global 'Build before launching' preference does not seem to change the described behaviour of the launchers. I am now able to filter post-build events by project, but I still cannot pinpoint the nature of the build. Regarding the builder, this plug-in is using CDT's build system. If you could provide some pointers regarding how to go about modifying/extending the builder, I'd more than willing to try them out.
|
|
|
Re: IResourceChangeListener usage [message #1073614 is a reply to message #1073467] |
Thu, 25 July 2013 07:17 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Camilo,
I'm not sure you need to extend their builder. You likely could just
add a builder. http://www.vogella.com/articles/EclipseBuilder/article.html
On 24/07/2013 11:35 PM, Camilo Bernal wrote:
> Ed Merks wrote on Wed, 24 July 2013 02:56
>> Camilo,
>>
>> Comments below.
>>
>> On 23/07/2013 8:52 PM, Camilo Bernal wrote:
>> > Hi,
>> >
>> > I'm attempting to use the IResourceChangeListener interface to find
>> > out if a specific project(C/C++) has been built, and consequently >
>> execute a clean up action. At the moment I've registered the listener
>> > for events of type IResourceChangeEvent.POST_BUILD. The problem I'm
>> > facing is that the listener is being notified for more then just >
>> post-build events; it's getting notified for running/profiling
>> projects. Is that influenced by
>> Window->Preference->Run/Debug->Launching->Build (if required) before
>> launching?
>> > So my question is if there is a way to differentiate project >
>> post-build events that are triggered from manual/automatic builds. >
>> Also, what sort of events correspond to the >
>> IResourceChangeEvent.POST_BUILD type?
>> What you're describing sounds more like something a builder should do.
>
>
> Inactivating the global 'Build before launching' preference does not
> seem to change the described behaviour of the launchers. I am now able
> to filter post-build events by project, but I still cannot pinpoint
> the nature of the build. Regarding the builder, this plug-in is using
> CDT's build system. If you could provide some pointers regarding how
> to go about modifying/extending the builder, I'd more than willing to
> try them out.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02775 seconds