本文整理汇总了Java中com.intellij.xdebugger.impl.breakpoints.XBreakpointsDialogState类的典型用法代码示例。如果您正苦于以下问题:Java XBreakpointsDialogState类的具体用法?Java XBreakpointsDialogState怎么用?Java XBreakpointsDialogState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XBreakpointsDialogState类属于com.intellij.xdebugger.impl.breakpoints包,在下文中一共展示了XBreakpointsDialogState类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initSelection
import com.intellij.xdebugger.impl.breakpoints.XBreakpointsDialogState; //导入依赖的package包/类
void initSelection(Collection<BreakpointItem> breakpoints) {
XBreakpointsDialogState settings = (getBreakpointManager()).getBreakpointsDialogSettings();
if (settings != null && settings.getTreeState() != null) {
settings.getTreeState().applyTo(myTreeController.getTreeView());
if (myTreeController.getTreeView().getSelectionCount() == 0) {
myTreeController.selectFirstBreakpointItem();
}
}
else {
TreeUtil.expandAll(myTreeController.getTreeView());
myTreeController.selectFirstBreakpointItem();
}
selectBreakpoint(myInitialBreakpoint);
}
示例2: saveBreakpointsDialogState
import com.intellij.xdebugger.impl.breakpoints.XBreakpointsDialogState; //导入依赖的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);
}
示例3: saveTreeState
import com.intellij.xdebugger.impl.breakpoints.XBreakpointsDialogState; //导入依赖的package包/类
private void saveTreeState(XBreakpointsDialogState state) {
JTree tree = myTreeController.getTreeView();
state.setTreeState(TreeState.createOn(tree, (DefaultMutableTreeNode)tree.getModel().getRoot()));
}