blob: 5505a73db08e37cfb6fe476bab6236e8f0ee32f4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Symbian Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrew Ferguson (Symbian) - Initial Implementation
*******************************************************************************/
package org.eclipse.cdt.ui;
import org.eclipse.jface.util.PropertyChangeEvent;
/**
* Implemented by classes which can optionally participate in property
* change events, and report whether an event would affect them without
* adapting to it.
* <p>
* Clients may implement this interface.
* </p>
*
* @since 5.0
*/
public interface IPropertyChangeParticipant {
/**
* @param event
* @return true if the specified event will affect the participant's
* behaviour in a way it determines potential clients could act upon.
*/
public boolean affectsBehavior(PropertyChangeEvent event);
/**
* Performs any necessary to adapt the participant to the specified event.
* @param event
*/
public void adaptToPreferenceChange(PropertyChangeEvent event);
}