public class TelesalesUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements org.eclipse.ui.IStartup
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static boolean | DEBUG
Signifies whether DEBUG mode is enabled
|
static boolean | DEBUG_LOGGING
Signifies whether DEBUG logging is enabled
|
static boolean | DEBUG_TRACING
Signifies whether DEBUG tracing is enabled
|
static boolean | EXTENSIONS_LOGGING
Signifies whether EXTENSIONS logging is enabled
|
static java.lang.String | PLUGIN_ID
Unique identifier constant (value "com.ibm.commerce.telesales.ui") for the UI plug-in.
|
Constructor and Description |
---|
TelesalesUIPlugin()
Constructs an instance of this plug-in run time class.
|
Modifier and Type | Method and Description |
---|---|
void | earlyStartup()
This method initializes the Active Key Configuration and the Perspective-wide status line contributions.
|
static java.lang.String | format(java.lang.String key, java.lang.String arg)
This method gets a text string from a resource bundle.
|
static java.lang.String | format(java.lang.String key, java.lang.String[] args)
This method gets a text string from a resource bundle.
|
static org.eclipse.ui.IWorkbenchPage | getActivePage()
This method returns the active workbench page or null if no active workbench page can be determined.
|
static org.eclipse.ui.IWorkbenchWindow | getActiveWorkbenchWindow()
This method returns the active workbench window.
|
java.lang.String | getAutoStore()
This method returns the auto-store if a valid auto-store is provided.
|
static int | getCustomerCounter()
This method gets the customer counter.
|
com.ibm.icu.util.ULocale | getLocale()
This method returns the user's Locale preference.
|
static int | getOrderCounter()
This method gets the order counter
|
static TelesalesUIPlugin | getPlugin()
This method returns this plug-in instance.
|
static int | getQuoteCounter()
This method gets the quote counter
|
java.util.ResourceBundle | getResourceBundle()
This method returns the plug-in's resource bundle.
|
static int | getRmaCounter()
This method gets the rma counter
|
static org.eclipse.swt.widgets.Shell | getShell()
This method returns the active workbench window's shell.
|
static java.lang.String | getString(java.lang.String key)
This method returns the string from the plug-in's resource bundle, or 'key' if not found.
|
static int | getTicklerCounter()
This method gets the tickler counter
|
static org.eclipse.swt.widgets.Shell | getTopMostShell()
This method checks to see if there are descendant shells to the workbench shell then returns the last descendant shell (or topmost Shell).
|
static java.lang.String | getUniqueIdentifier()
This method returns the unique identifier of this plug-in.
|
static org.eclipse.swt.widgets.Shell[] | getWorkbenchDescendantShells()
This method returns an array containing all shells which are descendants to the application workbench shell.
|
boolean | hasAutoStore()
This method returns whether the user has requested to use the auto-store.
|
static void | increaseCustomerCounter()
This method increases the new customer counter.
|
static void | increaseOrderCounter()
This method increases the new order counter.
|
static void | increaseQuoteCounter()
This method increases the new quote counter.
|
static void | increaseRMACounter()
This method increases the new Return counter.
|
static void | increaseTicklerCounter()
This method increases the new tickler counter.
|
protected void | initializeSingleClickOption()
This method sets the open method based on the preferences set by the user.
|
static void | log(org.eclipse.core.runtime.IStatus status)
This method logs a status message.
|
static void | log(java.lang.Throwable exception)
This method logs an exception.
|
static void | logEntry(java.lang.String className, java.lang.String methodName, java.lang.Object[] inputParameters)
This method logs the entry message for a method execution.
|
static void | logErrorMessage(java.lang.String message)
This method logs an error message.
|
static void | logException(java.lang.Throwable exception, java.lang.String title, java.lang.String message)
This method logs an exception.
|
static void | logExit(java.lang.String className, java.lang.String methodName, java.lang.Object[] inputParameters)
This method logs the exit message for a method execution.
|
static void | selectAndReveal(java.lang.Object resource, org.eclipse.ui.IWorkbenchWindow window)
This method attempts to select and reveal the specified resource in all parts within the supplied workbench window's active page.
|
static void | setCustomerCounter(int counter)
This method sets the customer counter.
|
static void | setOrderCounter(int counter)
This method sets the order counter
|
static void | setQuoteCounter(int counter)
This method sets the quote counter
|
static void | setRmaCounter(int counter)
This method sets the rma counter
|
static void | setTicklerCounter(int counter)
This method sets the tickler counter
|
void | shutdown()
This method will be called in a separate thread after the workbench initializes.
|
void | start(org.osgi.framework.BundleContext context)
This method starts this plug-in.
|
void | stop(org.osgi.framework.BundleContext context)
This method stops this plug-in.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String PLUGIN_ID
public static boolean DEBUG
public static boolean DEBUG_LOGGING
public static boolean DEBUG_TRACING
public static boolean EXTENSIONS_LOGGING
public TelesalesUIPlugin()
An instance of this plug-in run time class is automatically created when the facilities provided by the com.ibm.commerce.telesales.ui plug-in are required. Clients must never explicitly instantiate a plug-in run time class.
public void earlyStartup()
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
public static java.lang.String format(java.lang.String key, java.lang.String[] args)
public static java.lang.String format(java.lang.String key, java.lang.String arg)
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
public static org.eclipse.ui.IWorkbenchPage getActivePage()
public java.lang.String getAutoStore()
public com.ibm.icu.util.ULocale getLocale()
public static TelesalesUIPlugin getPlugin()
public java.util.ResourceBundle getResourceBundle()
public static java.lang.String getString(java.lang.String key)
public static org.eclipse.swt.widgets.Shell getShell()
public static org.eclipse.swt.widgets.Shell[] getWorkbenchDescendantShells()
public static org.eclipse.swt.widgets.Shell getTopMostShell()
This is especially convenient when you need a handle on the Shell of a modal dialog that is currently opened.
public static java.lang.String getUniqueIdentifier()
public boolean hasAutoStore()
protected void initializeSingleClickOption()
public static void log(org.eclipse.core.runtime.IStatus status)
public static void logErrorMessage(java.lang.String message)
public static void logException(java.lang.Throwable exception, java.lang.String title, java.lang.String message)
public static void log(java.lang.Throwable exception)
public static void selectAndReveal(java.lang.Object resource, org.eclipse.ui.IWorkbenchWindow window)
Checks all parts in the active page to see if they implement ISetSelectionTarget, either directly or as an adapter. If so, tells the part to select and reveal the specified resource.
public void shutdown()
public static void increaseCustomerCounter()
public static void increaseOrderCounter()
public static void increaseQuoteCounter()
public static void increaseTicklerCounter()
public static void increaseRMACounter()
public static int getCustomerCounter()
public static void setCustomerCounter(int counter)
public static int getOrderCounter()
public static void setOrderCounter(int counter)
public static int getQuoteCounter()
public static void setQuoteCounter(int counter)
public static int getTicklerCounter()
public static void setTicklerCounter(int counter)
public static int getRmaCounter()
public static void setRmaCounter(int counter)
public static void logEntry(java.lang.String className, java.lang.String methodName, java.lang.Object[] inputParameters)
public static void logExit(java.lang.String className, java.lang.String methodName, java.lang.Object[] inputParameters)