extract EMPTY_SETTINGS_PANEL_PROVIDER

This commit is contained in:
Vladimir Krivosheev
2014-07-22 12:41:34 +02:00
parent efe0d5a7b5
commit 3d30b275bd
2 changed files with 8 additions and 3 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,6 +36,9 @@ import org.jetbrains.annotations.Nullable;
public abstract class DebuggerSupport {
private static final ExtensionPointName<DebuggerSupport> EXTENSION_POINT = ExtensionPointName.create("com.intellij.xdebugger.debuggerSupport");
private static final DebuggerSettingsPanelProvider EMPTY_SETTINGS_PANEL_PROVIDER = new DebuggerSettingsPanelProvider() {
};
protected static final class DisabledActionHandler extends DebuggerActionHandler {
public static final DisabledActionHandler INSTANCE = new DisabledActionHandler();
@@ -58,7 +61,9 @@ public abstract class DebuggerSupport {
public abstract BreakpointPanelProvider<?> getBreakpointPanelProvider();
@NotNull
public abstract DebuggerSettingsPanelProvider getSettingsPanelProvider();
public DebuggerSettingsPanelProvider getSettingsPanelProvider() {
return EMPTY_SETTINGS_PANEL_PROVIDER;
}
@NotNull
public abstract DebuggerActionHandler getStepOverHandler();
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.