From 05d5befdd96f145e1fe0625375e7edf9308477ae Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 23 Jul 2009 21:06:06 +0000 Subject: [PATCH] 280380: don't include package name in itds --- .../ajdt/internal/core/builder/AsmElementFormatter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 20d74a724..ba5fe5b49 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 @@ -168,7 +168,11 @@ public class AsmElementFormatter { } else if (methodDeclaration instanceof InterTypeDeclaration) { InterTypeDeclaration itd = (InterTypeDeclaration) methodDeclaration; - String name = itd.getOnType().toString() + "." + new String(itd.getDeclaredSelector()); + String fqname = itd.getOnType().toString(); + if (fqname.indexOf(".") != -1) { + fqname = fqname.substring(fqname.lastIndexOf(".") + 1); + } + String name = fqname + "." + new String(itd.getDeclaredSelector()); if (methodDeclaration instanceof InterTypeFieldDeclaration) { node.setKind(IProgramElement.Kind.INTER_TYPE_FIELD); node.setName(name); -- 2.39.5