From e19fc5d4b74366078ed660cc9af140ffea07abd5 Mon Sep 17 00:00:00 2001 From: mkersten Date: Thu, 14 Oct 2004 22:01:24 +0000 Subject: [PATCH] Added "uses pointcut" relation to the ASM. --- .../aspectj/samples/AsmHierarchyBuilderExtensionTest.java | 6 +++--- .../ajdt/internal/core/builder/AsmElementFormatter.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sandbox/api-clients/org/aspectj/samples/AsmHierarchyBuilderExtensionTest.java b/docs/sandbox/api-clients/org/aspectj/samples/AsmHierarchyBuilderExtensionTest.java index acef32cf0..11b99b117 100644 --- a/docs/sandbox/api-clients/org/aspectj/samples/AsmHierarchyBuilderExtensionTest.java +++ b/docs/sandbox/api-clients/org/aspectj/samples/AsmHierarchyBuilderExtensionTest.java @@ -19,9 +19,9 @@ import org.aspectj.ajdt.internal.core.builder.AsmHierarchyBuilder; import org.aspectj.asm.AsmManager; import org.aspectj.asm.IProgramElement; import org.aspectj.asm.internal.ProgramElement; -import org.eclipse.jdt.internal.compiler.ast.MessageSend; -import org.eclipse.jdt.internal.compiler.lookup.BlockScope; - +import org.aspectj.org.eclipse.jdt.internal.compiler.ast.MessageSend; +import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope; + /** * This test demonstrates how hierarchy building in the ASM can be extended * to put additional information in the model, for example method call sites. diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java index 91b66db7d..5a765c0e0 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AsmElementFormatter.java @@ -95,7 +95,7 @@ public class AsmElementFormatter { setParameters(methodDeclaration, node); } else if (methodDeclaration instanceof PointcutDeclaration) { -// PointcutDeclaration pd = (PointcutDeclaration)methodDeclaration; + PointcutDeclaration pd = (PointcutDeclaration)methodDeclaration; node.setKind(IProgramElement.Kind.POINTCUT); node.setName(translatePointcutName(new String(methodDeclaration.selector))); setParameters(methodDeclaration, node); -- 2.39.5