mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-172077 Inline a check of a registry key (IDEA-CR-20684)
This commit is contained in:
@@ -47,6 +47,7 @@ import com.intellij.openapi.extensions.Extensions;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.ui.EditorNotifications;
|
||||
import com.intellij.ui.content.Content;
|
||||
@@ -357,7 +358,7 @@ public class JavaDebugProcess extends XDebugProcess {
|
||||
}
|
||||
|
||||
private void registerMemoryViewPanel(@NotNull RunnerLayoutUi ui) {
|
||||
if (!MemoryViewManager.getInstance().isEnabled()) return;
|
||||
if (!Registry.get("debugger.enable.memory.view").asBoolean()) return;
|
||||
final XDebugSession session = getSession();
|
||||
final DebugProcessImpl process = myJavaSession.getProcess();
|
||||
final InstancesTracker tracker = InstancesTracker.getInstance(myJavaSession.getProject());
|
||||
|
||||
@@ -87,10 +87,6 @@ public class MemoryViewManager implements ApplicationComponent, PersistentStateC
|
||||
return myState.isShowTrackedOnly;
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return Registry.get("debugger.enable.memory.view").asBoolean();
|
||||
}
|
||||
|
||||
public void addMemoryViewManagerListener(MemoryViewManagerListener listener, @NotNull Disposable parentDisposable) {
|
||||
myDispatcher.addListener(listener, parentDisposable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user