aboutsummaryrefslogtreecommitdiffstats
path: root/ajde.core/src
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-20 04:38:55 +0000
committeraclement <aclement>2008-10-20 04:38:55 +0000
commit689bd19050a5474ee734110c8702f40b595e300f (patch)
tree6d02847b09ab46e153b0f2cd9afc6d3bf0a3dad0 /ajde.core/src
parente19a7e7e66072029ce7ed70d865371b3cb021649 (diff)
downloadaspectj-689bd19050a5474ee734110c8702f40b595e300f.tar.gz
aspectj-689bd19050a5474ee734110c8702f40b595e300f.zip
251277: making asmmanager non-singleton
Diffstat (limited to 'ajde.core/src')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/AjCompiler.java9
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java13
2 files changed, 20 insertions, 2 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
index 72eb4058c..5755c4173 100644
--- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
+++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
@@ -12,6 +12,7 @@ package org.aspectj.ajde.core;
import org.aspectj.ajde.core.internal.AjdeCoreBuildManager;
import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager;
+import org.aspectj.asm.AsmManager;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.Message;
import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
@@ -148,4 +149,12 @@ public class AjCompiler {
public Object getCustomMungerFactory() {
return buildManager.getCustomMungerFactory();
}
+
+ public AsmManager getModel() {
+ return buildManager.getStructureModel();
+ }
+
+ // public AsmManager getStructureModel() {
+ // return buildManager.getStructureModel();
+ // }
}
diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
index 074222b51..db4fe814d 100644
--- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
+++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
@@ -63,6 +63,10 @@ public class AjdeCoreBuildManager {
AsmManager.attemptIncrementalModelRepairs = true;
}
+ // public AsmManager getStructureModel() {
+ // return ajBuildManager.
+ // }
+
/**
* Execute a full or incremental build
*
@@ -77,8 +81,9 @@ public class AjdeCoreBuildManager {
// No existing state so we must do a full build
fullBuild = true;
} else {
- AsmManager.getDefault().setRelationshipMap(existingState.getRelationshipMap());
- AsmManager.getDefault().setHierarchy(existingState.getStructureModel());
+ AsmManager.setLastActiveStructureModel(existingState.getStructureModel());
+ // AsmManager.getDefault().setRelationshipMap(existingState.getRelationshipMap());
+ // AsmManager.getDefault().setHierarchy(existingState.getStructureModel());
}
}
try {
@@ -394,4 +399,8 @@ public class AjdeCoreBuildManager {
public void cleanupEnvironment() {
ajBuildManager.cleanupEnvironment();
}
+
+ public AsmManager getStructureModel() {
+ return ajBuildManager.getStructureModel();
+ }
}