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

Bug 346348

Summary: selecting an EAR and creating a module, does not pre-fills the wizard with the EAR Name.
Product: [WebTools] WTP Java EE Tools Reporter: Israel Gomez Delgado <israelgd>
Component: jst.j2eeAssignee: Israel Gomez Delgado <israelgd>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: ccc, israelgd, shr31223
Version: unspecifiedFlags: cbridgha: review+
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
This Patch pre-sets the selected EAR name in the wizard
none
Corrected Patch ccc: iplog+

Description Israel Gomez Delgado CLA 2011-05-18 17:44:27 EDT
Build Identifier: WTP 3.2.4

creating a module (as DWP or EJB) when you select an EAR. The ear that is specified by default in the wizard is not the ear that was selected, when you have EARs of different versions in your workspace, the EAR with the higher version is the one specified.

Reproducible: Always

Steps to Reproduce:
1.Create an EAR of version 1.4.
1.Create an EAR of version 5.
2.Select the EAR 1.4 and create a module (as DWP or EJB) when you select an EAR. The ear that is specified by default in the wizard is not the EAR that was selected.
Comment 1 Israel Gomez Delgado CLA 2011-05-18 18:01:22 EDT
Created attachment 196053 [details]
This Patch pre-sets the selected EAR name in the wizard
Comment 2 Chuck Bridgham CLA 2011-05-19 09:28:24 EDT
approve
Comment 3 Chuck Bridgham CLA 2011-05-19 10:13:16 EDT
Isreal - Roberto helped me review these changes.. and caught a couple issues

When setting a property, normally it is not necessary to add a property change event because this is called as part of the set....

+		    j2eeModel.setProperty(IJ2EEModuleFacetInstallDataModelProperties.EAR_PROJECT_NAME, earName);
+		    j2eeModel.notifyPropertyChange(IJ2EEModuleFacetInstallDataModelProperties.EAR_PROJECT_NAME, IDataModel.VALID_VALUES_CHG);



And...  can you fix the spelling error:   "getSlection()"
Comment 4 Israel Gomez Delgado CLA 2011-05-19 10:46:04 EDT
Created attachment 196118 [details]
Corrected Patch
Comment 5 Chuck Bridgham CLA 2011-06-10 10:55:57 EDT
approved
Comment 6 Roberto Sanchez Herrera CLA 2011-06-13 15:57:51 EDT
The second, corrected patch was committed to R3_2_maintenance for WTP 3.2.5. I will keep this defect open to until branch for 3.3.1 is available to commit to 3.3.1 and HEAD
Comment 7 Roberto Sanchez Herrera CLA 2011-06-23 11:20:57 EDT
Committed to HEAD. That will cover WTP 3.3.1 and 3.4