当前位置: 首页>>代码示例>>Java>>正文


Java EventRequestManager.deleteEventRequest方法代码示例

本文整理汇总了Java中com.sun.jdi.request.EventRequestManager.deleteEventRequest方法的典型用法代码示例。如果您正苦于以下问题:Java EventRequestManager.deleteEventRequest方法的具体用法?Java EventRequestManager.deleteEventRequest怎么用?Java EventRequestManager.deleteEventRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.jdi.request.EventRequestManager的用法示例。


在下文中一共展示了EventRequestManager.deleteEventRequest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: deleteBreakpoint

import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
@Override
public void deleteBreakpoint(Location location) throws DebuggerException {
  final String className = debuggerUtil.findFqnByPosition(location);
  final int lineNumber = location.getLineNumber();
  EventRequestManager requestManager = getEventManager();
  List<BreakpointRequest> snapshot = new ArrayList<>(requestManager.breakpointRequests());
  for (BreakpointRequest breakpointRequest : snapshot) {
    com.sun.jdi.Location jdiLocation = breakpointRequest.location();
    if (jdiLocation.declaringType().name().equals(className)
        && jdiLocation.lineNumber() == lineNumber) {
      requestManager.deleteEventRequest(breakpointRequest);
      LOG.debug("Delete breakpoint: {}", location);
    }
  }

  List<Breakpoint> defferedByClass = deferredBreakpoints.get(className);
  if (defferedByClass != null) {
    defferedByClass.removeIf(
        breakpoint -> {
          Location l = breakpoint.getLocation();
          return l.getLineNumber() == location.getLineNumber()
              && l.getTarget().equals(location.getTarget());
        });
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:JavaDebugger.java

示例2: removeRequest

import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
protected void removeRequest()
{
  final EventRequestManager manager = owner.getEventRequestManager();
  if (manager != null && request != null)
  {
    try
    {
      owner.removeJDIEventListener(this, request);
      manager.deleteEventRequest(request);
      request = null;
    }
    catch (final RuntimeException e)
    {
      JiveDebugPlugin.log(e);
    }
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:18,代码来源:EventHandlerFactory.java

示例3: removeRequest

import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
protected void removeRequest()
{
  final EventRequestManager manager = getEventRequestManager();
  if (manager != null && stepRequest != null)
  {
    try
    {
      removeJDIEventListener(this, stepRequest);
      manager.deleteEventRequest(stepRequest);
      stepRequest = null;
    }
    catch (final RuntimeException e)
    {
      logError(e);
    }
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:18,代码来源:JiveThread.java

示例4: deleteEventRequestSafely

import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
/**
 * Remove the event request from the vm. If the vm has terminated, do nothing.
 * @param eventManager
 *                  The event request manager.
 * @param request
 *                  The target event request.
 */
public static void deleteEventRequestSafely(EventRequestManager eventManager, EventRequest request) {
    try {
        eventManager.deleteEventRequest(request);
    } catch (VMDisconnectedException ex) {
        // ignore.
    }
}
 
开发者ID:Microsoft,项目名称:java-debug,代码行数:15,代码来源:DebugUtility.java

示例5: deleteEventRequest

import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
private void deleteEventRequest(EventRequestManager manager,
                                MethodEntryRequest request) {
    manager.deleteEventRequest(request);
}
 
开发者ID:HotswapProjects,项目名称:HotswapAgent,代码行数:5,代码来源:HotSwapperJpda.java


注:本文中的com.sun.jdi.request.EventRequestManager.deleteEventRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。