Validate deletion/closing of a Project. [message #197567] |
Thu, 03 March 2005 11:12  |
Eclipse User |
|
|
|
Originally posted by: vikram.naik.patni.com
Hello,
I am trying to validate, the closing or deletion of a project using
IResourceChangeListener and registering them using the earlyStartUp
extension.
I get the resouceChangedEvent notification, but cant control the event !
I mean, under some condition I dont want to allow the user to be able to
delete a project or close it. Even if I throw OperationCanceledException
from resourceChanged method, the runtime goes ahead and closes/deletes
the project.
Please advice.
Thanks,
Vikram.
|
|
|
Re: Validate deletion/closing of a Project. [message #197617 is a reply to message #197567] |
Fri, 04 March 2005 02:58   |
Eclipse User |
|
|
|
Originally posted by: vikram.naik.patni.com
Hello,
Didn't get any response, so rephrasing my query. Is it possible to
validate closing/deletion of an resource of type IProject ?
TIA,
Vikram.
Vikram Naik wrote:
> Hello,
>
> I am trying to validate, the closing or deletion of a project using
> IResourceChangeListener and registering them using the earlyStartUp
> extension.
>
> I get the resouceChangedEvent notification, but cant control the event !
> I mean, under some condition I dont want to allow the user to be able to
> delete a project or close it. Even if I throw OperationCanceledException
> from resourceChanged method, the runtime goes ahead and closes/deletes
> the project.
>
> Please advice.
>
> Thanks,
> Vikram.
|
|
|
|
Re: Validate deletion/closing of a Project. [message #197648 is a reply to message #197640] |
Fri, 04 March 2005 11:01  |
Eclipse User |
|
|
|
Originally posted by: vikram.naik.patni.com
Thanks for your reply. Are there any plans to provide such capability?
Can a feature request be raised for this ? or there is some thinking
behind not providing such hooks.
Vikram.
Rich Kulp wrote:
> There is no way to prevent the deletion. The notifications do not allow
> the veto capability.
>
|
|
|
Powered by
FUDForum. Page generated in 0.12000 seconds