net.refractions.udig.render.wms.basic
Class WMSPlugin

java.lang.Object
  extended by AbstractUIPlugin
      extended by net.refractions.udig.render.wms.basic.WMSPlugin

public class WMSPlugin
extends AbstractUIPlugin

WMS renderer plugin

Since:
0.6.0
Author:
jones

Field Summary
static java.lang.String ID
           
 
Constructor Summary
WMSPlugin()
          Construct WMSPlugin.
 
Method Summary
static WMSPlugin getDefault()
           
static boolean isDebugging(java.lang.String trace)
          Performs the Platform.getDebugOption true check on the provided trace
static void log(java.lang.String message)
           
static void log(java.lang.String message, java.lang.Throwable exception)
           
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
static void trace(java.lang.String message)
           
static void trace(java.lang.String message, java.lang.Throwable e)
          Messages that only engage if getDefault().isDebugging()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

WMSPlugin

public WMSPlugin()
Construct WMSPlugin.

Method Detail

getDefault

public static WMSPlugin getDefault()

start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Throws:
java.lang.Exception

stop

public void stop(BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Throws:
java.lang.Exception

log

public static void log(java.lang.String message)

log

public static void log(java.lang.String message,
                       java.lang.Throwable exception)

trace

public static final void trace(java.lang.String message,
                               java.lang.Throwable e)
Messages that only engage if getDefault().isDebugging()

It is much prefered to do this:


 private static final String RENDERING = "net.refractions.udig.project/render/trace";
 if( ProjectUIPlugin.getDefault().isDebugging() && "true".equalsIgnoreCase( RENDERING ) ){
      System.out.println( "your message here" );
 }


trace

public static final void trace(java.lang.String message)

isDebugging

public static boolean isDebugging(java.lang.String trace)
Performs the Platform.getDebugOption true check on the provided trace

Note: ProjectUIPlugin.getDefault().isDebugging() must also be on.

  • Trace.RENDER - trace rendering progress

Parameters:
trace - currently only RENDER is defined