Mobile Tools for Java
Release 1.0

org.eclipse.mtj.toolkit.uei
Class UeiPlugin

java.lang.Object
  extended by Plugin
      extended by org.eclipse.mtj.toolkit.uei.UeiPlugin

public class UeiPlugin
extends Plugin

The main plug-in class to be used in the desktop.


Field Summary
static String UEI_DEBUG_SYSTEM_PROPERTY
          A debug flag used for debugging the UEI device import process.
 
Constructor Summary
UeiPlugin()
          The constructor.
 
Method Summary
static void debugLog(String message)
          Log the specified message for debug purposes.
static void debugLog(String message, Exception e)
          Log the specified message for debug purposes.
static UeiPlugin getDefault()
          Returns the shared instance.
static boolean isUEIDebugEnabled()
          Check if the UEI device import debugging is enable.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UEI_DEBUG_SYSTEM_PROPERTY

public static String UEI_DEBUG_SYSTEM_PROPERTY
A debug flag used for debugging the UEI device import process.

Constructor Detail

UeiPlugin

public UeiPlugin()
The constructor.

Method Detail

debugLog

public static void debugLog(String message)
Log the specified message for debug purposes.

This method will log the message argument when System property UEI_DEBUG_SYSTEM_PROPERTY is set as true.

The logged message will be: [UEI] <message argument>

Parameters:
message - the message to be logged

debugLog

public static void debugLog(String message,
                            Exception e)
Log the specified message for debug purposes.

This method will log the message argument when System property UEI_DEBUG_SYSTEM_PROPERTY is set as true.

The logged message will be: [UEI] <message argument>

Parameters:
message - the message to be logged
e - the exception to be logged

getDefault

public static UeiPlugin getDefault()
Returns the shared instance.


isUEIDebugEnabled

public static boolean isUEIDebugEnabled()
Check if the UEI device import debugging is enable.

Returns:
true if debug is enabled; false otherwise.

start

public void start(BundleContext context)
           throws Exception
This method is called upon plug-in activation

Throws:
Exception

stop

public void stop(BundleContext context)
          throws Exception
This method is called when the plug-in is stopped

Throws:
Exception

Mobile Tools for Java
Release 1.0