* name.
* @param qname A fully qualified class name.
*/
void setClassReference(FlexProject project, String qname)
{
ASProjectScope projectScope = (ASProjectScope)project.getScope();
IDefinition definition = projectScope.findDefinitionByName(qname);
// TODO This method is getting called by MXML tree-building
// with an interface qname if there is a property whose type is an interface.
// Until databinding is implemented, we need to protect against this.
if (definition instanceof IClassDefinition)
setClassReference(project, (IClassDefinition)definition);