this.packageName = ((RutaPackageDeclaration) s).getName();
return false;
}
if (s instanceof RutaImportTypesStatement) {
RutaImportTypesStatement stmt = (RutaImportTypesStatement) s;
SimpleReference tsExpr = (SimpleReference) stmt.getExpression();
Token typeToken = stmt.getTypeToken();
Token pkgToken = stmt.getPkgToken();
Token aliasToken = stmt.getAliasToken();
if (tsExpr != null) {
String localPath = tsExpr.getName();
processCompleteTypeSystemImport(tsExpr, localPath, typeToken, pkgToken, aliasToken);
} else {
// TODO package import not supported in Workbench
}
} else if (s instanceof RutaImportStatement) {
// handle type system imports
if (((RutaImportStatement) s).getType() == RutaStatementConstants.S_IMPORT_TYPESYSTEM) {
SimpleReference sRef = (SimpleReference) ((RutaImportStatement) s).getExpression();
String localPath = sRef.getName();
processCompleteTypeSystemImport(sRef, localPath);
return false;
}
// handle script-imports
if (((RutaImportStatement) s).getType() == RutaStatementConstants.S_IMPORT_SCRIPT) {
SimpleReference sRef = (SimpleReference) ((RutaImportStatement) s).getExpression();
String localPath = sRef.getName();
// HOTFIX Peter add also the imported types of the imported type system!
try {
URL url = null;
IFile file = RutaCheckerUtils.checkScriptImport(localPath,