| net.refractions.udig.style.sld.SLDPlugin
SLDPlugin | public class SLDPlugin extends AbstractUIPlugin (Code) | | The main plugin class to be used in the desktop.
|
Constructor Summary | |
public | SLDPlugin() The constructor. |
ICONS_PATH | final public static String ICONS_PATH(Code) | | Icons path (value "icons/")
|
SLDPlugin | public SLDPlugin()(Code) | | The constructor.
|
getDefault | public static SLDPlugin getDefault()(Code) | | Returns the shared instance.
|
getImages | public Images getImages()(Code) | | Images instance for use with ImageConstants.
Images for use with ImageConstants. |
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 |
log | public static void log(String message, Throwable e)(Code) | | Writes an info log in the plugin's log.
This should be used for user level messages.
|
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" );
}
|
|
|