Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Delete a project from project explorer
Delete a project from project explorer [message #329441] Tue, 24 June 2008 14:55 Go to next message
Eclipse UserFriend
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 #329444 is a reply to message #329441] Tue, 24 June 2008 16:36 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
You have to implement IResourceChangeListener and add it to IWorkspace

- Prakash

www.eclipse-tips.com


gaurav bhargav wrote:
> 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 #329454 is a reply to message #329444] Wed, 25 June 2008 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gaurav_tas.rediffmail.com

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
Re: Delete a project from project explorer [message #329459 is a reply to message #329454] Wed, 25 June 2008 08:53 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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
>
Previous Topic:Unhandled event loop exception
Next Topic:decorator on tableviewer ...
Goto Forum:
  


Current Time: Sat Aug 10 09:15:58 GMT 2024

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

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

Back to the top