Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Can I program to delete project in workspace without showing the confirm dialog?
Can I program to delete project in workspace without showing the confirm dialog? [message #324043] Wed, 16 January 2008 22:36 Go to next message
Eclipse UserFriend
Hi all,

My project has a working directory, when user set the dir , I will
delete projects in the workspace and
create a project with the dir name and then import the dir's files into the
project.

When I delete project, the confirm dialog appears.
As user no need to see this process , is there a way to not show this
dialog?

Or is there better way to implement this function?

Thanks .


Anthony Lee
Re: Can I program to delete project in workspace without showing the confirm dialog? [message #324047 is a reply to message #324043] Thu, 17 January 2008 01:11 Go to previous message
Eclipse UserFriend
Are you using IResource.delete(true, null)? That should work without
popping up a dialog. You can find the project resource by:

IProject project =
ResourcesPlugin.getWorkspace().getRoot().getProject("projectName ");


Anthony Lee wrote:
> Hi all,
>
> My project has a working directory, when user set the dir , I will
> delete projects in the workspace and
> create a project with the dir name and then import the dir's files into the
> project.
>
> When I delete project, the confirm dialog appears.
> As user no need to see this process , is there a way to not show this
> dialog?
>
> Or is there better way to implement this function?
>
> Thanks .
>
>
> Anthony Lee
>
>
Previous Topic:Title Image in Section
Next Topic:Libraries vanish
Goto Forum:
  


Current Time: Sat Jun 21 12:22:38 EDT 2025

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

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

Back to the top