01: /*******************************************************************************
02: * Copyright (c) 2004, 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.ui.internal.preferences;
11:
12: /**
13: * @since 3.1
14: */
15: public interface IDynamicPropertyMap extends IPropertyMap {
16: /**
17: * Attaches a property map listener to this map. The listener will be notified
18: * whenever one of the properties in the map is changed, added, or removed.
19: *
20: * @param listener
21: * @since 3.1
22: */
23: public void addListener(IPropertyMapListener listener);
24:
25: /**
26: * Attaches a listener that will receive notifications when any
27: * of the given properties change. If an identical listener is already registered,
28: * then this will add additional IDs to the set of properties being monitored
29: * by the given listener.
30: *
31: * @param listener
32: * @param propertyIds
33: * @since 3.1
34: */
35: public void addListener(String[] propertyIds,
36: IPropertyMapListener listener);
37:
38: /**
39: * Removes a property map listener from this map . The listener will no longer
40: * be notified whenever one of the properties in the map is changed, added, or removed.
41: *
42: * @param listener
43: * @since 3.1
44: */
45: public void removeListener(IPropertyMapListener listener);
46: }
|