private IJavaObject getObject(IJavaObject object, String field, boolean superfield) throws DebugException { IJavaFieldVariable variable = object.getField(field, superfield); if (variable != null) { IValue value = variable.getValue(); if (value instanceof IJavaObject) return (IJavaObject) value; } return null; }
protected IJavaType getTypeToOpen(IDebugElement element) throws CoreException { if (element instanceof IJavaStackFrame) { IJavaStackFrame frame = (IJavaStackFrame) element; if (frame.isStatic()) { return frame.getReferenceType(); } return frame.getThis().getJavaType(); } return null; } }
protected IJavaType getTypeToOpen(IDebugElement element) throws CoreException { if (element instanceof IJavaVariable) { IJavaVariable variable = (IJavaVariable) element; return ((IJavaValue)variable.getValue()).getJavaType(); } return null; }
public ExceptionBreakpointChange(IJavaExceptionBreakpoint breakpoint) throws CoreException { super(breakpoint); fExclusionFilters = breakpoint.getExclusionFilters(); fInclusionFilters = breakpoint.getInclusionFilters(); fCaught = breakpoint.isCaught(); fUncaught = breakpoint.isUncaught(); fChecked = breakpoint.isChecked(); }
/** * Constructor * @param breakpoint * @throws CoreException */ public MethodBreakpointChange(IJavaMethodBreakpoint breakpoint) throws CoreException { super(breakpoint); fMethodName = breakpoint.getMethodName(); fSignature = breakpoint.getMethodSignature(); fEntry = breakpoint.isEntry(); fExit = breakpoint.isExit(); fNativeOnly = breakpoint.isNativeOnly(); }
public WatchpointChange(IJavaWatchpoint watchpoint) throws CoreException { super(watchpoint); fFieldName = watchpoint.getFieldName(); fAccess = watchpoint.isAccess(); fModification = watchpoint.isModification(); }
/** * Returns whether this variable's VM supports instance/reference information. * * @param var variable * @return whether this variable's VM supports instance/reference information */ protected boolean isInstanceRetrievalAvailable(IJavaVariable var) { return ((IJavaDebugTarget)var.getDebugTarget()).supportsInstanceRetrieval() && !(var instanceof JDIReferenceListVariable); } }
/** * Build the text for an IJavaDebugTarget. */ protected String getDebugTargetText(IJavaDebugTarget debugTarget) throws DebugException { String labelString= debugTarget.getName(); if (debugTarget.isSuspended()) { labelString += DebugUIMessages.JDIModelPresentation_target_suspended; } return labelString; }
protected IJavaType getTypeToOpen(IDebugElement element) throws CoreException { if (element instanceof IJavaVariable) { IJavaVariable variable = (IJavaVariable) element; return variable.getJavaType(); } return null; }
/** * @see BreakpointToggleAction#doAction(IJavaBreakpoint) */ public void doAction(IJavaBreakpoint breakpoint) throws CoreException { //will only be called after isEnabledFor so cast is safe IJavaExceptionBreakpoint exception= (IJavaExceptionBreakpoint)breakpoint; exception.setUncaught(!exception.isUncaught()); }
/** * @see BreakpointToggleAction#doAction(IJavaBreakpoint) */ public void doAction(IJavaBreakpoint breakpoint) throws CoreException { //will only be called after isEnabledFor so cast is safe IJavaExceptionBreakpoint exception= (IJavaExceptionBreakpoint)breakpoint; exception.setCaught(!exception.isCaught()); }
/** * @see BreakpointToggleAction#doAction(IJavaBreakpoint) */ public void doAction(IJavaBreakpoint breakpoint) throws CoreException { if(breakpoint.getSuspendPolicy() != fCurrentPolicy) { breakpoint.setSuspendPolicy(fCurrentPolicy); } }
/** * @see org.eclipse.debug.core.model.IDebugElement#getModelIdentifier() */ public String getModelIdentifier() { return fThread.getModelIdentifier(); }
/** * @see org.eclipse.debug.core.model.IDebugElement#getDebugTarget() */ public IDebugTarget getDebugTarget() { return fThread.getDebugTarget(); }
/** * @see org.eclipse.debug.core.model.ISuspendResume#isSuspended() */ public boolean isSuspended() { return fThread.isSuspended(); }
/** * @see BreakpointToggleAction#getToggleState(IJavaBreakpoint) */ protected boolean getToggleState(IJavaBreakpoint breakpoint) throws CoreException { return ((IJavaMethodBreakpoint)breakpoint).isEntry(); }
/** * @see BreakpointToggleAction#getToggleState(IJavaBreakpoint) */ protected boolean getToggleState(IJavaBreakpoint breakpoint) throws CoreException { //will only be called after isEnabledFor so cast is safe IJavaExceptionBreakpoint exception= (IJavaExceptionBreakpoint)breakpoint; return exception.isUncaught(); }
public IDebugTarget getDebugTarget() { return fMonitor.getDebugTarget(); } /* (non-Javadoc)
/** * @see org.eclipse.debug.core.model.IDebugElement#getLaunch() */ public ILaunch getLaunch() { return fThread.getLaunch(); }