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.tools.internal;
18:
19: import net.refractions.udig.project.ui.tool.AbstractActionTool;
20:
21: /**
22: * A tool that triggers a rerender
23: *
24: * @author jeichar
25: * @since 0.3
26: */
27: public class RefreshTool extends AbstractActionTool {
28:
29: public void run() {
30: // Force an update of the renderers
31: context.getRenderManager().refresh(null);
32: }
33:
34: public void dispose() {
35: // do nothing
36: }
37:
38: }
|