public void refreshState(IStructuredSelection selection) {
Map<Object, Integer> wrappingStyleMap= new HashMap<>();
Map<Object, Integer> indentStyleMap= new HashMap<>();
Map<Object, Integer> forceWrappingMap= new HashMap<>();
fRequiresRelayout= false;
showSpecificControls(false);
fElements.clear();
evaluateElements(selection.iterator());
evaluateMaps(wrappingStyleMap, indentStyleMap, forceWrappingMap);
setPreviewText(getPreviewText());
refreshControls(wrappingStyleMap, indentStyleMap, forceWrappingMap);
}