Package org.eclipse.jdt.debug.ui
Class JavaDebugUtils
java.lang.Object
org.eclipse.jdt.debug.ui.JavaDebugUtils
Utilities for the Java debugger.
- Since:
- 3.1
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic org.eclipse.debug.core.model.IDebugElementgetContendedMonitor(org.eclipse.debug.core.model.IThread thread) Returns a debug element representing a monitor in contention with the given thread's underlyingIJavaThread, ornullif none.static org.eclipse.debug.core.model.IDebugElement[]getOwnedMonitors(org.eclipse.debug.core.model.IThread thread) Returns a collection of debug elements representing the monitors owned by the given thread's underlyingIJavaThread, or an empty collection if none.static org.eclipse.jface.preference.IPreferenceStoreReturns the preference store for the Java Debug UI plug-in.
- 
Constructor Details- 
JavaDebugUtilspublic JavaDebugUtils()
 
- 
- 
Method Details- 
getOwnedMonitorspublic static org.eclipse.debug.core.model.IDebugElement[] getOwnedMonitors(org.eclipse.debug.core.model.IThread thread) Returns a collection of debug elements representing the monitors owned by the given thread's underlyingIJavaThread, or an empty collection if none.The result will be empty when the user has turned off the preference to show monitor information. - Parameters:
- thread- an- IJavaThreador a thread with an- IJavaThreadadapter
- Returns:
- debug elements representing the monitors owned by the underlying
   IJavaThread, possibly empty
 
- 
getContendedMonitorpublic static org.eclipse.debug.core.model.IDebugElement getContendedMonitor(org.eclipse.debug.core.model.IThread thread) Returns a debug element representing a monitor in contention with the given thread's underlyingIJavaThread, ornullif none.The result will be nullwhen the user has turned off the preference to show monitor information.- Parameters:
- thread- an- IJavaThreador a thread with an- IJavaThreadadapter
- Returns:
- debug element representing a monitor in contention with the underlying
   IJavaThread, ornull
 
- 
getPreferenceStorepublic static org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()Returns the preference store for the Java Debug UI plug-in.- Returns:
- preference store
- Since:
- 3.2
 
 
-