Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Closing the Project Programatically
Closing the Project Programatically [message #75875] Tue, 15 July 2003 01:18 Go to next message
Eclipse UserFriend
Hi,

I am just trying to listen the ResourceChangedEvent and on closing the
project i try to reset some persistent properties and then try to close
the project by
IProject.close(new NullProgressMonitor())

org.eclipse.core.internal.resources.ResourceException: The resource tree
is locked for modifications.
at
org.eclipse.core.internal.resources.Workspace.beginOperation (Workspace.java:144)
at org.eclipse.core.internal.resources.Project.close(Project.ja va:154)
Re: Closing the Project Programatically [message #75952 is a reply to message #75875] Tue, 15 July 2003 04:08 Go to previous message
Eclipse UserFriend
You'll get a better response on the eclipse.platform newsgroup, but I think
you're trying to modify the resource tree (the close operation is a tree
modification) during a POST_CHANGE notification, which is forbidden. You
should do this in a PRE_AUTO_BUILD or POST_AUTO_BUILD notification.

Jerome

"Easwar" <easwaran2180@yahoo.co.in> wrote in message
news:bf02r0$mai$1@eclipse.org...
> Hi,
>
> I am just trying to listen the ResourceChangedEvent and on closing the
> project i try to reset some persistent properties and then try to close
> the project by
> IProject.close(new NullProgressMonitor())
>
> org.eclipse.core.internal.resources.ResourceException: The resource tree
> is locked for modifications.
> at
>
org.eclipse.core.internal.resources.Workspace.beginOperation (Workspace.java:
144)
> at org.eclipse.core.internal.resources.Project.close(Project.ja va:154)
>
Previous Topic:Re: Get ITypeBinding by qualified class name?
Next Topic:How can I turn on auto-complete feature
Goto Forum:
  


Current Time: Fri May 02 02:16:54 EDT 2025

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

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

Back to the top