|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlugin
net.refractions.udig.printing.model.PrintingModelPlugin
public class PrintingModelPlugin
The main plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
BOX_PRINTER_EXTENSION_ID
|
static java.lang.String |
ID
Plugin ID |
Constructor Summary | |
---|---|
PrintingModelPlugin()
The constructor. |
Method Summary | |
---|---|
static PrintingModelPlugin |
getDefault()
Returns the shared instance. |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle |
static java.lang.String |
getResourceString(java.lang.String key)
|
static boolean |
isDebugging(java.lang.String trace)
Performs the Platform.getDebugOption true check on the provided trace |
static void |
log(java.lang.String message,
java.lang.Throwable t)
Logs the Throwable in the plugin's log. |
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 |
---|
public static final java.lang.String BOX_PRINTER_EXTENSION_ID
public static final java.lang.String ID
Constructor Detail |
---|
public PrintingModelPlugin()
Method Detail |
---|
public void start(BundleContext context) throws java.lang.Exception
java.lang.Exception
public void stop(BundleContext context) throws java.lang.Exception
java.lang.Exception
public static PrintingModelPlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
key
- string used to look up the resource
public java.util.ResourceBundle getResourceBundle()
public static void log(java.lang.String message, java.lang.Throwable t)
This will be a user visable ERROR iff:
message
- t
- public static void trace(java.lang.String message, java.lang.Throwable e)
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" );
}
message
- e
- public static void trace(java.lang.String message)
public static boolean isDebugging(java.lang.String trace)
Note: ProjectUIPlugin.getDefault().isDebugging() must also be on.
trace
- currently only RENDER is defined
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |