public class JavaDebugUtils extends Object
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 null
public static IPreferenceStore getPreferenceStore()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.