mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Pass DialogWrapper's disposable to the list table in "Change Signature" dialog
Otherwise any attempt to create this dialog in tests ends up with error, because global "UI" disposable, that used as fallback in single-argument constructor, is not available in test environment.
This commit is contained in:
+1
-2
@@ -48,7 +48,6 @@ import com.intellij.ui.treeStructure.Tree;
|
||||
import com.intellij.util.Alarm;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.IJSwingUtilities;
|
||||
import com.intellij.util.PlatformIcons;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.util.ui.table.JBListTable;
|
||||
import com.intellij.util.ui.table.JBTableRowEditor;
|
||||
@@ -689,7 +688,7 @@ public abstract class ChangeSignatureDialogBase<ParamInfo extends ParameterInfo,
|
||||
|
||||
protected abstract class ParametersListTable extends JBListTable {
|
||||
public ParametersListTable() {
|
||||
super(myParametersTable);
|
||||
super(myParametersTable, ChangeSignatureDialogBase.this.getDisposable());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user