• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java XBreakpointGroupingRule类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule的典型用法代码示例。如果您正苦于以下问题:Java XBreakpointGroupingRule类的具体用法?Java XBreakpointGroupingRule怎么用?Java XBreakpointGroupingRule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XBreakpointGroupingRule类属于com.intellij.xdebugger.breakpoints.ui包,在下文中一共展示了XBreakpointGroupingRule类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: customizeRenderer

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public void customizeRenderer(ColoredTreeCellRenderer renderer,
                              JTree tree,
                              @NotNull Object value,
                              boolean selected,
                              boolean expanded,
                              boolean leaf,
                              int row,
                              boolean hasFocus) {
  renderer.clear();
  renderer.setIcon(AllIcons.Debugger.Db_set_breakpoint);
  if (value instanceof BreakpointItem) {
    BreakpointItem breakpointItem = (BreakpointItem)value;
    breakpointItem.setupGenericRenderer(renderer, true);
  }
  else if (value instanceof XBreakpointGroup) {
    renderer.append(((XBreakpointGroup)value).getName());
    renderer.setIcon(((XBreakpointGroup)value).getIcon(expanded));
  }
  else if (value instanceof XBreakpointGroupingRule) {
    renderer.append(((XBreakpointGroupingRule)value).getPresentableName());
  }
  else {
    renderer.append(String.valueOf(value));
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:BreakpointsFavoriteListProvider.java


示例2: customizeRenderer

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public void customizeRenderer(ColoredTreeCellRenderer renderer,
                              JTree tree,
                              @Nonnull Object value,
                              boolean selected,
                              boolean expanded,
                              boolean leaf,
                              int row,
                              boolean hasFocus) {
  renderer.clear();
  renderer.setIcon(AllIcons.Debugger.Db_set_breakpoint);
  if (value instanceof BreakpointItem) {
    BreakpointItem breakpointItem = (BreakpointItem)value;
    breakpointItem.setupGenericRenderer(renderer, true);
  }
  else if (value instanceof XBreakpointGroup) {
    renderer.append(((XBreakpointGroup)value).getName());
    renderer.setIcon(((XBreakpointGroup)value).getIcon(expanded));
  }
  else if (value instanceof XBreakpointGroupingRule) {
    renderer.append(((XBreakpointGroupingRule)value).getPresentableName());
  }
  else {
    renderer.append(String.valueOf(value));
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:27,代码来源:BreakpointsFavoriteListProvider.java


示例3: getEnabledGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
private void getEnabledGroupingRules(Collection<XBreakpointGroupingRule> rules) {
  rules.clear();
  XBreakpointsDialogState settings = ((XBreakpointManagerImpl)XDebuggerManager.getInstance(myProject).getBreakpointManager()).getBreakpointsDialogSettings();

  for (XBreakpointGroupingRule rule : myRulesAvailable) {
    if (rule.isAlwaysEnabled() || (settings != null && settings.getSelectedGroupingRules().contains(rule.getId()) ) ) {
      rules.add(rule);
    }
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:BreakpointsFavoriteListProvider.java


示例4: getGroup

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Nullable
private XBreakpointGroup getGroup(XBreakpointGroup parentGroup, final BreakpointItem breakpoint, final XBreakpointGroupingRule groupingRule) {
  //noinspection unchecked
  Collection<XBreakpointGroup> groups = myGroups.get(groupingRule);
  if (groups == null) {
    groups = Collections.emptyList();
  }

  XBreakpointGroup group = groupingRule.getGroup(breakpoint.getBreakpoint(), filterByParent(parentGroup, groups));
  if (group != null) {
    myGroups.put(groupingRule, group);
  }
  return group;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:BreakpointItemsTreeController.java


示例5: XBreakpointsTree

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
private XBreakpointsTree(final XBreakpointType<B, ?> type, final CheckedTreeNode root,
                         Collection<XBreakpointGroupingRule<B, ?>> groupingRules,
                         DialogWrapper parentDialog,
                         XBreakpointManager breakpointManager) {
  super(new BreakpointsTreeCellRenderer(), root);
  myRoot = root;
  myParentDialog = parentDialog;
  myComparator = new TreeNodeComparator<B>(type, breakpointManager);
  setGroupingRulesInternal(groupingRules);

  getEmptyText().setText("No " + type.getTitle());
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:13,代码来源:XBreakpointsTree.java


示例6: getGroup

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Nullable
private <G extends XBreakpointGroup> XBreakpointGroup getGroup(final B breakpoint, final XBreakpointGroupingRule<B, G> groupingRule) {
  //noinspection unchecked
  Collection<G> groups = (Collection<G>)myGroups.get(groupingRule);
  if (groups == null) {
    groups = Collections.emptyList();
  }
  G group = groupingRule.getGroup(breakpoint, groups);
  if (group != null) {
    myGroups.put(groupingRule, group);
  }
  return group;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:XBreakpointsTree.java


示例7: setGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
public void setGroupingRules(List<XBreakpointGroupingRule<B, ?>> groupingRules) {
  List<B> selectedBreakpoints = getSelectedBreakpoints();
  List<B> allBreakpoints = new ArrayList<B>(myNodes.keySet());

  setGroupingRulesInternal(groupingRules);
  buildTree(allBreakpoints);

  if (selectedBreakpoints.size() > 0) {
    selectBreakpoint(selectedBreakpoints.get(0));
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:XBreakpointsTree.java


示例8: getGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public List<XBreakpointGroupingRule<XLineBreakpoint<XBreakpointProperties>, ?>> getGroupingRules() {
  XBreakpointGroupingRule<XLineBreakpoint<XBreakpointProperties>, ?> byFile = XDebuggerUtil.getInstance().getGroupingByFileRule();
  List<XBreakpointGroupingRule<XLineBreakpoint<XBreakpointProperties>, ?>> rules =
    new ArrayList<XBreakpointGroupingRule<XLineBreakpoint<XBreakpointProperties>, ?>>();
  rules.add(byFile);
  return rules;
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:9,代码来源:HaxeBreakpointType.java


示例9: saveBreakpointsDialogState

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
private void saveBreakpointsDialogState() {
  final XBreakpointsDialogState dialogState = new XBreakpointsDialogState();
  final List<XBreakpointGroupingRule> rulesEnabled = ContainerUtil.filter(myRulesEnabled, rule -> !rule.isAlwaysEnabled());

  dialogState.setSelectedGroupingRules(new HashSet<String>(ContainerUtil.map(rulesEnabled, rule -> rule.getId())));
  getBreakpointManager().setBreakpointsDialogSettings(dialogState);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:BreakpointsDialog.java


示例10: createBreakpointsGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public void createBreakpointsGroupingRules(Collection<XBreakpointGroupingRule> rules)
{
	//rules.add(new XBreakpointGroupingByCategoryRule());
	//rules.add(new XBreakpointGroupingByPackageRule());
	//rules.add(new XBreakpointGroupingByClassRule());
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:8,代码来源:JavaDebuggerSupport.java


示例11: getGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public List<XBreakpointGroupingRule<XLineBreakpoint<JavaLineBreakpointProperties>, ?>> getGroupingRules() {
  return XDebuggerUtil.getInstance().getGroupingByFileRuleAsList();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JavaLineBreakpointType.java


示例12: createBreakpointsGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public void createBreakpointsGroupingRules(Collection<XBreakpointGroupingRule> rules) {
  //rules.add(new XBreakpointGroupingByCategoryRule());
  rules.add(new XBreakpointGroupingByPackageRule());
  rules.add(new XBreakpointGroupingByClassRule());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:JavaDebuggerSupport.java


示例13: getGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
public List<XBreakpointGroupingRule<B, ?>> getGroupingRules() {
  return Collections.emptyList();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:XBreakpointType.java


示例14: getGroupingByFileRule

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public <B extends XLineBreakpoint<?>> XBreakpointGroupingRule<B, ?> getGroupingByFileRule() {
  return new XBreakpointFileGroupingRule<B>();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XDebuggerUtilImpl.java


示例15: getGroupingByFileRuleAsList

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public <B extends XLineBreakpoint<?>> List<XBreakpointGroupingRule<B, ?>> getGroupingByFileRuleAsList() {
  return Collections.<XBreakpointGroupingRule<B, ?>>singletonList(this.<B>getGroupingByFileRule());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XDebuggerUtilImpl.java


示例16: createBreakpointsGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
@Override
public void createBreakpointsGroupingRules(Collection<XBreakpointGroupingRule> rules) {
  rules.add(new XBreakpointGroupingByTypeRule());
  rules.add(new XBreakpointFileGroupingRule());
  rules.add(new XBreakpointCustomGroupingRule());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:XBreakpointPanelProvider.java


示例17: ToggleBreakpointGroupingRuleEnabledAction

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
public ToggleBreakpointGroupingRuleEnabledAction(XBreakpointGroupingRule rule) {
  super(rule.getPresentableName(), rule.getIcon());
  myRule = rule;
  getTemplatePresentation().setText(rule.getPresentableName());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:BreakpointsDialog.java


示例18: BreakpointItemsTreeController

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
public BreakpointItemsTreeController(Collection<XBreakpointGroupingRule> groupingRules) {
  myRoot = new CheckedTreeNode("root");
  setGroupingRulesInternal(groupingRules);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:BreakpointItemsTreeController.java


示例19: setGroupingRulesInternal

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
private void setGroupingRulesInternal(final Collection<XBreakpointGroupingRule> groupingRules) {
  myGroupingRules = new ArrayList<XBreakpointGroupingRule>(groupingRules);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:BreakpointItemsTreeController.java


示例20: setGroupingRules

import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; //导入依赖的package包/类
public void setGroupingRules(Collection<XBreakpointGroupingRule> groupingRules) {
  setGroupingRulesInternal(groupingRules);
  rebuildTree(new ArrayList<BreakpointItem>(myNodes.keySet()));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:BreakpointItemsTreeController.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IntCounter类代码示例发布时间:2022-05-23
下一篇:
Java EntityAgeable类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap