Community
Participate
Working Groups
Build ID: S-3.0M6-20080404114343 Steps To Reproduce: 1. File > Import 2. Select XML > Import XML Catalog 3. Click Next 4. Don't select anything in the tree (only projects with XML files in them will be in the tree). 5. Observe the finish button enablement More information: The Finish button is always enabled regardless of the selection type. For example, selecting a project or folder or nothing at all has no effect. In previous versions (2.0.*), it appears that the OK button in the Import dialog was only enabled when an XML file was selected. The dialog was converted to be a wizard page for 3.0. The enablement logic from the previous version should be reused.
Gabriel, please try to address this for M7.
Created attachment 96929 [details] Patch This patch resolves the issue by ensuring the wizard can only be finished if a file has been selected.
Thank you Gabriel. The fix is committed to head. Nitin will release later on tonight. I know that code's been there for a while but should there not be an associated removeSelectionChangedTreeListener to pair with org.eclipse.wst.common.ui.internal.viewers.SelectSingleFileView.addSelectionChangedTreeListener(ISelectionChangedListener)? Perhaps chat with Keith about it.
(In reply to comment #3) > Thank you Gabriel. The fix is committed to head. Nitin will release later on > tonight. > I know that code's been there for a while but should there not be an associated > removeSelectionChangedTreeListener to pair with > org.eclipse.wst.common.ui.internal.viewers.SelectSingleFileView.addSelectionChangedTreeListener(ISelectionChangedListener)? > Perhaps chat with Keith about it. AddListener and removeListener are not supposed to be paired. Listeners are garbage collected when a control is disposed. Explicitly removing a listener is only necesary in very specific scenarios i.e. shared widgets. I talked to Keith about this, the places where he removes listeners are special cases as the one described: shared controls in the properties view of the XSD Editor.
The patch appears to have been released.
Verified with I20080423080648. Closing.
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword.