// Path: src/main/java/com/antelink/sourcesquare/event/base/ClientEvent.java
// public interface ClientEvent<T extends ClientEventHandler> {
// 
//     public ClientEventType<T> getHandlerType();
// 
//     public void dispatch(T handler);
// 
// }
// 
// Path: src/main/java/com/antelink/sourcesquare/event/base/ClientEventType.java
// public class ClientEventType<T extends ClientEventHandler> {
//     private static int typeIndexCount = 0;
//     public int type = 0;
// 
//     public ClientEventType() {
//         this.type = ++typeIndexCount;
//     }
// 
//     @Override
//     public int hashCode() {
//         return this.type;
//     }
// 
//     @SuppressWarnings("rawtypes")
//     @Override
//     public boolean equals(Object obj) {
//         if (this == obj) {
//             return true;
//         }
//         if (obj == null) {
//             return false;
//         }
//         if (getClass() != obj.getClass()) {
//             return false;
//         }
//         ClientEventType other = (ClientEventType) obj;
//         if (this.type != other.type) {
//             return false;
//         }
//         return true;
//     }
// 
// }
// 
// Path: src/main/java/com/antelink/sourcesquare/event/handlers/FilesIdentifiedEventHandler.java
// public interface FilesIdentifiedEventHandler extends ClientEventHandler {
// 
//     public void handle(TreeSet<File> fileSet);
// 
// }


import com.antelink.sourcesquare.event.handlers.FilesIdentifiedEventHandler;
import java.io.File;
import java.util.TreeSet;
import com.antelink.sourcesquare.event.base.ClientEvent;
import com.antelink.sourcesquare.event.base.ClientEventType;
/**
 * Copyright (C) 2009-2012 Antelink SAS
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License Version 3 as published
 * by the Free Software Foundation.
 *
 * This program 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 Affero General Public License Version 3
 * for more details.
 *
 * You should have received a copy of the GNU Affero General Public License Version
 * 3 along with this program. If not, see http://www.gnu.org/licenses/agpl.html
 *
 * Additional permission under GNU AGPL version 3 section 7
 *
 * If you modify this Program, or any covered work, by linking or combining it with
 * Eclipse Java development tools (JDT) or Jetty (or a modified version of these
 * libraries), containing parts covered by the terms of Eclipse Public License 1.0,
 * the licensors of this Program grant you additional permission to convey the
 * resulting work. Corresponding Source for a non-source form of such a combination
 * shall include the source code for the parts of Eclipse Java development tools
 * (JDT) or Jetty used as well as that of the covered work.
 */
package com.antelink.sourcesquare.event.events;



public class FilesIdentifiedEvent implements ClientEvent<FilesIdentifiedEventHandler> {

    public static final ClientEventType<FilesIdentifiedEventHandler> TYPE = new ClientEventType<FilesIdentifiedEventHandler>();

    private final TreeSet<File> fileSet;

    public FilesIdentifiedEvent(TreeSet<File> fileSet) {
        this.fileSet = fileSet;
    }

    @Override
    public ClientEventType<FilesIdentifiedEventHandler> getHandlerType() {
        return TYPE;
    }

    @Override
    public void dispatch(FilesIdentifiedEventHandler handler) {
        handler.handle(this.fileSet);

    }

    public TreeSet<File> getFileSet() {
// Path: src/main/java/com/antelink/sourcesquare/event/base/ClientEvent.java
// public interface ClientEvent<T extends ClientEventHandler> {
// 
//     public ClientEventType<T> getHandlerType();
// 
//     public void dispatch(T handler);
// 
// }
// 
// Path: src/main/java/com/antelink/sourcesquare/event/base/ClientEventType.java
// public class ClientEventType<T extends ClientEventHandler> {
//     private static int typeIndexCount = 0;
//     public int type = 0;
// 
//     public ClientEventType() {
//         this.type = ++typeIndexCount;
//     }
// 
//     @Override
//     public int hashCode() {
//         return this.type;
//     }
// 
//     @SuppressWarnings("rawtypes")
//     @Override
//     public boolean equals(Object obj) {
//         if (this == obj) {
//             return true;
//         }
//         if (obj == null) {
//             return false;
//         }
//         if (getClass() != obj.getClass()) {
//             return false;
//         }
//         ClientEventType other = (ClientEventType) obj;
//         if (this.type != other.type) {
//             return false;
//         }
//         return true;
//     }
// 
// }
// 
// Path: src/main/java/com/antelink/sourcesquare/event/handlers/FilesIdentifiedEventHandler.java
// public interface FilesIdentifiedEventHandler extends ClientEventHandler {
// 
//     public void handle(TreeSet<File> fileSet);
// 
// }


// Path: src/main/java/com/antelink/sourcesquare/event/events/FilesIdentifiedEvent.java
import com.antelink.sourcesquare.event.handlers.FilesIdentifiedEventHandler;
import java.io.File;
import java.util.TreeSet;
import com.antelink.sourcesquare.event.base.ClientEvent;
import com.antelink.sourcesquare.event.base.ClientEventType;

/**
 * Copyright (C) 2009-2012 Antelink SAS
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License Version 3 as published
 * by the Free Software Foundation.
 *
 * This program 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 Affero General Public License Version 3
 * for more details.
 *
 * You should have received a copy of the GNU Affero General Public License Version
 * 3 along with this program. If not, see http://www.gnu.org/licenses/agpl.html
 *
 * Additional permission under GNU AGPL version 3 section 7
 *
 * If you modify this Program, or any covered work, by linking or combining it with
 * Eclipse Java development tools (JDT) or Jetty (or a modified version of these
 * libraries), containing parts covered by the terms of Eclipse Public License 1.0,
 * the licensors of this Program grant you additional permission to convey the
 * resulting work. Corresponding Source for a non-source form of such a combination
 * shall include the source code for the parts of Eclipse Java development tools
 * (JDT) or Jetty used as well as that of the covered work.
 */
package com.antelink.sourcesquare.event.events;



public class FilesIdentifiedEvent implements ClientEvent<FilesIdentifiedEventHandler> {

    public static final ClientEventType<FilesIdentifiedEventHandler> TYPE = new ClientEventType<FilesIdentifiedEventHandler>();

    private final TreeSet<File> fileSet;

    public FilesIdentifiedEvent(TreeSet<File> fileSet) {
        this.fileSet = fileSet;
    }

    @Override
    public ClientEventType<FilesIdentifiedEventHandler> getHandlerType() {
        return TYPE;
    }

    @Override
    public void dispatch(FilesIdentifiedEventHandler handler) {
        handler.handle(this.fileSet);

    }

    public TreeSet<File> getFileSet() {
        return this.fileSet;