Login | Register
My pages Projects Community openCollabNet

Discussions > users > Plugin "Notifications" between Spring IDE & Subclipse

subclipse
Discussion topic

Hide all messages in topic

All messages in topic

Re: [Subclipse-users] Plugin "Notifications" between Spring IDE & Subclipse

Author znbailey
Full name Zach Bailey
Date 2007-08-29 13:14:39 PDT
Message Hey Mark,

Thanks for your answers. Unfortunately I don't have any more time to
delve deeper into the issue other than my quick 2 minute thought
experiment a la email, but wanted to let you know your insight is
appreciated.

Cheers,
-Zach

Mark Phippard wrote:
> On 8/29/07, Zach Bailey <zach.bailey@hann​onhill.com> wrote:
>> Just a conceptual question here. I have a plugin (SpringIDE 2.0.1 to be
>> exact) that doesn't seem to be playing nice with Subclipse. Let me
>> outline the scenario:
>>
>> 1.) Update my working copy, receive changes to Spring Context XML files
>> as well as Java changes
>> 2.) Project rebuilds due to changes, however Spring files show errors as
>> if they were not "rebuilt" or "revalidated"
>>
>> My question here is how exactly is Eclipse and any Plugins in the
>> environment notified when any given Plugin changes a file. I would
>> imagine a resource change event is raised or something similar.
>
> Yes, exactly.
>
>> *Could this be a case of Subclipse not raising this event properly, or
>> not in the proper order?
>
> It definitely sends the notification. All of Eclipse depends on this.
> You would get out of synch errors from Eclipse when editing files,
> Java would not compile etc. Even Subclipse would not update
> decorators without this happening.
>
>> *Could this be a case of the Spring IDE not listening for this event
>> properly? (obviously this is not really a question for this list, but
>> one has to assume that Spring IDE handles it correctly since the file is
>> revalidated upon edit/save)
>
> I would guess they are listening otherwise they would not mark it as an error.
>
>> Perhaps this issue is simply with the order in which these events are
>> fired, which seems to be effectively out of control of any one plugin.
>
> It is most likely something like this.
>
>> Does Eclipse expose a functionality for a plugin to specify the order in
>> which it would like to receive events? (for example, notify me of Java
>> file changes, then XML file changes) This seems like it would be the
>> responsibility of the plugin to manage.
>
> I do not think Eclipse lets you fine tune this. It basically
> broadcasts them and you have to handle it. I occasionally see
> situations with Java where I need to do a Clean after certain updates
> to get things rebuilt. I suspect it was because of some similar
> problem where it did a build before it had all of the changes.
>

Re: [Subclipse-users] Plugin "Notifications" between Spring IDE &amp; Subclipse

Author Mark Phippard <markphip at gmail dot com>
Full name Mark Phippard <markphip at gmail dot com>
Date 2007-08-29 08:37:46 PDT
Message On 8/29/07, Zach Bailey <zach.bailey@hann​onhill.com> wrote:
> Just a conceptual question here. I have a plugin (SpringIDE 2.0.1 to be
> exact) that doesn't seem to be playing nice with Subclipse. Let me
> outline the scenario:
>
> 1.) Update my working copy, receive changes to Spring Context XML files
> as well as Java changes
> 2.) Project rebuilds due to changes, however Spring files show errors as
> if they were not "rebuilt" or "revalidated"
>
> My question here is how exactly is Eclipse and any Plugins in the
> environment notified when any given Plugin changes a file. I would
> imagine a resource change event is raised or something similar.

Yes, exactly.

> *Could this be a case of Subclipse not raising this event properly, or
> not in the proper order?

It definitely sends the notification. All of Eclipse depends on this.
 You would get out of synch errors from Eclipse when editing files,
Java would not compile etc. Even Subclipse would not update
decorators without this happening.

> *Could this be a case of the Spring IDE not listening for this event
> properly? (obviously this is not really a question for this list, but
> one has to assume that Spring IDE handles it correctly since the file is
> revalidated upon edit/save)

I would guess they are listening otherwise they would not mark it as an error.

> Perhaps this issue is simply with the order in which these events are
> fired, which seems to be effectively out of control of any one plugin.

It is most likely something like this.

> Does Eclipse expose a functionality for a plugin to specify the order in
> which it would like to receive events? (for example, notify me of Java
> file changes, then XML file changes) This seems like it would be the
> responsibility of the plugin to manage.

I do not think Eclipse lets you fine tune this. It basically
broadcasts them and you have to handle it. I occasionally see
situations with Java where I need to do a Clean after certain updates
to get things rebuilt. I suspect it was because of some similar
problem where it did a build before it had all of the changes.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/

Plugin "Notifications" between Spring IDE &amp; Subclipse

Author znbailey
Full name Zach Bailey
Date 2007-08-29 07:54:19 PDT
Message Hi all,

Just a conceptual question here. I have a plugin (SpringIDE 2.0.1 to be
exact) that doesn't seem to be playing nice with Subclipse. Let me
outline the scenario:

1.) Update my working copy, receive changes to Spring Context XML files
as well as Java changes
2.) Project rebuilds due to changes, however Spring files show errors as
if they were not "rebuilt" or "revalidated"

My question here is how exactly is Eclipse and any Plugins in the
environment notified when any given Plugin changes a file. I would
imagine a resource change event is raised or something similar.

*Could this be a case of Subclipse not raising this event properly, or
not in the proper order?

*Could this be a case of the Spring IDE not listening for this event
properly? (obviously this is not really a question for this list, but
one has to assume that Spring IDE handles it correctly since the file is
revalidated upon edit/save)

Perhaps this issue is simply with the order in which these events are
fired, which seems to be effectively out of control of any one plugin.
Does Eclipse expose a functionality for a plugin to specify the order in
which it would like to receive events? (for example, notify me of Java
file changes, then XML file changes) This seems like it would be the
responsibility of the plugin to manage.

Thanks for any insight any plugin authors that read this list could provide.

Cheers,
-Zach
Messages per page: