本文整理了Java中com.intellij.xdebugger.breakpoints.XLineBreakpoint.getUserData()
方法的一些代码示例,展示了XLineBreakpoint.getUserData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XLineBreakpoint.getUserData()
方法的具体详情如下:
包路径:com.intellij.xdebugger.breakpoints.XLineBreakpoint
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!