org.eclipse.ui.activities.IdentifierEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2006 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.ui.activities;
/**
* An instance of this class describes changes to an instance of
* IIdentifier
. This class does not give details as to the
* specifics of a change, only that the given property on the source object has
* changed.
*
*
* This class is not intended to be extended by clients.
*
*
* @since 3.0
* @see IIdentifierListener#identifierChanged(IdentifierEvent)
*/
public final class IdentifierEvent {
private boolean activityIdsChanged;
private boolean enabledChanged;
private IIdentifier identifier;
/**
* Creates a new instance of this class.
*
* @param identifier
* the instance of the interface that changed.
* @param activityIdsChanged
* true
, iff the activityIds property changed.
* @param enabledChanged
* true
, iff the enabled property changed.
*/
public IdentifierEvent(IIdentifier identifier, boolean activityIdsChanged,
boolean enabledChanged) {
if (identifier == null) {
throw new NullPointerException();
}
this.identifier = identifier;
this.activityIdsChanged = activityIdsChanged;
this.enabledChanged = enabledChanged;
}
/**
* Returns the instance of the interface that changed.
*
* @return the instance of the interface that changed. Guaranteed not to be
* null
.
*/
public IIdentifier getIdentifier() {
return identifier;
}
/**
* Returns whether or not the activityIds property changed.
*
* @return true
, iff the activityIds property changed.
*/
public boolean hasActivityIdsChanged() {
return activityIdsChanged;
}
/**
* Returns whether or not the enabled property changed.
*
* @return true
, iff the enabled property changed.
*/
public boolean hasEnabledChanged() {
return enabledChanged;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy