niclas      2003/12/01 13:14:38

  Modified:    ide/org.apache.avalon.ide.eclipse.repository plugin.xml
               
ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository
                        RepositoryPlugin.java
  Added:       
ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins
                        PluginHandlerUninstalled.java
                        PluginHandlerUpdated.java
                        PluginHandlerResolved.java
                        PluginHandlerUnresolved.java
                        PluginHandlerStarted.java
                        PluginHandlerException.java
                        PluginHandlerStopped.java PluginHandler.java
                        PluginHandlerInstalled.java
               ide/org.apache.avalon.ide.eclipse.repository/doc
                        org_apache_avalon_ide_eclipse_repository_agent.html
               ide/org.apache.avalon.ide.eclipse.repository/schema
                        agent.exsd
               ide/org.apache.avalon.ide.eclipse.repository .project
                        .classpath
  Removed:     ide/org.apache.avalon.ide.eclipse.repository/doc
                        
org_apache_avalon_ide_eclipse_repository_org.apache.avalon.ide.eclipse.repository.html
               ide/org.apache.avalon.ide.eclipse.repository/schema
                        org.apache.avalon.ide.eclipse.repository.exsd
               ide/org.apache.avalon.ide.eclipse.repository eclipse.prefs
  Log:
  Trying to add full Repository Agent Plug-in support, so that it will be possible to 
create Repository Agents in separate plug-ins. This is in Eclipse called Extensions 
Points. I have now the stubs for the handling, need to put in some handling code...
  
  Revision  Changes    Path
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerUninstalled.java
  
  Index: PluginHandlerUninstalled.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerUninstalled implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerUninstalled()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerUpdated.java
  
  Index: PluginHandlerUpdated.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerUpdated implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerUpdated()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerResolved.java
  
  Index: PluginHandlerResolved.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerResolved implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerResolved()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerUnresolved.java
  
  Index: PluginHandlerUnresolved.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerUnresolved implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerUnresolved()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerStarted.java
  
  Index: PluginHandlerStarted.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerStarted implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerStarted()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerException.java
  
  Index: PluginHandlerException.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerException extends Exception
  {
  
      /**
       * @param pMessage
       */
      public PluginHandlerException(String pMessage)
      {
          super(pMessage);
      }
  
      /**
       * @param pMessage
       * @param pCause
       */
      public PluginHandlerException(String pMessage, Throwable pCause)
      {
          super(pMessage, pCause);
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerStopped.java
  
  Index: PluginHandlerStopped.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerStopped implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerStopped()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandler.java
  
  Index: PluginHandler.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public interface PluginHandler
  {
      void handle( IPluginDescriptor descriptor ) throws PluginHandlerException;
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/plugins/PluginHandlerInstalled.java
  
  Index: PluginHandlerInstalled.java
  ===================================================================
  /*
   * 
   * ============================================================================
   * The Apache Software License, Version 1.1
   * ============================================================================
   * 
   * Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   *  1. Redistributions of source code must retain the above copyright notice,
   * this list of conditions and the following disclaimer.
   *  2. Redistributions in binary form must reproduce the above copyright
   * notice, this list of conditions and the following disclaimer in the
   * documentation and/or other materials provided with the distribution.
   *  3. The end-user documentation included with the redistribution, if any,
   * must include the following acknowledgment: "This product includes software
   * developed by the Apache Software Foundation (http://www.apache.org/)."
   * Alternately, this acknowledgment may appear in the software itself, if and
   * wherever such third-party acknowledgments normally appear.
   *  4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and "Apache
   * Software Foundation" must not be used to endorse or promote products derived
   * from this software without prior written permission. For written permission,
   * please contact [EMAIL PROTECTED]
   *  5. Products derived from this software may not be called "Apache", nor may
   * "Apache" appear in their name, without prior written permission of the
   * Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation. For more information on the
   * Apache Software Foundation, please see <http://www.apache.org/> .
   *  
   */
  package org.apache.avalon.ide.eclipse.repository.plugins;
  
  import org.eclipse.core.runtime.IPluginDescriptor;
  
  /**
   * @author Niclas Hedhman, [EMAIL PROTECTED]
   */
  public class PluginHandlerInstalled implements PluginHandler
  {
  
      /**
       * 
       */
      public PluginHandlerInstalled()
      {
          super();
          // TODO Auto-generated constructor stub
      }
  
      /* (non-Javadoc)
       * @see 
org.apache.avalon.ide.eclipse.repository.PluginHandler#handle(org.eclipse.core.runtime.IPluginDescriptor)
       */
      public void handle(IPluginDescriptor pDescriptor) throws PluginHandlerException
      {
          // TODO Auto-generated method stub
  
      }
  
  }
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/doc/org_apache_avalon_ide_eclipse_repository_agent.html
  
  Index: org_apache_avalon_ide_eclipse_repository_agent.html
  ===================================================================
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <!-- default platform documentation stylesheets -->
  <style>@import url("book.css");</style>
  <!-- default schema documentation stylesheets -->
  <style>@import url("schema.css");</style>
  </HEAD>
  <HTML>
  <BODY>
  <H1><CENTER>Avalon Repository Agent</CENTER></H1>
  <p></p>
  <h6 class=CaptionFigColumn id=header>Identifier: 
</h6>org.apache.avalon.ide.eclipse.repository.agent<p></p>
  <h6 class=CaptionFigColumn id=header>Since: </h6>The first release.
  <p></p>
  
  <p>
  <h6 class=CaptionFigColumn id=header>Description: </h6>The Repository Agent 
extension is all about registration of RepositoryAgentFactory implementations, that 
knows how to contact repositories, on-line and off-line.</p>
  <p><h6 class=CaptionFigColumn id=header>Configuration Markup:</h6></p>
  <p class=code id=dtd>&lt;!ELEMENT <a name="e.extension">extension</a> (<a 
href="#e.description">description</a>)&gt;</p>
  <p class=code id=dtd>&lt;!ATTLIST extension</p>
  <p class=code id=dtdAttlist>name&nbsp;&nbsp;CDATA "Sample Repository Agent"<p 
class=code id=dtdAttlist>id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class=code 
id=dtdAttlist>point&nbsp;CDATA #REQUIRED<p class=code id=dtdAttlist>class&nbsp;CDATA 
#REQUIRED&gt;</p>
  <p></p>
  <p class=ConfigMarkup id=elementDesc>
  Definition of the Repository Agent extension point.</p>
  <br>
  <ul class=ConfigMarkup id=attlistDesc>
  <li><b>name</b> - The name of the Repository Agent plug-in. This name will be used 
on-screen.</li>
  <li><b>class</b> - The classname of the RepositoryAgentFactory interface, of course 
inclusive of the package name.</li>
  </ul>
  <br><p class=code id=dtd>&lt;!ELEMENT <a name="e.description">description</a> 
(#CDATA)&gt;</p>
  <p></p>
  <p class=ConfigMarkup id=elementDesc>
  A longer description of the capabilities of the RepositoryAgent and its factory.</p>
  <br><br>
  <h6 class=CaptionFigColumn id=header>Examples: </h6>[Enter extension point usage 
example here.]
  <p></p>
  
  <h6 class=CaptionFigColumn id=header>API Information: </h6>[Enter API information 
here.]
  <p></p>
  
  <h6 class=CaptionFigColumn id=header>Supplied Implementation: </h6>[Enter 
information about supplied implementation of this extension point.]
  <p></p>
  
  <br>
  <p class=note id=copyright>
  Copyright 2003, Apache Software Foundation, All Rights Reserved.
  <p></p>
  
  </p>
  </BODY>
  </HTML>
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/schema/agent.exsd
  
  Index: agent.exsd
  ===================================================================
  <?xml version='1.0' encoding='UTF-8'?>
  <!-- Schema file written by PDE -->
  <schema targetNamespace="org.apache.avalon.ide.eclipse.repository">
  <annotation>
        <appInfo>
           <meta.schema plugin="org.apache.avalon.ide.eclipse.repository" id="agent" 
name="Avalon Repository Agent"/>
        </appInfo>
        <documentation>
           The Repository Agent extension is all about registration of 
RepositoryAgentFactory implementations, that knows how to contact repositories, 
on-line and off-line.
        </documentation>
     </annotation>
  
     <element name="extension">
        <annotation>
           <documentation>
              Definition of the Repository Agent extension point.
           </documentation>
        </annotation>
        <complexType>
           <sequence>
              <element ref="description"/>
           </sequence>
           <attribute name="name" type="string" use="default" value="Sample Repository 
Agent">
              <annotation>
                 <documentation>
                    The name of the Repository Agent plug-in. This name will be used 
on-screen.
                 </documentation>
              </annotation>
           </attribute>
           <attribute name="id" type="string">
              <annotation>
                 <documentation>
                    
                 </documentation>
              </annotation>
           </attribute>
           <attribute name="point" type="string" use="required">
              <annotation>
                 <documentation>
                    
                 </documentation>
              </annotation>
           </attribute>
           <attribute name="class" type="string" use="required">
              <annotation>
                 <documentation>
                    The classname of the RepositoryAgentFactory interface, of course 
inclusive of the package name.
                 </documentation>
              </annotation>
           </attribute>
        </complexType>
     </element>
  
     <element name="description" type="string">
        <annotation>
           <documentation>
              A longer description of the capabilities of the RepositoryAgent and its 
factory.
           </documentation>
        </annotation>
     </element>
  
     <annotation>
        <appInfo>
           <meta.section type="since"/>
        </appInfo>
        <documentation>
           The first release.
        </documentation>
     </annotation>
  
     <annotation>
        <appInfo>
           <meta.section type="examples"/>
        </appInfo>
        <documentation>
           [Enter extension point usage example here.]
        </documentation>
     </annotation>
  
     <annotation>
        <appInfo>
           <meta.section type="apiInfo"/>
        </appInfo>
        <documentation>
           [Enter API information here.]
        </documentation>
     </annotation>
  
     <annotation>
        <appInfo>
           <meta.section type="implementation"/>
        </appInfo>
        <documentation>
           [Enter information about supplied implementation of this extension point.]
        </documentation>
     </annotation>
  
     <annotation>
        <appInfo>
           <meta.section type="copyright"/>
        </appInfo>
        <documentation>
           Copyright 2003, Apache Software Foundation, All Rights Reserved.
        </documentation>
     </annotation>
  
  </schema>
  
  
  
  1.3       +1 -12     
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/plugin.xml
  
  Index: plugin.xml
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/plugin.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- plugin.xml        1 Dec 2003 18:02:04 -0000       1.2
  +++ plugin.xml        1 Dec 2003 21:14:38 -0000       1.3
  @@ -16,11 +16,7 @@
      </requires>
   
   
  -   <extension-point 
  -         id="org.apache.avalon.ide.eclipse.repository" 
  -         name="Avalon Repository" 
  -         schema="schema/org.apache.avalon.ide.eclipse.repository.exsd"
  -   />
  +   <extension-point id="agent" name="Avalon Repository Agent" 
schema="schema/agent.exsd"/>
   
      <extension
            point="org.eclipse.ui.actionSets">
  @@ -92,13 +88,6 @@
               file="testToc.xml"
               primary="true">
         </toc>
  -   </extension>
  -   <extension
  -         point="org.eclipse.ui.newWizards">
  -      <category
  -            name="Avalon Wizards"
  -            id="org.apache.avalon.ide.eclipse.repository">
  -      </category>
      </extension>
      <extension
            point="org.eclipse.ui.popupMenus">
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.project
  
  Index: .project
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <projectDescription>
        <name>org.apache.avalon.ide.eclipse.repository</name>
        <comment></comment>
        <projects>
                <project>org.apache.avalon.ide.repository</project>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.jdt.core.javabuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>org.eclipse.pde.ManifestBuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>org.eclipse.pde.SchemaBuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>org.eclipse.pde.PluginNature</nature>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
  </projectDescription>
  
  
  
  1.1                  
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.classpath
  
  Index: .classpath
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <classpath>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_3.0.0/resources.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_3.0.0/resourcessrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.ui_3.0.0/ui.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_3.0.0/uisrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_LINUX_GTK_X86_SRC/org.eclipse.swt.gtk_3.0.0/ws/gtk/swtsrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt-pi.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_LINUX_GTK_X86_SRC/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt-pisrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt-mozilla.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_LINUX_GTK_X86_SRC/org.eclipse.swt.gtk_3.0.0/ws/gtk/swt-mozillasrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.text_3.0.0/text.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.text_3.0.0/textsrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.jface_3.0.0/jface.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_3.0.0/jfacesrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.jface.text_3.0.0/jfacetext.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface.text_3.0.0/jfacetextsrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.ui.views_3.0.0/views.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.views_3.0.0/viewssrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_3.0.0/workbench.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_3.0.0/workbenchsrc.zip"/>
      <classpathentry kind="var"
          
path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench.texteditor_3.0.0/texteditor.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench.texteditor_3.0.0/texteditorsrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_3.0.0/editors.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_3.0.0/editorssrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_3.0.0/boot.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_3.0.0/bootsrc.zip"/>
      <classpathentry kind="var"
          path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_3.0.0/runtime.jar" 
sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_3.0.0/runtimesrc.zip"/>
      <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
      <classpathentry kind="src" path="src/java"/>
      <classpathentry kind="src" path="/org.apache.avalon.ide.repository"/>
      <classpathentry kind="output" path="build"/>
  </classpath>
  
  
  
  1.2       +73 -0     
avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/RepositoryPlugin.java
  
  Index: RepositoryPlugin.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/src/java/org/apache/avalon/ide/eclipse/repository/RepositoryPlugin.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RepositoryPlugin.java     1 Dec 2003 14:16:19 -0000       1.1
  +++ RepositoryPlugin.java     1 Dec 2003 21:14:38 -0000       1.2
  @@ -44,11 +44,23 @@
    */
   package org.apache.avalon.ide.eclipse.repository;
          
  +import java.util.HashMap;
  +
  +import org.apache.avalon.ide.eclipse.repository.plugins.*;
  +import org.apache.avalon.ide.repository.RepositoryAgentFactory;
   import org.apache.avalon.ide.repository.RepositoryTypeRegistry;
   import org.apache.avalon.ide.repository.tools.common.SimpleRepositoryRegistry;
   import org.eclipse.core.resources.IWorkspace;
   import org.eclipse.core.resources.ResourcesPlugin;
  +import org.eclipse.core.runtime.CoreException;
  +import org.eclipse.core.runtime.IConfigurationElement;
  +import org.eclipse.core.runtime.IExtension;
  +import org.eclipse.core.runtime.IExtensionPoint;
   import org.eclipse.core.runtime.IPluginDescriptor;
  +import org.eclipse.core.runtime.IPluginEvent;
  +import org.eclipse.core.runtime.IPluginListener;
  +import org.eclipse.core.runtime.IPluginRegistry;
  +import org.eclipse.core.runtime.Platform;
   import org.eclipse.ui.plugin.AbstractUIPlugin;
   
   /**
  @@ -57,6 +69,7 @@
    * @author Niclas Hedhman, [EMAIL PROTECTED]
    */
   public class RepositoryPlugin extends AbstractUIPlugin
  +    implements IPluginListener
   {
       //The shared instance.
       private static RepositoryPlugin m_Plugin;
  @@ -64,6 +77,8 @@
       private ResourceManager m_ResourceManager;
       private SimpleRepositoryRegistry m_RepositoryTypeRegistry;
   
  +    private HashMap m_PluginHandlers;
  +    
       /**
         * The constructor.
         */
  @@ -73,6 +88,9 @@
           m_Plugin = this;
           m_ResourceManager = new ResourceManager();
           m_RepositoryTypeRegistry = new SimpleRepositoryRegistry();
  +        createHandlers();
  +        
  +        Platform.addPluginListener( this );
       }
   
       public RepositoryTypeRegistry getRepositoryTypeRegistry()
  @@ -100,4 +118,59 @@
       {
           return m_Plugin.m_ResourceManager;
       }
  +    
  +    private void instantiateRepositoryAgentFactories()
  +        throws CoreException
  +    {
  +        IPluginRegistry registry = Platform.getPluginRegistry();
  +        IExtensionPoint point = 
registry.getExtensionPoint("org.eclipse.sample.sampleExtensionPoint");
  +        IExtension[] extensions = point.getExtensions();
  +        for (int i = 0; i < extensions.length; i++) 
  +        {
  +            IConfigurationElement[] elements = 
extensions[i].getConfigurationElements();
  +            for (int j = 0; j < elements.length; j++) 
  +            {
  +                RepositoryAgentFactory object = (RepositoryAgentFactory) 
elements[j].createExecutableExtension("extension");
  +                System.out.println("Found an executable extension: " + object);
  +            }
  +       }
  +    }
  +    
  +    public void pluginChanged( IPluginEvent[] event )
  +    {
  +        for( int i=0 ; i < event.length ; i++ )
  +        {
  +            Integer type = new Integer( event[i].getType() );
  +            PluginHandler handler = (PluginHandler) m_PluginHandlers.get( type );
  +            IPluginDescriptor descriptor = event[i].getPluginDescriptor();
  +            try
  +            {
  +                handler.handle( descriptor );
  +            } catch( PluginHandlerException e )
  +            {
  +                // SHOULD-DO Error Handling
  +                e.printStackTrace();
  +                
  +            }
  +        }
  +    }
  +    
  +    private void createHandlers()
  +    {
  +        m_PluginHandlers = new HashMap();
  +        createHandler(IPluginEvent.INSTALLED, new PluginHandlerInstalled() );
  +        createHandler(IPluginEvent.RESOLVED, new PluginHandlerResolved() );
  +        createHandler(IPluginEvent.STARTED, new PluginHandlerStarted() );
  +        createHandler(IPluginEvent.STOPPED, new PluginHandlerStopped() );
  +        createHandler(IPluginEvent.UNINSTALLED, new PluginHandlerUninstalled() );
  +        createHandler(IPluginEvent.UNRESOLVED, new PluginHandlerUnresolved() );
  +        createHandler(IPluginEvent.UPDATED, new PluginHandlerUpdated() );
  +    }
  +    
  +    private void createHandler( int type, PluginHandler handler )
  +    {
  +        Integer t = new Integer( type );
  +        m_PluginHandlers.put( t, handler );
  +    }
   }
  +     
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to