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()
Returns the animator factory used by JFace to create control animator
instances.
|
static Comparator |
getComparator()
Return the comparator used by JFace to sort strings.
|
static ILogger |
getLog()
Returns the logger used by JFace to log errors.
|
static void |
setAnimatorFactory(AnimatorFactory factory)
Sets the animator factory used by JFace to create control animator
instances.
|
static void |
setComparator(Comparator comparator)
Sets the comparator used by JFace to sort strings.
|
static void |
setLog(ILogger logger)
Sets the logger used by JFace to log errors.
|
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 Comparator getComparator()
public static void setComparator(Comparator comparator)
comparator
- comparator used by JFace to sort stringspublic static void setAnimatorFactory(AnimatorFactory factory)
factory
- the AnimatorFactory to use.public static AnimatorFactory getAnimatorFactory()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.