try
{
FXGSyntaxTreeRequestResult syntaxTreeResult = (FXGSyntaxTreeRequestResult)getSyntaxTreeRequest().get();
IFXGNode tree = syntaxTreeResult.getRootNode();
FlexFXG2SWFTranscoder transcoder = new FlexFXG2SWFTranscoder(getProject());
transcoder.setResourceResolver(new FXGFileResolver(FilenameUtils.getFullPath(getRootFileSpecification().getPath())));
symbolClass = transcoder.transcode(tree,
Multiname.getPackageNameForQName(qname), Multiname.getBaseNameForQName(qname), extraTags, problems);
//Add dependencies to the classes required by the FXG processed by this compilation unit
for (ITypeDefinition definition : transcoder.getDependencies())
{
getProject().addDependency(this, projectScope.getCompilationUnitForDefinition(definition),
DependencyType.EXPRESSION, definition.getQualifiedName());
}