| Summary: | [target] Edit IU Bundle Container Page problems | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Curtis Windatt <curtis.windatt.public> |
| Component: | UI | Assignee: | Curtis Windatt <curtis.windatt.public> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | susan |
| Version: | 3.5 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Curtis Windatt
Fixed (1) Fixed (2) along with a bunch of broken NL'd messages. Susan, I am having real trouble trying to get the available IU group to play nice. What I want is for the view to open up with certain IUs already checked. I would like the first of these IUs to be selected and revealed. I would like the categories (if they are turned on by the user) to be collapsed.
If you have any suggestions that would be awesome.
Below is some of the code I've been trying to use. It does check the right IUs, and if categories are not being shown, the first IU is selected and revealed. However, if there are categories, they are all expanded and the select/reveal doesn't work properly.
// Only able to check items if we don't have categories
fQueryContext.setViewType(IUViewQueryContext.AVAILABLE_VIEW_FLAT);
fAvailableIUGroup.updateAvailableViewState();
fAvailableIUGroup.setChecked(fEditContainer.getInstallableUnits(fProfile));
// Make sure view is back in proper state
updateViewContext();
IInstallableUnit[] units = fAvailableIUGroup.getCheckedLeafIUs();
if (units.length > 0) {
fAvailableIUGroup.getCheckboxTreeViewer().setSelection(new StructuredSelection(units[0]), true);
}
fAvailableIUGroup.getCheckboxTreeViewer().collapseAll();
The important issues on this bug have been fixed. Won't worry about this for 3.5. No plans to fix the remaining item and the behaviour isn't that bad. No need to have an extra bug floating around. Close as WONTFIX. |