mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
xdebugger: allow to hide unrelated breakpoint types in breakpoints dialog
This commit is contained in:
@@ -163,6 +163,10 @@ public abstract class XBreakpointType<B extends XBreakpoint<P>, P extends XBreak
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean shouldShowInBreakpointsDialog(@NotNull Project project) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nullable @NonNls
|
||||
public String getBreakpointsDialogHelpTopic() {
|
||||
return null;
|
||||
|
||||
+4
-2
@@ -62,8 +62,10 @@ public class XBreakpointPanelProvider extends BreakpointPanelProvider<XBreakpoin
|
||||
XBreakpointType<?,?>[] types = XBreakpointUtil.getBreakpointTypes();
|
||||
ArrayList<AbstractBreakpointPanel<XBreakpoint>> panels = new ArrayList<AbstractBreakpointPanel<XBreakpoint>>();
|
||||
for (XBreakpointType<? extends XBreakpoint<?>, ?> type : types) {
|
||||
XBreakpointsPanel<?> panel = createBreakpointsPanel(project, parentDialog, type);
|
||||
panels.add(panel);
|
||||
if (type.shouldShowInBreakpointsDialog(project)) {
|
||||
XBreakpointsPanel<?> panel = createBreakpointsPanel(project, parentDialog, type);
|
||||
panels.add(panel);
|
||||
}
|
||||
}
|
||||
return panels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user