[jboss-cvs] jbosside/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model ...

Robert Stryker rob.stryker at jboss.com
Thu Apr 19 14:15:26 EDT 2007


  User: rawb    
  Date: 07/04/19 14:15:25

  Modified:    core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model   
                        PackagesCore.java
  Added:       core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model   
                        IArchiveBuildListener.java
  Removed:     core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model   
                        IPackagesBuildListener.java
  Log:
  Event firing added to model changes and builds
  
  Revision  Changes    Path
  1.3       +4 -4      jbosside/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/PackagesCore.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PackagesCore.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/PackagesCore.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- PackagesCore.java	19 Apr 2007 00:14:18 -0000	1.2
  +++ PackagesCore.java	19 Apr 2007 18:15:25 -0000	1.3
  @@ -32,16 +32,16 @@
   		addModelListener(new ModelChangeListener());
   	}
   	
  -	public void addBuildListener(IPackagesBuildListener listener) {
  +	public void addBuildListener(IArchiveBuildListener listener) {
   		if( !buildListeners.contains(listener)) 
   			buildListeners.add(listener);
   	}
  -	public void removeBuildListener(IPackagesBuildListener listener) {
  +	public void removeBuildListener(IArchiveBuildListener listener) {
   		if( buildListeners.contains(listener)) 
   			buildListeners.remove(listener);
   	}
  -	public IPackagesBuildListener[] getBuildListeners() {
  -		return (IPackagesBuildListener[]) buildListeners.toArray(new IPackagesBuildListener[buildListeners.size()]);
  +	public IArchiveBuildListener[] getBuildListeners() {
  +		return (IArchiveBuildListener[]) buildListeners.toArray(new IArchiveBuildListener[buildListeners.size()]);
   	}
   	
   	public void addModelListener(IArchiveModelListener listener) {
  
  
  
  1.1      date: 2007/04/19 18:15:25;  author: rawb;  state: Exp;jbosside/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/IArchiveBuildListener.java
  
  Index: IArchiveBuildListener.java
  ===================================================================
  /*
   * JBoss, a division of Red Hat
   * Copyright 2006, Red Hat Middleware, LLC, and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
   * the License, or (at your option) any later version.
   *
   * This software is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   * Lesser General Public License for more details.
   *
   * You should have received a copy of the GNU Lesser General Public
   * License along with this software; if not, write to the Free
   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
   */
  package org.jboss.ide.eclipse.archives.core.model;
  
  import org.eclipse.core.resources.IProject;
  import org.eclipse.core.runtime.IPath;
  import org.eclipse.core.runtime.IStatus;
  
  /**
   * This interface is inteded to be implemented by classes who are interested in receiving callbacks for various IArchive build events
   * 
   * @author Marshall
   */
  public interface IArchiveBuildListener {
  
  	/**
  	 * A project has started being built by the Archives builder
  	 * This is *only* used during  a FULL BUILD
  	 * @param project the project being built
  	 */
  	public void startedBuild (IProject project);
  	
  	/**
  	 * A project is finished being built by the Archives builder
  	 * @param project the project being built
  	 */
  	public void finishedBuild (IProject project);
  
  	/**
  	 * A Archive has started being built by the Archives builder
  	 * This is *only* used during  a FULL BUILD or after a MODEL CHANGE
  	 * The appropriate action after receiving this event is to clear 
  	 * any cached state you have for that archive. 
  	 * 
  	 * @param pkg the Archive being built
  	 */
  	public void startedBuildingArchive (IArchive pkg);
  	
  	
  	/**
  	 * A Archive is finished being built by the Archives builder
  	 * @param pkg the Archive being built
  	 */
  	public void finishedBuildingArchive (IArchive pkg);
  
  	/**
  	 * A fileset has started being collected for copying into a Archive
  	 * This is *only* used during  a FULL BUILD or after a MODEL CHANGE
  	 * @param fileset the fileset being collected
  	 */
  	public void startedCollectingFileSet (IArchiveFileSet fileset);
  
  	/**
  	 * A fileset has finished being collected for copying into a Archive
  	 * This is *only* used during  a FULL BUILD or after a MODEL CHANGE
  	 * @param fileset the fileset being collected
  	 */
  	public void finishedCollectingFileSet (IArchiveFileSet fileset);
  
  	/**
  	 * The build for the given project has failed
  	 * @param pkg The Archive that failed to build
  	 * @param status The status/exception that occurred
  	 */
  	public void buildFailed (IArchive pkg, IStatus status);
  		
  	/**
  	 * A file has been updated, with the given IArchive / IArchiveFileSet context
  	 * @param topLevelArchive The top level Archive that was updated
  	 * @param fileset The fileset that matched the updated file
  	 * @param filePath The path to the file that was copied (filesystem/workspace path)
  	 */
  	public void fileUpdated (IArchive topLevelArchive, IArchiveFileSet fileset, IPath filePath);
  	
  	/**
  	 * A file has been removed, with the given IArchive / IArchiveFileSet context
  	 * @param topLevelArchive The top level Archive that was updated
  	 * @param fileset The fileset that matched the removed file
  	 * @param filePath The path to the file that was removed (filesystem/workspace path)
  	 */
  	public void fileRemoved (IArchive topLevelArchive, IArchiveFileSet fileset, IPath filePath);
  	
  }
  
  
  



More information about the jboss-cvs-commits mailing list