remove obsolete no-write-action assertion from DialogWrapper (IDEA-CR-15644)
authorpeter <peter@jetbrains.com>
Fri, 11 Nov 2016 11:40:26 +0000 (12:40 +0100)
committerpeter <peter@jetbrains.com>
Fri, 11 Nov 2016 12:21:58 +0000 (13:21 +0100)
platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java

index dafbd0d2ec069b3490377a025ca7c991cec69def..b3d34f0971649052d62c5d79395582131183048d 100644 (file)
@@ -1666,13 +1666,6 @@ public abstract class DialogWrapper {
 
   @NotNull
   private AsyncResult<Boolean> invokeShow() {
-    Window window = myPeer.getWindow();
-    if (window instanceof JDialog && ((JDialog)window).getModalityType() == Dialog.ModalityType.DOCUMENT_MODAL) {
-      if (ApplicationManager.getApplication().isWriteAccessAllowed()) {
-        LOG.error("Project-modal dialogs should not be shown under a write action.");
-      }
-    }
-
     final AsyncResult<Boolean> result = new AsyncResult<>();
 
     ensureEventDispatchThread();