/** * Fires a creation event. */ protected void fireCreationEvent() { fireEvent(new DebugEvent(this, DebugEvent.CREATE)); }
/** * Sets the pending state of this expression. * * @param pending whether or not this expression should be * flagged as pending */ protected void setPending(boolean pending) { synchronized (this) { fPending= pending; } fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.STATE)); }
@Override public void reset() { variableCollector = null; fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT)); }
/** * Fires a change event. */ protected void fireChangeEvent() { fireEvent(new DebugEvent(this, DebugEvent.CHANGE)); }
/** * Fires a creation event for this debug element. */ public void fireCreationEvent() { fireEvent(new DebugEvent(this, DebugEvent.CREATE)); }
/** * Fires a resume for this debug element with * the specified detail code. * * @param detail detail code for the resume event, such * as <code>DebugEvent.STEP_OVER</code> */ public void fireResumeEvent(int detail) { fireEvent(new DebugEvent(this, DebugEvent.RESUME, detail)); }
/** * Fires a terminate event. */ protected void fireTerminateEvent() { fireEvent(new DebugEvent(this, DebugEvent.TERMINATE)); }
/** * Fires a change event for this debug element * with the specified detail code. * * @param detail detail code for the change event, * such as <code>DebugEvent.STATE</code> or <code>DebugEvent.CONTENT</code> */ public void fireChangeEvent(int detail) { fireEvent(new DebugEvent(this, DebugEvent.CHANGE, detail)); }
/** * Fires a terminate event for this debug element. */ public void fireTerminateEvent() { fireEvent(new DebugEvent(this, DebugEvent.TERMINATE)); }
public void connectionClosed() { if (!_terminated) { _terminated = true; _disconnected = true; _connection = null; this.fireEvent(new DebugEvent(this, DebugEvent.TERMINATE)); } }
/** * Send a change event for theJavaContendedMonitor and JavaOwnedMonitor * associated with this monitor */ private void fireChangeEvent(int detail) { Object[] elements= fElements.toArray(); DebugEvent[] changeEvents= new DebugEvent[elements.length]; for (int i= 0; i < elements.length; i++) { changeEvents[i]= new DebugEvent(elements[i], DebugEvent.CHANGE, detail); } DebugPlugin.getDefault().fireDebugEventSet(changeEvents); }
/** * Fires a custom model specific event when this connector is ready to accept incoming * connections from a remote VM. */ protected void fireReadyToAcceptEvent(){ DebugPlugin manager= DebugPlugin.getDefault(); if (manager != null) { manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.MODEL_SPECIFIC, IJavaLaunchConfigurationConstants.DETAIL_CONFIG_READY_TO_ACCEPT_REMOTE_VM_CONNECTION)}); } }
/** * Fires a custom model specific event when this connector is ready to accept incoming * connections from a remote VM. */ protected void fireReadyToAcceptEvent(){ DebugPlugin manager= DebugPlugin.getDefault(); if (manager != null) { manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.MODEL_SPECIFIC, IJavaLaunchConfigurationConstants.DETAIL_CONFIG_READY_TO_ACCEPT_REMOTE_VM_CONNECTION)}); } }
/** * Fires a terminate event. */ protected void fireTerminateEvent() { DebugPlugin manager= DebugPlugin.getDefault(); if (manager != null) { manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.TERMINATE)}); } }
/** * Fires a terminate event. */ protected void fireTerminateEvent() { DebugPlugin manager= DebugPlugin.getDefault(); if (manager != null) { manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.TERMINATE)}); } }
/** * Fires a {@link DebugEvent} for the given watch expression * @param expression the expression that has changed */ private void fireWatchExpressionChanged(IWatchExpression expression) { DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {new DebugEvent(expression, DebugEvent.CHANGE)}); }
public void run() { try { setExpectedEvent(DebugEvent.RESUME, DebugEvent.STEP_INTO); frame.stepInto(); } catch (DebugException e) { JDIDebugUIPlugin.log(e); cleanup(); DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{new DebugEvent(getDebugTarget(), DebugEvent.CHANGE)}); } } };
public void run() { try { setExpectedEvent(DebugEvent.RESUME, DebugEvent.STEP_RETURN); frame.stepReturn(); } catch (DebugException e) { JDIDebugUIPlugin.log(e); cleanup(); DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{new DebugEvent(getDebugTarget(), DebugEvent.CHANGE)}); } } };
public void run() { try { setExpectedEvent(DebugEvent.RESUME, DebugEvent.STEP_INTO); frame.stepInto(); } catch (DebugException e) { JDIDebugUIPlugin.log(e); cleanup(); DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{new DebugEvent(getDebugTarget(), DebugEvent.CHANGE)}); } } };
public void widgetSelected(SelectionEvent e) { if (((MenuItem)e.getSource()).getSelection()) { target.setDefaultStratum(stratum); } else { target.setDefaultStratum(null); } DebugEvent event = new DebugEvent(frame, DebugEvent.CHANGE, DebugEvent.CONTENT); DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{event}); // TODO: post 3.2 - make API to force source lookup SourceLookupManager.getDefault().displaySource(frame, fPart.getSite().getPage(), true); } });