summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-17 09:37:46 +0000
committeraclement <aclement>2004-08-17 09:37:46 +0000
commita2469c733c9f65514c3949cb1cc7254495011894 (patch)
treefe5894dd94c77bf7bb24678601b66b1f98b67e23 /org.aspectj.ajdt.core
parenteb1d697f95742d25109b1d285db38da40464b340 (diff)
downloadaspectj-a2469c733c9f65514c3949cb1cc7254495011894.tar.gz
aspectj-a2469c733c9f65514c3949cb1cc7254495011894.zip
Fix for Bugzilla Bug 70241: outline view shows anonymous inner classes in different way than jdt outline
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
index 5ff6f078c..ffe8e37e3 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmHierarchyBuilder.java
@@ -279,11 +279,9 @@ public class AsmHierarchyBuilder extends ASTVisitor {
String fullName = "<undefined>";
if (memberTypeDeclaration.binding != null
&& memberTypeDeclaration.binding.constantPoolName() != null) {
- fullName = new String(memberTypeDeclaration.binding.constantPoolName());
+ // Create a name something like 'new Runnable() {..}'
+ fullName = "new "+memberTypeDeclaration.allocation.type.toString()+"() {..}";
}
-
- int dollar = fullName.indexOf('$');
- fullName = fullName.substring(dollar+1);
IProgramElement.Kind kind = IProgramElement.Kind.CLASS;
if (memberTypeDeclaration.isInterface()) kind = IProgramElement.Kind.INTERFACE;
@@ -298,8 +296,8 @@ public class AsmHierarchyBuilder extends ASTVisitor {
peNode.setSourceSignature(genSourceSignature(memberTypeDeclaration));
peNode.setFormalComment(generateJavadocComment(memberTypeDeclaration));
- //??? we add this to the compilation unit
- findEnclosingClass(stack).addChild(peNode);
+
+ ((IProgramElement)stack.peek()).addChild(peNode);
stack.push(peNode);
return true;
}