]> source.dussan.org Git - aspectj.git/commitdiff
258206: package declaration support in the model
authoraclement <aclement>
Tue, 6 Jan 2009 22:05:49 +0000 (22:05 +0000)
committeraclement <aclement>
Tue, 6 Jan 2009 22:05:49 +0000 (22:05 +0000)
ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java

index 59e099229ae615b98568571e8f9ce3c218cb6430..6b5c816f7a09f7f8dceb8ae410764808f712aa2f 100644 (file)
@@ -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 {