[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: faceted project events
|
- From: Konstantin Komissarchik <kosta@xxxxxxx>
- Date: Fri, 26 Oct 2007 13:12:44 -0700
- Newsgroups: eclipse.webtools
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.13 (Windows/20070809)
Hi Brian,
The fact that you are seeing a PROJECT_MODIFIED event on close/open is
actually a bug, which has been fixed in the 2.0.x and newer code lines.
There is an open enhancement request to provide a PROJECT_INITIALIZED
event that would cover opened/imported cases.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198165
I haven't thought about providing events to cover the closed/deleted
case, but it may make sense to do. Please add your thoughts on this to
the above enhancement request. Note that PROJECT_INITIALIZED event will
not _exactly_ represent the open/import case. The reason is that the
event will only be generated when some code requests IFacetedProject
metadata for that project. We don't pro-actively scan for new projects
and initialize them for performance reasons. This distinction may not
matter for your situations, though.
Note that the general answer is that the faceted project events are not
meant to replace the facilities provided by the platform's resource
change listeners. Your co-worker Paul Fullbright and I had a discussion
on this scenario some months ago. He should be able to share with your
some code that uses the resource change listeners to handle this
scenario in the meantime.
Let me know if you have further questions.
- Konstantin
Brian Vosburgh wrote:
Our FacetedProjectListener receives a PROJECT_MODIFIED event whenever a
project
is closed or opened. Unfortunately, the listener does not receive any
event at all
whenever a project is deleted or imported from a previously existed
project.
Is there a reason for this? Does it make sense for us to request events for
those situations? If we received events for these situations it would
simplify
the way we set up and tear down the things related to our "facet".
Thanks.
Brian Vosburgh