diff options
author | aclement <aclement> | 2009-01-06 22:05:49 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-01-06 22:05:49 +0000 |
commit | 04fb46c3c1192dd13d74f6d2234095bfc460dfa1 (patch) | |
tree | c899ecbfa85bb77bbb9a0a0e29377f9179d3f022 /ajdoc | |
parent | 7deaa61cfdd361bfc1b55885c5e6f550244427a2 (diff) | |
download | aspectj-04fb46c3c1192dd13d74f6d2234095bfc460dfa1.tar.gz aspectj-04fb46c3c1192dd13d74f6d2234095bfc460dfa1.zip |
258206: package declaration support in the model
Diffstat (limited to 'ajdoc')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/StubFileGenerator.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |