.getAttribute(IConstants.XAML_DATA_CONTEXT);
if (dataContextAttribute != null) {
IProperty property = metaclass
.findProperty(IConstants.XAML_DATA_CONTEXT);
Widget composite = (Widget) UserData.getWidget(targetObject);
DocumentObject documentObject = dataContextAttribute
.getChildren()[0];
if (IConstants.XAML_STATICRESOURCES.equals(documentObject
.getName())
|| IConstants.XAML_DYNAMICRESOURCES
.equals(documentObject.getName())) {
String key = documentObject.getContent();
property.setValue(composite, new StaticResourceBinding(
composite, key));
} else if (IConstants.XAML_BINDING.equals(documentObject
.getName())) {
Object object = doCreate(targetObject,
(Element) documentObject, null, EMPTY_MAP);
property.setValue(composite, object);
} else {
LoggerManager.log(new UnsupportedOperationException(
documentObject.getName()));
}
}
}
HashSet<String> done = new HashSet<String>();