.getArray(STORE_EXPANDED_CATEGORIES_ID);
if (expandedCategoryIds == null) {
return;
}
ViewRegistry reg = (ViewRegistry) viewReg;
ArrayList categoriesToExpand = new ArrayList(expandedCategoryIds.length);
for (int i = 0; i < expandedCategoryIds.length; i++) {
IViewCategory category = reg.findCategory(expandedCategoryIds[i]);
if (category != null) {
categoriesToExpand.add(category);
}
}
if (!categoriesToExpand.isEmpty()) {
filteredTree.getViewer().setExpandedElements(categoriesToExpand.toArray());
}
String selectedViewId = settings.get(STORE_SELECTED_VIEW_ID);
if (selectedViewId != null) {
IViewDescriptor viewDesc = reg.find(selectedViewId);
if (viewDesc != null) {
filteredTree.getViewer().setSelection(new StructuredSelection(viewDesc), true);
}
}
}