Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » .project file changed listener
.project file changed listener [message #331760] Fri, 19 September 2008 20:23 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #331786 is a reply to message #331766] Mon, 22 September 2008 14:50 Go to previous messageGo to next message
Robert K. is currently offline Robert K.Friend
Messages: 14
Registered: July 2009
Junior Member
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.

Robert
Re: .project file changed listener [message #331790 is a reply to message #331786] Mon, 22 September 2008 15:47 Go to previous message
Eclipse UserFriend
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
Previous Topic:Debugger Plug-in: Extending Variables View - Advice Please
Next Topic:Posting eclipse zips on maven repository
Goto Forum:
  


Current Time: Fri Sep 27 03:59:38 GMT 2024

Powered by FUDForum. Page generated in 0.04054 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top