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);
}
}
}