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.render.internal.gridcoverage.basic;
18:
19: import org.eclipse.core.runtime.IStatus;
20: import org.eclipse.core.runtime.Plugin;
21: import org.eclipse.core.runtime.Status;
22: import org.osgi.framework.BundleContext;
23:
24: /**
25: * Plugin class for BasicGridCoverage
26: * @author jones
27: * @since 0.6.0
28: */
29: public class RendererPlugin extends Plugin {
30:
31: private static RendererPlugin plugin;
32:
33: /**
34: * Construct <code>RendererPlugin</code>.
35: *
36: */
37: public RendererPlugin() {
38: super ();
39: plugin = this ;
40: }
41:
42: public static Plugin getDefault() {
43: return plugin;
44: }
45:
46: public static void log(Exception e) {
47: getDefault()
48: .getLog()
49: .log(
50: new Status(
51: IStatus.ERROR,
52: "net.refractions.udig.render.gridcoverage.basic", //$NON-NLS-1$
53: 0, e.getLocalizedMessage(), e));
54: }
55:
56: public void start(BundleContext context) throws Exception {
57: super .start(context);
58: }
59:
60: public void stop(BundleContext context) throws Exception {
61: super.stop(context);
62: }
63: }
|