From 49fe5dbb882979469dabe92613aa60e5206cb2e8 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 30 Mar 2011 16:20:15 +0400 Subject: [PATCH] to apply changes call stopCellEditing first --- .../intellij/openapi/util/registry/RegistryUi.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java b/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java index dda1eea9cc15..424ee395dabc 100644 --- a/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java +++ b/platform/lang-impl/src/com/intellij/openapi/util/registry/RegistryUi.java @@ -193,7 +193,7 @@ public class RegistryUi implements Disposable { private final List myAll; private MyTableModel() { - myAll = Registry.getInstance().getAll(); + myAll = Registry.getAll(); Collections.sort(myAll, new Comparator() { public int compare(RegistryValue o1, RegistryValue o2) { return o1.getKey().compareTo(o2.getKey()); @@ -276,8 +276,17 @@ public class RegistryUi implements Disposable { } }}; } - }; + @Override + public void doCancelAction() { + final TableCellEditor cellEditor = myTable.getCellEditor(); + if (cellEditor != null) { + cellEditor.stopCellEditing(); + } + processClose(); + super.doCancelAction(); + } + }; dialog.show(); }