{
updateGroupingState(GroupingMethod.valueOf(prefStore.getString(key)));
}
});
final SharedScrolledComposite scroller = new CScrolledComposite(parent,
SWT.H_SCROLL | SWT.V_SCROLL);
final Composite spacer = GUIFactory.createSpacer(scroller);
scroller.setContent(spacer);
scroller.setExpandHorizontal(true);
scroller.setExpandVertical(false);
final GroupingMethod defaultGrouping = GroupingMethod.valueOf(prefStore
.getString(key));
attributeEditors = new AttributeGroups(spacer, editor.getAlgorithmDescriptor(),
defaultGrouping, null, Collections.<String, Object> emptyMap());
attributeEditors.setLayoutData(GridDataFactory.fillDefaults().grab(true, true)
.create());
attributeEditors.setAttribute(AttributeList.ENABLE_VALIDATION_OVERLAYS, true);
restoreGlobalState();
this.mainControl = scroller;
scroller.reflow(true);
updateGroupingState(defaultGrouping);
registerListeners();
}