org.eclipse.core.internal.utils
Class Policy
java.lang.Object
org.eclipse.core.internal.utils.Policy
public class Policy
- extends java.lang.Object
Method Summary |
static void |
checkCanceled(org.eclipse.core.runtime.IProgressMonitor monitor)
|
static void |
debug(java.lang.String message)
Print a debug message to the console. |
static void |
log(int severity,
java.lang.String message,
java.lang.Throwable t)
|
static void |
log(org.eclipse.core.runtime.IStatus status)
|
static void |
log(java.lang.Throwable t)
Logs a throwable, assuming severity of error |
static org.eclipse.core.runtime.IProgressMonitor |
monitorFor(org.eclipse.core.runtime.IProgressMonitor monitor)
|
static org.eclipse.core.runtime.IProgressMonitor |
subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks)
|
static org.eclipse.core.runtime.IProgressMonitor |
subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks,
int style)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buildOnCancel
public static final boolean buildOnCancel
- See Also:
- Constant Field Values
DEBUG
public static boolean DEBUG
DEBUG_AUTO_REFRESH
public static boolean DEBUG_AUTO_REFRESH
DEBUG_BUILD_DELTA
public static boolean DEBUG_BUILD_DELTA
DEBUG_BUILD_FAILURE
public static boolean DEBUG_BUILD_FAILURE
DEBUG_BUILD_INTERRUPT
public static boolean DEBUG_BUILD_INTERRUPT
DEBUG_BUILD_INVOKING
public static boolean DEBUG_BUILD_INVOKING
DEBUG_BUILD_NEEDED
public static boolean DEBUG_BUILD_NEEDED
DEBUG_BUILD_NEEDED_STACK
public static boolean DEBUG_BUILD_NEEDED_STACK
DEBUG_BUILD_STACK
public static boolean DEBUG_BUILD_STACK
DEBUG_CONTENT_TYPE
public static boolean DEBUG_CONTENT_TYPE
DEBUG_CONTENT_TYPE_CACHE
public static boolean DEBUG_CONTENT_TYPE_CACHE
DEBUG_HISTORY
public static boolean DEBUG_HISTORY
DEBUG_NATURES
public static boolean DEBUG_NATURES
DEBUG_PREFERENCES
public static boolean DEBUG_PREFERENCES
DEBUG_RESTORE
public static boolean DEBUG_RESTORE
DEBUG_RESTORE_MARKERS
public static boolean DEBUG_RESTORE_MARKERS
DEBUG_RESTORE_MASTERTABLE
public static boolean DEBUG_RESTORE_MASTERTABLE
DEBUG_RESTORE_METAINFO
public static boolean DEBUG_RESTORE_METAINFO
DEBUG_RESTORE_SNAPSHOTS
public static boolean DEBUG_RESTORE_SNAPSHOTS
DEBUG_RESTORE_SYNCINFO
public static boolean DEBUG_RESTORE_SYNCINFO
DEBUG_RESTORE_TREE
public static boolean DEBUG_RESTORE_TREE
DEBUG_SAVE
public static boolean DEBUG_SAVE
DEBUG_SAVE_MARKERS
public static boolean DEBUG_SAVE_MARKERS
DEBUG_SAVE_MASTERTABLE
public static boolean DEBUG_SAVE_MASTERTABLE
DEBUG_SAVE_METAINFO
public static boolean DEBUG_SAVE_METAINFO
DEBUG_SAVE_SYNCINFO
public static boolean DEBUG_SAVE_SYNCINFO
DEBUG_SAVE_TREE
public static boolean DEBUG_SAVE_TREE
DEBUG_STRINGS
public static boolean DEBUG_STRINGS
endOpWork
public static int endOpWork
MAX_BUILD_DELAY
public static final long MAX_BUILD_DELAY
- See Also:
- Constant Field Values
MIN_BUILD_DELAY
public static final long MIN_BUILD_DELAY
- See Also:
- Constant Field Values
opWork
public static int opWork
totalWork
public static final int totalWork
- See Also:
- Constant Field Values
Policy
public Policy()
checkCanceled
public static void checkCanceled(org.eclipse.core.runtime.IProgressMonitor monitor)
debug
public static void debug(java.lang.String message)
- Print a debug message to the console.
Pre-pend the message with the current date and the name of the current thread.
log
public static void log(int severity,
java.lang.String message,
java.lang.Throwable t)
log
public static void log(org.eclipse.core.runtime.IStatus status)
log
public static void log(java.lang.Throwable t)
- Logs a throwable, assuming severity of error
- Parameters:
t
-
monitorFor
public static org.eclipse.core.runtime.IProgressMonitor monitorFor(org.eclipse.core.runtime.IProgressMonitor monitor)
subMonitorFor
public static org.eclipse.core.runtime.IProgressMonitor subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks)
subMonitorFor
public static org.eclipse.core.runtime.IProgressMonitor subMonitorFor(org.eclipse.core.runtime.IProgressMonitor monitor,
int ticks,
int style)