| net.refractions.udig.catalog.internal.wfs.WfsPlugin
WfsPlugin | public class WfsPlugin extends AbstractUIPlugin (Code) | | The main plugin class to be used in the desktop.
|
Field Summary | |
final public static String | ID |
Constructor Summary | |
public | WfsPlugin() The constructor. |
WfsPlugin | public WfsPlugin()(Code) | | The constructor.
|
getDefault | public static WfsPlugin getDefault()(Code) | | Returns the shared instance.
|
getResourceBundle | public ResourceBundle getResourceBundle()(Code) | | Returns the plugin's resource bundle,
|
getResourceString | public static String getResourceString(String key)(Code) | | Returns the string from the plugin's resource bundle,
or 'key' if not found.
|
isDebugging | public static boolean isDebugging(String trace)(Code) | | 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 true if -debug is on for this plugin |
log | public static void log(String message, Throwable t)(Code) | | Logs the Throwable in the plugin's log.
This will be a user visable ERROR iff:
- t is an Exception we are assuming it is human readable or if a message is provided
Parameters: message - Parameters: t - |
start | public void start(BundleContext context) throws Exception(Code) | | This method is called upon plug-in activation
|
stop | public void stop(BundleContext context) throws Exception(Code) | | This method is called when the plug-in is stopped
|
trace | public static void trace(String message, Throwable e)(Code) | | 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" );
}
Parameters: message - Parameters: e - |
|
|