avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 20196 - avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic
Date Fri, 21 May 2004 12:35:29 GMT
Author: niclas
Date: Fri May 21 05:35:28 2004
New Revision: 20196

Modified:
   avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/AbstractPlugin.java
   avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/PluginObserver.java
Log:
Fixing the compile errors.

Modified: avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/AbstractPlugin.java
==============================================================================
--- avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/AbstractPlugin.java	(original)
+++ avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/AbstractPlugin.java	Fri
May 21 05:35:28 2004
@@ -6,21 +6,27 @@
 import org.apache.avalon.framework.context.Context;
 import org.apache.avalon.framework.context.Contextualizable;
 
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+
+import org.apache.tools.ant.Project;
+
 public abstract class AbstractPlugin extends AbstractLogEnabled
     implements Plugin, Contextualizable
 {
     private ArrayList m_Listeners;
     
     protected PluginContext m_Context;
+    protected Project m_Project;
     
     protected AbstractPlugin()
     {
         m_Listeners = new ArrayList();
     }
     
-    public void contextualize( Context context )
+    public void contextualize( Context ctx )
     {
-        m_Context = (PluginContext) context;
+        m_Context = (PluginContext) ctx;
+        m_Project = m_Context.getAntProject();
     }
     
     public void addPluginObserver( PluginObserver observer )
@@ -61,7 +67,7 @@
         while( list.hasNext() )
         {
             PluginObserver observer = (PluginObserver) list.next();
-            observer.postMethod( this, method, stepIndex );
+            observer.stepPerformed( this, method, stepIndex );
         }
     }
 } 

Modified: avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/PluginObserver.java
==============================================================================
--- avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/PluginObserver.java	(original)
+++ avalon/trunk/tools/magic/engine/src/java/org/apache/merlin/magic/PluginObserver.java	Fri
May 21 05:35:28 2004
@@ -6,5 +6,5 @@
     
     void postMethod( Plugin source, String method );
 
-    void step( Plugin source, String method, int stepIndex );
+    void stepPerformed( Plugin source, String method, int stepIndex );
 } 

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message