diff options
author | mkersten <mkersten> | 2005-04-14 16:44:01 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2005-04-14 16:44:01 +0000 |
commit | df7fff4c8c073a3bbcfe749134d577299402d5fb (patch) | |
tree | 566a368b2d30af514d724197620fa6854b7b5ce0 /org.aspectj.ajdt.core | |
parent | bcef03bef88e3e43347ecfc57f0d6cb6694d7b1c (diff) | |
download | aspectj-df7fff4c8c073a3bbcfe749134d577299402d5fb.tar.gz aspectj-df7fff4c8c073a3bbcfe749134d577299402d5fb.zip |
bug#82171 Created sepereate handle provider to enable ASM use of IDE-specific handle identifiers.
Diffstat (limited to 'org.aspectj.ajdt.core')
2 files changed, 4 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AsmInterTypeRelationshipProvider.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AsmInterTypeRelationshipProvider.java index 523fea5a6..ab2ce9f08 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AsmInterTypeRelationshipProvider.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/AsmInterTypeRelationshipProvider.java @@ -47,13 +47,13 @@ public class AsmInterTypeRelationshipProvider { if (munger.getSourceLocation() != null && munger.getSourceLocation() != null) { - String sourceHandle = ProgramElement.createHandleIdentifier( + String sourceHandle = AsmManager.getDefault().getHandleProvider().createHandleIdentifier( munger.getSourceLocation().getSourceFile(), munger.getSourceLocation().getLine(), munger.getSourceLocation().getColumn(), munger.getSourceLocation().getOffset()); - String targetHandle = ProgramElement.createHandleIdentifier( + String targetHandle = AsmManager.getDefault().getHandleProvider().createHandleIdentifier( onType.getSourceLocation().getSourceFile(), onType.getSourceLocation().getLine(), onType.getSourceLocation().getColumn(), 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 b0587d3f9..460de15f4 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 @@ -369,9 +369,9 @@ public class AsmHierarchyBuilder extends ASTVisitor { ResolvedMember member = getPointcutDeclaration(rp, declaration); if (member != null) { IRelationship foreward = AsmManager.getDefault().getRelationshipMap().get(peNode.getHandleIdentifier(), IRelationship.Kind.USES_POINTCUT, "uses pointcut", false, true); - foreward.addTarget(ProgramElement.genHandleIdentifier(member.getSourceLocation())); + foreward.addTarget(AsmManager.getDefault().getHandleProvider().createHandleIdentifier(member.getSourceLocation())); - IRelationship back = AsmManager.getDefault().getRelationshipMap().get(ProgramElement.genHandleIdentifier(member.getSourceLocation()), IRelationship.Kind.USES_POINTCUT, "pointcut used by", false, true); + IRelationship back = AsmManager.getDefault().getRelationshipMap().get(AsmManager.getDefault().getHandleProvider().createHandleIdentifier(member.getSourceLocation()), IRelationship.Kind.USES_POINTCUT, "pointcut used by", false, true); back.addTarget(peNode.getHandleIdentifier()); } } |