summaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/AjCompiler.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
index a27f48e43..13cda32f3 100644
--- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
+++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
@@ -11,10 +11,12 @@
package org.aspectj.ajde.core;
import org.aspectj.ajde.core.internal.AjdeCoreBuildManager;
+import org.aspectj.ajdt.internal.core.builder.AjState;
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.CompilationResult;
import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
/**
@@ -108,6 +110,11 @@ public class AjCompiler {
buildManager.cleanupEnvironment();
}
+ public void addDependencies(CompilationResult result, String[] typeNameDependencies) {
+ AjState state = IncrementalStateManager.retrieveStateFor(compilerId);
+ state.recordDependencies(result, typeNameDependencies);
+ }
+
/**
* @return true if the underlying version of the compiler is compatible with Java 6, returns false otherwise.
*/