Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Validate deletion/closing of a Project.
Validate deletion/closing of a Project. [message #197567] Thu, 03 March 2005 11:12 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #197640 is a reply to message #197617] Fri, 04 March 2005 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

There is no way to prevent the deletion. The notifications do not allow
the veto capability.

--
Thanks,
Rich Kulp
Re: Validate deletion/closing of a Project. [message #197648 is a reply to message #197640] Fri, 04 March 2005 11:01 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:classpath woes: plugin references another project - how to specify?
Next Topic:Ctrl + hover stopped working for hyperlinking java source
Goto Forum:
  


Current Time: Sun May 11 01:31:47 EDT 2025

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

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

Back to the top