Iterator categories = structuredSelection.iterator();
while (categories.hasNext()) {
StyleCategory category = (StyleCategory) categories.next();
Iterator it = category.getProperties().iterator();
while (it.hasNext()) {
StyleProperty details = (StyleProperty) it.next();
PropertyIdentifier identifier = ThemeModel.
getPropertyIdentifierForStyleProperty(details);
Proxy propertyProxy =
stylePropertiesProxy.getPropertyProxy(identifier);
PropertyValue value =
ThemeFactory.getDefaultInstance().
createPropertyValue(
details, THEME_FACTORY.getInherit());
propertyProxy.setModelObject(value);
}
}
stylePropertiesProxyReceiver.setProxy(stylePropertiesProxy);
}
}
};
priorityAction = new ResourceAction(
ThemesMessages.getResourceBundle(),
RESOURCE_PREFIX + "allToImportant.") {
// Javadoc inherited
public void run() {
ISelection selection = categoryTreeViewer.getSelection();
if (selection instanceof IStructuredSelection) {
BeanProxy stylePropertiesProxy =
(BeanProxy) stylePropertiesProxyProvider.getProxy();
IStructuredSelection structuredSelection =
(IStructuredSelection) selection;
Iterator categories = structuredSelection.iterator();
while (categories.hasNext()) {
StyleCategory category = (StyleCategory) categories.next();
Iterator it = category.getProperties().iterator();
while (it.hasNext()) {
StyleProperty details = (StyleProperty) it.next();
PropertyIdentifier identifier = ThemeModel.
getPropertyIdentifierForStyleProperty(details);
Proxy propertyProxy =
stylePropertiesProxy.getPropertyProxy(identifier);
PropertyValue value = (PropertyValue) propertyProxy.getModelObject();