blob: 30005a7857106e89c3bea1627398b2e728e77fd7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2004 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
*******************************************************************************/
/*
* Created on Feb 10, 2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.eclipse.wst.common.frameworks.internal.enablement;
/**
* @author schacher
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class EnablementIdentifierEvent {
private boolean functionGroupIdsChanged;
private boolean enabledChanged;
private IEnablementIdentifier identifier;
public EnablementIdentifierEvent(IEnablementIdentifier identifier, boolean functionGroupIdsChanged, boolean enabledChanged) {
if (identifier == null)
throw new NullPointerException();
this.identifier = identifier;
this.functionGroupIdsChanged = functionGroupIdsChanged;
this.enabledChanged = enabledChanged;
}
/**
* Returns the instance of the interface that changed.
*
* @return the instance of the interface that changed. Guaranteed not to be <code>null</code>.
*/
public IEnablementIdentifier getIdentifier() {
return identifier;
}
/**
* Returns whether or not the functionGroupIds property changed.
*
* @return true, iff the functionGroupIds property changed.
*/
public boolean hasFunctionGroupIdsChanged() {
return functionGroupIdsChanged;
}
/**
* Returns whether or not the enabled property changed.
*
* @return true, iff the enabled property changed.
*/
public boolean hasEnabledChanged() {
return enabledChanged;
}
/*
* (non-Javadoc)
*
* @see java.lang.Object#toString()
*/
public String toString() {
return "EnablementIdentifierEvent [identifier=" + identifier.toString() + ", functionGroupIdsChanged=" + hasFunctionGroupIdsChanged() + ", enabledChanged=" + hasEnabledChanged() + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
}