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

x33g5p2x  于2022-02-03 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(81)

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

XLineBreakpoint.getProperties介绍

暂无

代码示例

代码示例来源: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

@SuppressWarnings("ConstantConditions")
@Override
public void saveTo(@NotNull final XLineBreakpoint<CloudLineBreakpointProperties> ideBreakpoint) {
 CloudLineBreakpointProperties properties = ideBreakpoint.getProperties();
 if (properties == null) {
  LOG.error(
    "Could not save changes to the breakpoint because for some reason it does not have cloud "
      + "properties.");
  return;
 }
 XBreakpointBase lineBreakpointImpl =
   ideBreakpoint instanceof XBreakpointBase ? (XBreakpointBase) ideBreakpoint : null;
 if (rootNode != null && lineBreakpointImpl != null) {
  List<String> expressionsToSave = new ArrayList<String>();
  List<? extends WatchNode> children = rootNode.getAllChildren();
  if (children != null) {
   for (WatchNode node : rootNode.getAllChildren()) {
    expressionsToSave.add(node.getExpression().getExpression());
   }
   if (properties.setWatchExpressions(
     expressionsToSave.toArray(new String[expressionsToSave.size()]))) {
    lineBreakpointImpl.fireBreakpointChanged();
   }
  }
 }
}

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

.getProperties()
   .setWatchExpressions(
     serverBreakpoint
newXIdeBreakpoint.getProperties().setCreatedByServer(false);
com.intellij.debugger.ui.breakpoints.Breakpoint cloudIdeBreakpoint =
  BreakpointManager.getJavaBreakpoint(newXIdeBreakpoint);

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

when(xLineBreakpoint.getProperties()).thenReturn(cloudLineBreakpointProperties);

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

null);
List<XExpression> watches = new ArrayList<XExpression>();
for (String watchExpression : breakpoint.getProperties().getWatchExpressions()) {
 watches.add(
   debuggerEditorsProvider.createExpression(

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

isA(CloudLineBreakpointProperties.class)))
  .thenReturn(mockLineBreakpoint);
when(mockLineBreakpoint.getProperties()).thenReturn(new CloudLineBreakpointProperties());
VirtualFile projectDir = mock(VirtualFile.class);
when(projectDir.getPath()).thenReturn("/project/dir");

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

if (ideBreakpoint.getProperties().isCreatedByServer()) {
if (ideBreakpoint.getProperties().isAddedOnServer()
  && !ideBreakpoint.getProperties().isDisabledByServer()) {

相关文章