Delete a project from project explorer [message #329441] |
Tue, 24 June 2008 10:55  |
Eclipse User |
|
|
|
Originally posted by: gaurav_tas.rediffmail.com
hello all,
i am using eclipse 3.3, I am working on project explorer functionality,
Currently what i am doing is when i create a project, and select the
project i populate the resources of project in a tree, but i am not able
to get events for add a new project or delete an existing project.
Is it possible that i catch the events of deletion and addition of
Iprojects. If yes what is the way of doing this.
Please give me some idea.
Thanks in advance
Regards
Gaurav
|
|
|
|
|
Re: Delete a project from project explorer [message #329459 is a reply to message #329454] |
Wed, 25 June 2008 04:53  |
Eclipse User |
|
|
|
The IResourceChangeEvent.getResource() or
IResourceChangeEvent.getResourceDelta() should help
To iterate thru the resource delta and find the resources, you may have
to implement IResourceDeltaVisitor
- Prakash
www.eclipse-tips.com
gaurav bhargav wrote:
> thanks prakash,
> but i already add resourcelistener, and when i add or delete its fire
> but i can not identify with this which file is removed or added.
> Is there any way so that i can identify which file is added or removed
> from iproject.
>
>
> Thanks in advance.
> Regards
> gaurav
>
|
|
|
Powered by
FUDForum. Page generated in 0.04795 seconds