]> source.dussan.org Git - aspectj.git/commitdiff
code for enh193065: pointcutdoctor changes
authoraclement <aclement>
Sun, 2 Dec 2007 22:36:47 +0000 (22:36 +0000)
committeraclement <aclement>
Sun, 2 Dec 2007 22:36:47 +0000 (22:36 +0000)
ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java

index 9f267241466d07de2798a62247ca0a94f6adaf2b..13df1ccc721233b1fe61a3e066a5d5ff71ee76cc 100644 (file)
@@ -15,6 +15,7 @@ import org.aspectj.ajdt.internal.core.builder.IncrementalStateManager;
 import org.aspectj.bridge.IMessage;
 import org.aspectj.bridge.Message;
 import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+import org.aspectj.weaver.CustomMungerFactory;
 
 /**
  * The class to be used by tools to drive a build. An AjCompiler is created
@@ -59,6 +60,14 @@ public class AjCompiler {
                buildManager = new AjdeCoreBuildManager(this);
        }
        
+       public void setCustomMungerFactory(CustomMungerFactory factory) {
+               buildManager.setCustomMungerFactory(factory);
+       }
+       
+       public CustomMungerFactory getCustomMungerFactory() {
+               return buildManager.getCustomMungerFactory();
+       }
+       
        /**
         * @return the id for this AjCompiler
         */
index 46db93884b341c5447d693d364d9652cf4dcf84a..49e0085b5fb09228d739e02e21ef9bb3f1025401 100644 (file)
@@ -40,6 +40,7 @@ import org.aspectj.bridge.context.CompilationAndWeavingContext;
 import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
 import org.aspectj.util.ConfigParser;
 import org.aspectj.util.LangUtil;
+import org.aspectj.weaver.CustomMungerFactory;
 
 /**
  * Build Manager which drives the build for a given AjCompiler.
@@ -65,6 +66,14 @@ public class AjdeCoreBuildManager {
                AsmManager.attemptIncrementalModelRepairs = true;
        }
        
+       public void setCustomMungerFactory(CustomMungerFactory factory) {
+               ajBuildManager.setCustomMungerFactory(factory);
+       }
+       
+       public CustomMungerFactory getCustomMungerFactory() {
+               return ajBuildManager.getCustomMungerFactory();
+       }
+       
        /**
         * @param buildFresh - true if want to force a full build, false otherwise
         */