gpt4 book ai didi

com.intellij.xdebugger.breakpoints.XLineBreakpoint.getUserData()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 13:04:40 27 4
gpt4 key购买 nike

本文整理了Java中com.intellij.xdebugger.breakpoints.XLineBreakpoint.getUserData()方法的一些代码示例,展示了XLineBreakpoint.getUserData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XLineBreakpoint.getUserData()方法的具体详情如下:
包路径:com.intellij.xdebugger.breakpoints.XLineBreakpoint
类名称:XLineBreakpoint
方法名:getUserData

XLineBreakpoint.getUserData介绍

暂无

代码示例

代码示例来源:origin: go-lang-plugin-org/go-lang-idea-plugin

@Override
 public void unregisterBreakpoint(@NotNull XLineBreakpoint<DlvBreakpointProperties> breakpoint, boolean temporary) {
  XSourcePosition breakpointPosition = breakpoint.getSourcePosition();
  if (breakpointPosition == null) return;
  Integer id = breakpoint.getUserData(ID);
  if (id == null) return; // obsolete
  breakpoint.putUserData(ID, null);
  breakpoints.remove(id);
  send(new DlvRequest.ClearBreakpoint(id));
 }
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

@Override
 public void unregisterBreakpoint(
   @NotNull XLineBreakpoint<CloudLineBreakpointProperties> ideBreakpoint, boolean temporary) {
  // If the state was set to disabled as a result of a server update,
  // then we do not need to update the server side.
  if (!ideBreakpoint.getProperties().isDisabledByServer()) {
   String breakpointId = ideBreakpoint.getUserData(CLOUD_ID);
   if (!Strings.isNullOrEmpty(breakpointId)) {
    process.getStateController().deleteBreakpointAsync(breakpointId);
   } else {
    LOG.warn("could not delete breakpoint because it was not added through the cloud handler.");
   }
  }
  // reset this flag: either it has been disabled by the server or the client has deleted it, in
  // both cases we need to add it again, if it is re-enabled
  ideBreakpoint.getProperties().setAddedOnServer(false);
 }
}

代码示例来源:origin: GoogleCloudPlatform/google-cloud-intellij

when(virtualFile.getUrl()).thenReturn(MOCK_FILE_URL);
when(xLineBreakpoint.getUserData(com.intellij.debugger.ui.breakpoints.Breakpoint.DATA_KEY))
  .thenReturn(cloudLineBreakpoint);
when(xLineBreakpoint.getProperties()).thenReturn(cloudLineBreakpointProperties);

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com