01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.core;
11:
12: import org.eclipse.pde.core.IModelChangedListener;
13:
14: /**
15: * This filted is to be used when listeners are copied from
16: * model to model. It allows some listeners to be skipped in
17: * the process.
18: */
19: public interface IModelChangedListenerFilter {
20: /**
21: * Tests if the listener should be accepted.
22: * @param listener the listener to test
23: * @return <code>true</code> if the listener should pass
24: * the filter, <code>false</code> otherwise.
25: */
26: public boolean accept(IModelChangedListener listener);
27:
28: }
|