} catch (CoreException e) {
throw e;
}
String fileNameWithoutExtension = path.substring(path.lastIndexOf('.') + 1);
String fileNameWithExtension = fileNameWithoutExtension + RutaEngine.SCRIPT_FILE_EXTENSION;
ISourceModule sourceModule = null;
boolean found = false;
for (IFolder eachFolder : scriptFolders) {
IScriptProject sp = DLTKCore.create(eachFolder.getProject());
IScriptFolder[] scriptFolders2 = sp.getScriptFolders();
for (IScriptFolder iScriptFolder : scriptFolders2) {
sourceModule = iScriptFolder.getSourceModule(fileNameWithExtension);
if (sourceModule.exists() && sourceModule.getResource() != null
&& sourceModule.getResource().exists()) {
found = true;
break;
}
if (found)
break;
}
}
IModelElement elements[] = null;
namespaceStack.push(fileNameWithoutExtension);
try {
elements = sourceModule.getChildren();
for (int i = 0; i < elements.length; i++) {
IModelElement modelElement = elements[i];
int elementType = modelElement.getElementType();
if (elementType == type) {
if (elementType == IModelElement.METHOD) {