blob: 0f2877a496e881665a8cbb1c1dfe97eb088e9dac [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2003, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - Initial API and implementation
**********************************************************************/
package org.eclipse.wst.server.core.internal;
import org.eclipse.wst.server.core.IModule;
/**
* An event fired when a module factory changes.
*/
public class ModuleFactoryEvent {
protected IModule[] added;
protected IModule[] removed;
/**
* Create a new event.
*
* @param added added modules
* @param removed removed modules
*/
public ModuleFactoryEvent(IModule[] added, IModule[] removed) {
this.added = added;
this.removed = removed;
}
/**
* Returns any modules that have been added.
*
* @return org.eclipse.wst.server.core.model.IModule[]
*/
public IModule[] getAddedModules() {
return added;
}
/**
* Returns any modules that have been removed.
*
* @return org.eclipse.wst.server.core.model.IModule[]
*/
public IModule[] getRemovedModules() {
return removed;
}
}