.project file changed listener [message #331760] |
Fri, 19 September 2008 20:23 |
Eclipse User |
|
|
|
Originally posted by: history222.ymail.com
For my plugin i need a listener for changes made to the project
description in the .project file.
Can somebody give me a hint?
Thanks
-- Harald
|
|
|
Re: .project file changed listener [message #331766 is a reply to message #331760] |
Sat, 20 September 2008 06:32 |
Eclipse User |
|
|
|
Originally posted by: subs._nospam_consertum.com
AFAIK, there isn't a listener specifically for that file. WWhat you need
is an IResourceChangeListener which will tell you about EVERY resource
change.
Harald Kästel-Baumgartner wrote:
> For my plugin i need a listener for changes made to the project
> description in the .project file.
>
> Can somebody give me a hint?
>
> Thanks
> -- Harald
>
--
Derek
|
|
|
|
Re: .project file changed listener [message #331790 is a reply to message #331786] |
Mon, 22 September 2008 15:47 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Robert wrote:
> Derek schrieb:
>> AFAIK, there isn't a listener specifically for that file. WWhat you
>> need is an IResourceChangeListener which will tell you about EVERY
>> resource change.
>
> Is the definition of "EVERY resource" equal to "resources visible in the
> Resource perspective"? If yes then this will probably not work as the
> .project file is not visible in the resource perspective.
1) Yes, IResourceChangeListener will get notified of any changes to
resources in the workspace. See this article for help writing your
listener so that it is efficient and effective:
http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html
2) I don't know what View you're looking at, but the Navigator view
(which is the "default" one that Resource perspective opens with) does
indeed show .project files.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds