From: aclement Date: Sun, 2 Dec 2007 22:36:47 +0000 (+0000) Subject: code for enh193065: pointcutdoctor changes X-Git-Tag: V1_5_4rc1~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7f8aa2ea0e1d774ba1eda66be46310fcdac4c38;p=aspectj.git code for enh193065: pointcutdoctor changes --- diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java index 9f2672414..13df1ccc7 100644 --- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java +++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java @@ -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 */ 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 46db93884..49e0085b5 100644 --- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java +++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java @@ -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 */