| Summary: | [target] Improve check state handling on content tab when plug-ins are missing | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | UI | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M6 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | 346216 | ||
| Bug Blocks: | |||
|
Description
Curtis Windatt
In addition, unchecked missing bundles are not added to the content tab when opened. The selected count does include them, and if the group by setting is changed they are visible. If the missing plug-ins is reselected (vis group by or by removing/adding the location), they are visible again. 1) Create target platform with missing bundle (eg. bad bundles.info) See that the missing bundle is listed on content tab 2) Deselect the missing bundle 3) Apply a filter or hit ok and reopen See that the missing bundle is no longer listed on content tab I will try to fix this smaller issue in M6. Fixed in master There were two problems here, 1) The working copy used to edit a target did not clear the include list before copying. This by itself is not a problem as we load information from the other target definition. However, as we use the same code we use to read from a file stream, we have a check for previous entries in case the file lists multiple includeBundles elements. 2) Each time filtering, refresh, etc. happens, the invalid bundles are created as new instances. Since the instances fail the equality check, the filtered checkbox tree kept on adding additional entries to its checkstate. Fixed by adding better equals checks in InvalidTargetBundle and using a set in the contents group. |