Can I program to delete project in workspace without showing the confirm dialog? [message #324043] |
Wed, 16 January 2008 22:36  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06707 seconds