| net.refractions.udig.tools.internal.ToolsPlugin
ToolsPlugin | public class ToolsPlugin extends AbstractUIPlugin (Code) | | The main plugin class to be used in the desktop.
|
Constructor Summary | |
public | ToolsPlugin() The constructor. |
ToolsPlugin | public ToolsPlugin()(Code) | | The constructor.
|
getDefault | public static ToolsPlugin getDefault()(Code) | | Returns the shared instance.
the default plugin object |
getResourceBundle | public ResourceBundle getResourceBundle()(Code) | | Returns the plugin's resource bundle,
The resource bundle |
getResourceString | public static String getResourceString(String key)(Code) | | Returns the string from the plugin's resource bundle,
or 'key' if not found.
Parameters: key - a key. the resource indicated by the key 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 this plugig is in your .options file |
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.
Parameters: message - Parameters: e - |
start | public void start(BundleContext context) throws Exception(Code) | | See Also: org.eclipse.ui.plugin.AbstractUIPlugin.start(org.osgi.framework.BundleContext) |
stop | public void stop(BundleContext context) throws Exception(Code) | | See Also: org.eclipse.ui.plugin.AbstractUIPlugin.stop(org.osgi.framework.BundleContext) |
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 -
|
|
|