Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 150625

Summary: [build path] Cancel project creation ask to delete launch configurations
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.2   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benno Baumgartner CLA 2006-07-14 05:05:26 EDT
I20060711-1100

1. Create new Java Project 'P01'
2. Add
package pack;
public class Clazz {
	public static void main(String[] args) {}
}
to project
3. Run As Java Application
4. Select P01>Delete
5. Also Delete Content
6. Don't delete the launch config!
7. New>Project>Java Project>'P01'>Next>Cancel
Is:
 Dialog ask if you want to delete the launch configs as well.
Should:
 Well, it's more like a feature then a bug... But it's very surprising. It should not ask and not delete it.
Comment 1 Martin Aeschlimann CLA 2006-07-17 06:23:05 EDT
Already step 6, the prompt in the middle of the delete operation, looks like a bug. 
For example, a cancel on that dialog should cancel the whole delete.
 
Comment 2 Michael Rennie CLA 2006-07-18 09:54:33 EDT
this one might be tricky...it seems that when you click 'Next' the project wizard is actually creating the project in workspace, so when you click 'Cancel' you get prompted (as expected) because the project is then deleted from the workspace (and we listen for resource deltas from deleted projects).

It would seem to me that the wizard should be an atomic operation, in that the project is not created until 'Finish' is pressed.

Any thoughts Martin?
Comment 3 Michael Rennie CLA 2007-02-20 11:47:10 EST
Martin or Benno, any idea how we might be able to prevent this?

From what I can tell there is no way for us to tell why the project is being deleted, just that it is being deleted.
Comment 4 Benno Baumgartner CLA 2007-02-20 12:29:42 EST
(In reply to comment #3)
> Martin or Benno, any idea how we might be able to prevent this?
> 
> From what I can tell there is no way for us to tell why the project is being
> deleted, just that it is being deleted.
> 

I can not reproduce this anymore in I20070213-0907 can you? No dialog does ask me to delete the launch config. I never understood why you ask to delete the launch config, why not just delete it without asking, or always keep it?

Don't create the project until finish may be extremely difficult to implement for us.
Comment 5 Michael Rennie CLA 2007-02-20 17:57:28 EST
fixed in HEAD to remove the option to be prompted.

now the only options are to either always have them deleted (the default) or to not have them deleted.
Comment 6 Michael Rennie CLA 2007-02-20 17:58:42 EST
please verify Darin W
Comment 7 Darin Wright CLA 2007-03-12 09:11:50 EDT
Verified.