]> source.dussan.org Git - aspectj.git/commitdiff
328649
authoraclement <aclement>
Mon, 25 Oct 2010 20:04:54 +0000 (20:04 +0000)
committeraclement <aclement>
Mon, 25 Oct 2010 20:04:54 +0000 (20:04 +0000)
ajde.core/src/org/aspectj/ajde/core/AjCompiler.java

index a27f48e43c3def472f0448d4e06c86e949613eea..13cda32f30d6c4debe97c6f3d0c8af43436f8676 100644 (file)
 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.
         */