01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.catalog;
18:
19: import java.util.EventListener;
20:
21: /**
22: * Allows client code to notice catalog changes.
23: * <p>
24: * You can use various visitors to explore the changes
25: * </p>
26: *
27: * @author David Zwiers, Refractions Research
28: * @since 0.6
29: */
30: public interface IResolveChangeListener extends EventListener {
31: /**
32: * Notifies this listener that some changes are happening, or have already happened.
33: * <p>
34: * The supplied event gives details. This event object (and the resource delta within it) is
35: * valid only for the duration of the invocation of this method.
36: * </p>
37: * <p>
38: * Note that during resource change event notification, further changes to resources may be
39: * disallowed.
40: * </p>
41: * <p>
42: * Note that this method is not guaranteed to execute in the UI thread, so UI work must be
43: * performed with Display.getDefault().asyncExec();
44: * </p>
45: *
46: * @param event the resource change event
47: * @see IResourceDelta
48: */
49: public void changed(IResolveChangeEvent event);
50: }
|