/** * @see org.eclipse.debug.core.model.IDebugElement#getDebugTarget() */ public IDebugTarget getDebugTarget() { return fThread.getDebugTarget(); }
protected IJavaDebugTarget getDebugTarget() { return (IJavaDebugTarget)getThread().getDebugTarget(); }
/** * Returns the monitor the given thread is waiting for. */ public JavaContendedMonitor getContendedMonitor(IThread thread) { IJavaThread javaThread = (IJavaThread) thread.getAdapter(IJavaThread.class); if (javaThread == null || !fIsEnabled || !((IJavaDebugTarget)javaThread.getDebugTarget()).supportsMonitorInformation()) { return null; } return getJavaMonitorThread(javaThread, thread).getContendedMonitor(); }
/** * Returns <code>true</code> if SHOW_MONITOR_THREAD_INFO is on and the given thread is * in a deadlock, <code>false</code> otherwise. */ public boolean isInDeadlock(IThread thread) { IJavaThread javaThread = (IJavaThread) thread.getAdapter(IJavaThread.class); if (!fIsEnabled || !((IJavaDebugTarget)javaThread.getDebugTarget()).supportsMonitorInformation()) { return false; } return getJavaMonitorThread(javaThread, thread).isInDeadlock(); }
/** * Returns the monitors the given thread owns. */ public JavaOwnedMonitor[] getOwnedMonitors(IThread thread) { IJavaThread javaThread = (IJavaThread) thread.getAdapter(IJavaThread.class); if (javaThread == null || !fIsEnabled || !((IJavaDebugTarget)javaThread.getDebugTarget()).supportsMonitorInformation()) { return new JavaOwnedMonitor[0]; } return getJavaMonitorThread(javaThread, thread).getOwnedMonitors(); }
if (((IJavaDebugTarget) thread.getDebugTarget()).supportsMonitorInformation()) { IDebugElement[] ownedMonitors = JavaDebugUtils.getOwnedMonitors(thread); IDebugElement contendedMonitor = JavaDebugUtils.getContendedMonitor(thread); children[0] = new NoMonitorInformationElement(thread.getDebugTarget());
/** * @see IDebugElement#getDebugTarget() */ public IDebugTarget getDebugTarget() { IValue value= getValue(); if (value != null) { return getValue().getDebugTarget(); } if (fResult != null) { return fResult.getThread().getDebugTarget(); } // An expression should never be created with a null value *and* // a null result. return null; }
if (project != null) { final IEvaluationResult[] results= new IEvaluationResult[1]; IAstEvaluationEngine engine = JDIDebugPlugin.getDefault().getEvaluationEngine(project, (IJavaDebugTarget) thread.getDebugTarget()); IEvaluationListener listener= new IEvaluationListener() { public void evaluationComplete(IEvaluationResult result) {
protected int getChildCount(Object element, IPresentationContext context, IViewerUpdate monitor) throws CoreException { IJavaThread thread = (IJavaThread)element; if (!thread.isSuspended()) { return 0; } int childCount = thread.getFrameCount(); if (isDisplayMonitors()) { if (((IJavaDebugTarget) thread.getDebugTarget()).supportsMonitorInformation()) { childCount+= thread.getOwnedMonitors().length; if (thread.getContendedMonitor() != null) { childCount++; } } else { // unavailable notice childCount++; } } return childCount; }
thread = (IJavaThread) frame.getThread(); if (thread != null && (!thread.getDebugTarget().equals(target) || (!thread.isSuspended() && !thread.isPerformingEvaluation()))) {
String fieldName = wp.getFieldName(); args = new String[] {thread.getName(), fieldName, typeName}; if (wp.isAccessSuspend(thread.getDebugTarget())) { key.append("_fieldaccess"); //$NON-NLS-1$ } else { String methodName= me.getMethodName(); args = new String[] {thread.getName(), methodName, typeName}; if (me.isEntrySuspend(thread.getDebugTarget())) { key.append("_methodentry"); //$NON-NLS-1$ } else {
protected IClassFileEvaluationEngine getEvaluationEngine() { if (fEngine == null) { IPath outputLocation = getJavaProject().getProject().getWorkingLocation(JDIDebugUIPlugin.getUniqueIdentifier()); java.io.File f = new java.io.File(outputLocation.toOSString()); fEngine = EvaluationManager.newClassFileEvaluationEngine(getJavaProject(), (IJavaDebugTarget)getThread().getDebugTarget(), f); } if (getImports() != null) { fEngine.setImports(getImports()); } else { fEngine.setImports(new String[]{}); } return fEngine; }
if (e.getDetail() == DebugEvent.STEP_END && (lineNumber == 20 || lineNumber == 21) && f.getDeclaringTypeName().equals("org.eclipse.jdt.internal.debug.ui.snippeteditor.ScrapbookMain1") //$NON-NLS-1$ && jt.getDebugTarget() == fVM) { } else if (e.getDetail() == DebugEvent.BREAKPOINT && bps.length > 0 && bps[0].equals(ScrapbookLauncher.getDefault().getMagicBreakpoint(jt.getDebugTarget()))) {
return; IJavaDebugTarget debugTarget= (IJavaDebugTarget) thread.getDebugTarget();