public class JavaDebugUtils extends Object
This class is not intended to be subclassed or instantiated.
| Constructor and Description |
|---|
JavaDebugUtils() |
| Modifier and Type | Method and Description |
|---|---|
static IDebugElement |
getContendedMonitor(IThread thread)
Returns a debug element representing a monitor in contention with
the given thread's underlying
IJavaThread, or null
if none. |
static IDebugElement[] |
getOwnedMonitors(IThread thread)
Returns a collection of debug elements representing the monitors owned
by the given thread's underlying
IJavaThread, or an empty
collection if none. |
static IPreferenceStore |
getPreferenceStore()
Returns the preference store for the Java Debug UI plug-in.
|
public static IDebugElement[] getOwnedMonitors(IThread thread)
IJavaThread, or an empty
collection if none.
The result will be empty when the user has turned off the preference to show monitor information.
thread - an IJavaThread or a thread with an IJavaThread
adapterIJavaThread, possibly emptypublic static IDebugElement getContendedMonitor(IThread thread)
IJavaThread, or null
if none.
The result will be null when the user has turned off the preference
to show monitor information.
thread - an IJavaThread or a thread with an IJavaThread
adapterIJavaThread, or nullpublic static IPreferenceStore getPreferenceStore()
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.