Login | Register
My pages Projects Community openCollabNet

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

subclipse
Discussion topic

Back to topic list

Re: [Subclipse-users] Plugin "Notifications" between Spring IDE & 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/

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

Plugin "Notifications" between Spring IDE &amp; Subclipse znbailey Zach Bailey 2007-08-29 07:54:19 PDT
     Re: [Subclipse-users] Plugin "Notifications" between Spring IDE &amp; Subclipse Mark Phippard <markphip at gmail dot com> Mark Phippard <markphip at gmail dot com> 2007-08-29 08:37:46 PDT
         Re: [Subclipse-users] Plugin "Notifications" between Spring IDE &amp; Subclipse znbailey Zach Bailey 2007-08-29 13:14:39 PDT
Messages per page: