}
@Override
protected ISyntaxTreeRequestResult handleSyntaxTreeRequest() throws InterruptedException
{
IFileScopeRequestResult fileResult = getFileScopeRequest().get();
startProfile(Operation.GET_SYNTAX_TREE);
try
{
List<ICompilerProblem> noProblems = Collections.emptyList();
boolean isFlex = false;
CompilerProject project = getProject();
if ((project instanceof FlexProject) && ((FlexProject)project).isFlex())
{
isFlex = true;
}
// Don't need to collect resource bundles for non-flex projects.
if (isFlex)
{
//Find all the resource bundles required for this script
for (IDefinition definition : fileResult.getExternallyVisibleDefinitions())
{
for(IMetaTag rbTag : definition.getMetaTagsByName(IMetaAttributeConstants.ATTRIBUTE_RESOURCEBUNDLE))
{
resourceBundles.add(rbTag.getAllAttributes()[0].getValue());
}