Community
Participate
Working Groups
1. Bring up the Targets property page for an ant external tool (by right clicking in the external tools view). 2. Deselect the "Run default target" button and move some targets into the active targets list. 3. Hit OK to dismiss the property page. 4. Bring up the page again. The active targets list is empty.
Fixed in AntTargetsGroup and AntTargetsGroupPropertyPage. For some unknown reason, we were calling AntTargetsGroup.setLocation(...) from the property page instead of just setting it from within the group during initialization. Calling setLocation(...) has the side effect of calling updateAvailableTargets(), which was clearing the active targets which had already been calculated. I moved the location setting call into the target group initialization code *before* we restore values from the tool. Also, I renamed updateAvailableTargets() to resetAvailableTargets() to better reflect the nature of that code.
Please verify.
Verified.