adjusted solution to memory leaks in RubyProjectStructureConfigurable according to...
[idea/community.git] / java / debugger / impl / src / com / intellij / debugger / actions / CustomizeContextViewAction.java
index 178906b6973547695f9223d56d69ec3f90a1db63..5350cc191dd8014679002a36f0b20630d36c5995 100644 (file)
@@ -20,14 +20,12 @@ import com.intellij.debugger.engine.JavaDebugProcess;
 import com.intellij.debugger.settings.JavaDebuggerSettings;
 import com.intellij.debugger.settings.NodeRendererSettings;
 import com.intellij.idea.ActionsBundle;
-import com.intellij.openapi.Disposable;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.options.Configurable;
 import com.intellij.openapi.options.ConfigurationException;
 import com.intellij.openapi.options.TabbedConfigurable;
 import com.intellij.openapi.options.ex.SingleConfigurableEditor;
 import com.intellij.openapi.project.Project;
-import com.intellij.openapi.util.Disposer;
 import com.intellij.util.ui.JBUI;
 import com.intellij.xdebugger.XDebugSession;
 import com.intellij.xdebugger.XDebuggerManager;
@@ -49,8 +47,7 @@ public class CustomizeContextViewAction extends XDebuggerTreeActionBase {
   @Override
   protected void perform(XValueNodeImpl node, @NotNull String nodeName, AnActionEvent e) {
     final Project project = e.getProject();
-    Disposable disposable = Disposer.newDisposable();
-    final MyTabbedConfigurable configurable = new MyTabbedConfigurable(disposable);
+    final MyTabbedConfigurable configurable = new MyTabbedConfigurable();
     SingleConfigurableEditor editor = new SingleConfigurableEditor(project, configurable) {
       @Override
       protected void doOKAction() {
@@ -66,15 +63,10 @@ public class CustomizeContextViewAction extends XDebuggerTreeActionBase {
         super.doCancelAction();
       }
     };
-    Disposer.register(editor.getDisposable(), disposable);
     editor.show();
   }
 
   private static class MyTabbedConfigurable extends TabbedConfigurable {
-    public MyTabbedConfigurable(@NotNull Disposable parent) {
-      super(parent);
-    }
-
     @Override
     protected List<Configurable> createConfigurables() {
       return JavaDebuggerSettings.createDataViewsConfigurable();