org.eclipse.core.internal.utils
Class Policy

java.lang.Object
  extended by org.eclipse.core.internal.utils.Policy

public class Policy
extends java.lang.Object


Field Summary
static boolean buildOnCancel
           
static boolean DEBUG
           
static boolean DEBUG_AUTO_REFRESH
           
static boolean DEBUG_BUILD_DELTA
           
static boolean DEBUG_BUILD_FAILURE
           
static boolean DEBUG_BUILD_INTERRUPT
           
static boolean DEBUG_BUILD_INVOKING
           
static boolean DEBUG_BUILD_NEEDED
           
static boolean DEBUG_BUILD_NEEDED_STACK
           
static boolean DEBUG_BUILD_STACK
           
static boolean DEBUG_CONTENT_TYPE
           
static boolean DEBUG_CONTENT_TYPE_CACHE
           
static boolean DEBUG_HISTORY
           
static boolean DEBUG_NATURES
           
static boolean DEBUG_PREFERENCES
           
static boolean DEBUG_RESTORE
           
static boolean DEBUG_RESTORE_MARKERS
           
static boolean DEBUG_RESTORE_MASTERTABLE
           
static boolean DEBUG_RESTORE_METAINFO
           
static boolean DEBUG_RESTORE_SNAPSHOTS
           
static boolean DEBUG_RESTORE_SYNCINFO
           
static boolean DEBUG_RESTORE_TREE
           
static boolean DEBUG_SAVE
           
static boolean DEBUG_SAVE_MARKERS
           
static boolean DEBUG_SAVE_MASTERTABLE
           
static boolean DEBUG_SAVE_METAINFO
           
static boolean DEBUG_SAVE_SYNCINFO
           
static boolean DEBUG_SAVE_TREE
           
static boolean DEBUG_STRINGS
           
static int endOpWork
           
static long MAX_BUILD_DELAY
           
static long MIN_BUILD_DELAY
           
static int opWork
           
static int totalWork
           
 
Constructor Summary
Policy()
           
 
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
 

Field Detail

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
Constructor Detail

Policy

public Policy()
Method Detail

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)