PluginConstants.IMG_OVERLAY_WARNING ), IDecoration.BOTTOM_LEFT );
}
}
else if ( element instanceof SchemaWrapper )
{
Schema schema = ( ( SchemaWrapper ) element ).getSchema();
for ( AttributeTypeImpl at : schema.getAttributeTypes() )
{
if ( schemaChecker.hasErrors( at ) )
{
decoration.addOverlay( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_OVERLAY_ERROR ), IDecoration.BOTTOM_LEFT );
return;
}
if ( schemaChecker.hasWarnings( at ) )
{
decoration.addOverlay( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_OVERLAY_WARNING ), IDecoration.BOTTOM_LEFT );
}
}
for ( ObjectClassImpl oc : schema.getObjectClasses() )
{
if ( schemaChecker.hasErrors( oc ) )
{
decoration.addOverlay( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
PluginConstants.IMG_OVERLAY_ERROR ), IDecoration.BOTTOM_LEFT );