| net.refractions.udig.catalog.internal.arcsde.ArcsdePlugin
ArcsdePlugin | public class ArcsdePlugin extends AbstractUIPlugin (Code) | | The main plugin class to be used in the desktop.
|
Field Summary | |
final public static String | ID |
ArcsdePlugin | public ArcsdePlugin()(Code) | | The constructor.
|
getResourceBundle | public ResourceBundle getResourceBundle()(Code) | | Returns the plugin's resource bundle,
x |
getResourceString | public static String getResourceString(String key)(Code) | | Returns the string from the plugin's resource bundle, or 'key' if not found.
Parameters: key - x |
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 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
|
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");
}
|
|
|