]> source.dussan.org Git - aspectj.git/commitdiff
328649: addDependencies for Compilation Participants
authoraclement <aclement>
Tue, 26 Oct 2010 19:25:16 +0000 (19:25 +0000)
committeraclement <aclement>
Tue, 26 Oct 2010 19:25:16 +0000 (19:25 +0000)
ajde.core/src/org/aspectj/ajde/core/AjCompiler.java

index 13cda32f30d6c4debe97c6f3d0c8af43436f8676..d6231a05f3af859829b151ab42806731d4609e53 100644 (file)
  *******************************************************************/
 package org.aspectj.ajde.core;
 
+import java.io.File;
+
 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;
 
 /**
@@ -110,9 +111,9 @@ public class AjCompiler {
                buildManager.cleanupEnvironment();
        }
 
-       public void addDependencies(CompilationResult result, String[] typeNameDependencies) {
+       public boolean addDependencies(File file, String[] typeNameDependencies) {
                AjState state = IncrementalStateManager.retrieveStateFor(compilerId);
-               state.recordDependencies(result, typeNameDependencies);
+               return state.recordDependencies(file, typeNameDependencies);
        }
 
        /**