本文整理汇总了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;未经允许,请勿转载。 |
请发表评论