From 04fb46c3c1192dd13d74f6d2234095bfc460dfa1 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 6 Jan 2009 22:05:49 +0000 Subject: [PATCH] 258206: package declaration support in the model --- ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java index 59e099229..6b5c816f7 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java @@ -61,7 +61,9 @@ class StubFileGenerator { IProgramElement fileNode = model.getHierarchy().findElementForSourceFile(inputFile.getAbsolutePath()); for (Iterator it = fileNode.getChildren().iterator(); it.hasNext();) { IProgramElement node = (IProgramElement) it.next(); - if (node.getKind().equals(IProgramElement.Kind.IMPORT_REFERENCE)) { + if (node.getKind().isPackageDeclaration()) { + // skip + } else if (node.getKind().equals(IProgramElement.Kind.IMPORT_REFERENCE)) { processImportDeclaration(node, writer); } else { try { -- 2.39.5