aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authormkersten <mkersten>2004-03-11 17:02:02 +0000
committermkersten <mkersten>2004-03-11 17:02:02 +0000
commit1f78bbd8e7d3f4213479f805b6ea4796b5437054 (patch)
tree62bc063f0e6087b56bc001056963020361ddcf84 /org.aspectj.ajdt.core
parentd5165134df129951544fa354b74b256bdb482688 (diff)
downloadaspectj-1f78bbd8e7d3f4213479f805b6ea4796b5437054.tar.gz
aspectj-1f78bbd8e7d3f4213479f805b6ea4796b5437054.zip
Moved clearning of relationship map to AjBuildManager in order to make
repeated invocations with -emacssym work (refer to Matthew's patch in 41181).
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
index efa482548..93cad315d 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
@@ -166,9 +166,17 @@ public class AjBuildManager {
}
}
+ /**
+ * Responsible for managing the ASM model between builds. Contains the policy for
+ * maintaining the persistance of elements in the model.
+ *
+ * TODO: implement incremental policy.
+ */
private void setupModel() {
- String rootLabel = "<root>";
+ String rootLabel = "<root>";
IHierarchy model = AsmManager.getDefault().getHierarchy();
+ AsmManager.getDefault().getRelationshipMap().clear();
+
IProgramElement.Kind kind = IProgramElement.Kind.FILE_JAVA;
if (buildConfig.getConfigFile() != null) {
rootLabel = buildConfig.getConfigFile().getName();