public class Policy extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_DIALOG_NO_PARENT
A flag to indicate whether unparented dialogs should be checked.
|
static boolean |
DEFAULT
Constant for the the default setting for debug options.
|
static String |
JFACE
The unique identifier of the JFace plug-in.
|
static boolean |
TRACE_ACTIONS
A flag to indicate whether actions are being traced.
|
static boolean |
TRACE_TOOLBAR
A flag to indicate whether toolbars are being traced.
|
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
static AnimatorFactory |
getAnimatorFactory()
Deprecated.
this is no longer in use as of 3.3
|
static Comparator<Object> |
getComparator()
Return the comparator used by JFace to sort strings.
|
static ErrorSupportProvider |
getErrorSupportProvider()
Return the ErrorSupportProvider for the receiver.
|
static ILogger |
getLog()
Returns the logger used by JFace to log errors.
|
static StatusHandler |
getStatusHandler()
Returns the status handler used by JFace to handle statuses.
|
static void |
logException(Exception exception)
Log the Exception to the logger.
|
static void |
setAnimatorFactory(AnimatorFactory factory)
Deprecated.
this is no longer in use as of 3.3
|
static void |
setComparator(Comparator<Object> comparator)
Sets the comparator used by JFace to sort strings.
|
static void |
setErrorSupportProvider(ErrorSupportProvider provider)
Set the error support provider for error dialogs.
|
static void |
setLog(ILogger logger)
Sets the logger used by JFace to log errors.
|
static void |
setStatusHandler(StatusHandler status)
Sets the status handler used by JFace to handle statuses.
|
public static final boolean DEFAULT
public static final String JFACE
public static boolean DEBUG_DIALOG_NO_PARENT
public static boolean TRACE_ACTIONS
public static boolean TRACE_TOOLBAR
public static void setLog(ILogger logger)
logger
- the logger to use, or null
to use the default
loggerpublic static ILogger getLog()
The default logger prints the status to System.err
.
public static void setStatusHandler(StatusHandler status)
status
- the handler to use, or null
to use the default
onepublic static StatusHandler getStatusHandler()
public static Comparator<Object> getComparator()
public static void setComparator(Comparator<Object> comparator)
comparator
- comparator used by JFace to sort strings@Deprecated public static void setAnimatorFactory(AnimatorFactory factory)
factory
- the AnimatorFactory to use.@Deprecated public static AnimatorFactory getAnimatorFactory()
public static void setErrorSupportProvider(ErrorSupportProvider provider)
provider
- public static ErrorSupportProvider getErrorSupportProvider()
null
if this has not been
setpublic static void logException(Exception exception)
exception
-
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.