Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.debug.ui
Class JavaDebugUtils


java.lang.Object
  extended by 
org.eclipse.jdt.debug.ui.JavaDebugUtils

public class JavaDebugUtils
extends Object

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 Summary
JavaDebugUtils ()
           
 
Method Summary
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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDebugUtils

public JavaDebugUtils()
Method Detail

getOwnedMonitors

public 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.

The result will be empty when the user has turned off the preference to show monitor information.

Parameters:
thread - an IJavaThread or a thread with an IJavaThread adapter
Returns:
debug elements representing the monitors owned by the underlying IJavaThread, possibly empty

getContendedMonitor

public 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.

The result will be null when the user has turned off the preference to show monitor information.

Parameters:
thread - an IJavaThread or a thread with an IJavaThread adapter
Returns:
debug element representing a monitor in contention with the underlying IJavaThread, or null

getPreferenceStore

public static 
IPreferenceStore getPreferenceStore()
Returns the preference store for the Java Debug UI plug-in.

Returns:
preference store
Since:
3.2

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire