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


Java XBreakpointUtil.getBreakpointTypes方法代码示例

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


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

示例1: addBreakpoint

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
public static <T extends XBreakpointType> XBreakpoint addBreakpoint(@NotNull final Project project,
                                                                    @NotNull final Class<T> exceptionType,
                                                                    @NotNull final XBreakpointProperties properties) {
  final XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager();
  XBreakpointType[] types = XBreakpointUtil.getBreakpointTypes();
  final Ref<XBreakpoint> breakpoint = Ref.create(null);
  for (XBreakpointType type : types) {
    if (exceptionType.isInstance(type)) {
      final T breakpointType = exceptionType.cast(type);
      new WriteAction() {
        @Override
        protected void run(@NotNull Result result) throws Throwable {
          breakpoint.set(breakpointManager.addBreakpoint(breakpointType, properties));
        }
      }.execute();
      break;
    }
  }
  return breakpoint.get();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:XDebuggerTestUtil.java

示例2: addBreakpoint

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
public static <T extends XBreakpointType> XBreakpoint addBreakpoint(@NotNull final Project project,
                                                                    @NotNull final Class<T> exceptionType,
                                                                    @NotNull final XBreakpointProperties properties) {
  final XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager();
  XBreakpointType[] types = XBreakpointUtil.getBreakpointTypes();
  final Ref<XBreakpoint> breakpoint = Ref.create(null);
  for (XBreakpointType type : types) {
    if (exceptionType.isInstance(type)) {
      final T breakpointType = exceptionType.cast(type);
      new WriteAction() {
        @Override
        protected void run(Result result) throws Throwable {
          breakpoint.set(breakpointManager.addBreakpoint(breakpointType, properties));
        }
      }.execute();
      break;
    }
  }
  return breakpoint.get();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:21,代码来源:XDebuggerTestUtil.java

示例3: addBreakpoint

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
public static <T extends XBreakpointType> XBreakpoint addBreakpoint(@Nonnull final Project project,
                                                                    @Nonnull final Class<T> exceptionType,
                                                                    @Nonnull final XBreakpointProperties properties) {
  final XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager();
  XBreakpointType[] types = XBreakpointUtil.getBreakpointTypes();
  final Ref<XBreakpoint> breakpoint = Ref.create(null);
  for (XBreakpointType type : types) {
    if (exceptionType.isInstance(type)) {
      final T breakpointType = exceptionType.cast(type);
      new WriteAction() {
        @Override
        protected void run(Result result) throws Throwable {
          breakpoint.set(breakpointManager.addBreakpoint(breakpointType, properties));
        }
      }.execute();
      break;
    }
  }
  return breakpoint.get();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:XDebuggerTestUtil.java

示例4: getLineBreakpointTypes

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
@Override
public XLineBreakpointType<?>[] getLineBreakpointTypes() {
  if (myLineBreakpointTypes == null) {
    XBreakpointType[] types = XBreakpointUtil.getBreakpointTypes();
    List<XLineBreakpointType<?>> lineBreakpointTypes = new ArrayList<XLineBreakpointType<?>>();
    for (XBreakpointType type : types) {
      if (type instanceof XLineBreakpointType<?>) {
        lineBreakpointTypes.add((XLineBreakpointType<?>)type);
      }
    }
    myLineBreakpointTypes = lineBreakpointTypes.toArray(new XLineBreakpointType<?>[lineBreakpointTypes.size()]);
  }
  return myLineBreakpointTypes;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:XDebuggerUtilImpl.java

示例5: findBreakpointType

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
@Override
public <B extends XBreakpoint<?>> XBreakpointType<B, ?> findBreakpointType(@NotNull Class<? extends XBreakpointType<B, ?>> typeClass) {
  if (myBreakpointTypeByClass == null) {
    myBreakpointTypeByClass = new THashMap<Class<? extends XBreakpointType>, XBreakpointType<?, ?>>();
    for (XBreakpointType<?, ?> breakpointType : XBreakpointUtil.getBreakpointTypes()) {
      myBreakpointTypeByClass.put(breakpointType.getClass(), breakpointType);
    }
  }
  XBreakpointType<?, ?> type = myBreakpointTypeByClass.get(typeClass);
  //noinspection unchecked
  return (XBreakpointType<B, ?>)type;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:XDebuggerUtilImpl.java

示例6: getLineBreakpointTypes

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
public XLineBreakpointType<?>[] getLineBreakpointTypes() {
  if (myLineBreakpointTypes == null) {
    XBreakpointType[] types = XBreakpointUtil.getBreakpointTypes();
    List<XLineBreakpointType<?>> lineBreakpointTypes = new ArrayList<XLineBreakpointType<?>>();
    for (XBreakpointType type : types) {
      if (type instanceof XLineBreakpointType<?>) {
        lineBreakpointTypes.add((XLineBreakpointType<?>)type);
      }
    }
    myLineBreakpointTypes = lineBreakpointTypes.toArray(new XLineBreakpointType<?>[lineBreakpointTypes.size()]);
  }
  return myLineBreakpointTypes;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:XDebuggerUtilImpl.java

示例7: findBreakpointType

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
public <B extends XBreakpoint<?>> XBreakpointType<B, ?> findBreakpointType(@NotNull Class<? extends XBreakpointType<B, ?>> typeClass) {
  if (myBreakpointTypeByClass == null) {
    myBreakpointTypeByClass = new HashMap<Class<? extends XBreakpointType>, XBreakpointType<?,?>>();
    for (XBreakpointType<?, ?> breakpointType : XBreakpointUtil.getBreakpointTypes()) {
      myBreakpointTypeByClass.put(breakpointType.getClass(), breakpointType);
    }
  }
  XBreakpointType<?, ?> type = myBreakpointTypeByClass.get(typeClass);
  //noinspection unchecked
  return (XBreakpointType<B, ?>)type;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:XDebuggerUtilImpl.java

示例8: findBreakpointType

import com.intellij.xdebugger.impl.breakpoints.XBreakpointUtil; //导入方法依赖的package包/类
@Override
public <B extends XBreakpoint<?>> XBreakpointType<B, ?> findBreakpointType(@Nonnull Class<? extends XBreakpointType<B, ?>> typeClass) {
  if (myBreakpointTypeByClass == null) {
    myBreakpointTypeByClass = new THashMap<Class<? extends XBreakpointType>, XBreakpointType<?, ?>>();
    for (XBreakpointType<?, ?> breakpointType : XBreakpointUtil.getBreakpointTypes()) {
      myBreakpointTypeByClass.put(breakpointType.getClass(), breakpointType);
    }
  }
  XBreakpointType<?, ?> type = myBreakpointTypeByClass.get(typeClass);
  //noinspection unchecked
  return (XBreakpointType<B, ?>)type;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:13,代码来源:XDebuggerUtilImpl.java


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