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

Bug 185170

Summary: [working sets] New wizards started off working sets have wrong init values
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Benno Baumgartner <benno.baumgartner>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 Flags: martinae: review+
Version: 3.3   
Target Milestone: 3.3 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix none

Description Dani Megert CLA 2007-05-02 12:43:48 EDT
I20070502-0010.

If a working set is selected then the new wizards (e.g. New Source Folder) are initialized with a random (I guess the first project in Java Model) project. Sometimes this project is not even in the selected working set.
Comment 1 Benno Baumgartner CLA 2007-05-11 06:34:45 EDT
I've tested all SDK wizards, only the New Source Folder and the New JUnit Test Suite wizard (opens with error status) have problems.
Comment 2 Benno Baumgartner CLA 2007-05-11 10:40:09 EDT
Created attachment 66857 [details]
fix
Comment 3 Martin Aeschlimann CLA 2007-05-15 10:05:00 EDT
It doesn't seem that the patch fixes anything
- change package explorer to working set mode 
- select a working set
- invoke 'new source folder' from the context menu
  all fields in the wizard are empty

I think for most wizards this can be fixed in
org.eclipse.jdt.ui.wizards.NewContainerWizardPage.getInitialJavaElement(IStructuredSelection)
Comment 4 Martin Aeschlimann CLA 2007-05-15 10:28:43 EDT
I misunderstood. Patch is good.
Comment 5 Benno Baumgartner CLA 2007-05-15 10:32:32 EDT
fixed > I20070515-0010
Comment 6 Martin Aeschlimann CLA 2007-05-18 11:44:55 EDT
verified in 20070517-1700