Filechooser Dialog not showing any files

Hi,
I want to show the list of files for user selection in my plugin. I used
VirtualFile files = FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), project, null);
but it is not showing any files. I want to show all the files in the project. Can some one pls help

12 comments
Comment actions Permalink

The dialog fails to load the files because you're invoking it from a write action. The dialog needs to take a read action in order to load the files list, and can't do it because the write action is being held.

See http://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview for more information on read and write actions.

1
Comment actions Permalink

What does it show? Could you please attach a screenshot?
And you'd better pass project.getBaseDir() instead of null.

0
Comment actions Permalink

Hi,
Pls find the attached srceenshot, i even tried project.getBaseDir() instead of null.

Capture.PNG

0
Comment actions Permalink

That spinning circle in an upper right corner indicates that the chooser is busy loading filesystem tree - you probably have some disconnected or unreachable network drives.

0
Comment actions Permalink

Hi,
Sorry i dint get you. When i do File>open, iam able to see all the files, i think there also Filechooser is used rite. Then why iam not able to see files here.

0
Comment actions Permalink

IDEA queries root disks only once - so may be at that time they were responsive.

Well, there is no need to guess. Just start your code under debug, make it to open the chooser, and then get a thread dump. There should be easy to find threads waiting on I/O calls.

0
Comment actions Permalink

Sorry i dint get you. Every time i do File>open it shows all files. But my file chooser not working. I have opened in debug mode still couldnot find any solution.

0
Comment actions Permalink

Take a thread dump.

0
Comment actions Permalink

Hi,
I got the thread dump
Full thread dump

"AWT-EventQueue-1 12.1.6#IC-129.1359, eap:false [WriteAccessToken]@1841" prio=6 tid=0x1a nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at org.fastcode.dialog.CreateSnippetDialog$7.actionPerformed(CreateSnippetDialog.java:553)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
   at java.awt.Component.processMouseEvent(Component.java:6505)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6270)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4861)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(AccessController.java:-1)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:708)
   at java.awt.EventQueue$4.run(EventQueue.java:706)
   at java.security.AccessController.doPrivileged(AccessController.java:-1)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
   at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
   at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
   at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
   at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
   at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
   at java.security.AccessController.doPrivileged(AccessController.java:-1)
   at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
   at java.awt.Dialog.show(Dialog.java:1082)
   at java.awt.Component.show(Component.java:1651)
   at java.awt.Component.setVisible(Component.java:1603)
   at java.awt.Window.setVisible(Window.java:1014)
   at java.awt.Dialog.setVisible(Dialog.java:1005)
   at org.fastcode.dialog.CreateSnippetDialog.createDialog(CreateSnippetDialog.java:144)
   at org.fastcode.dialog.CreateSnippetDialog.<init>(CreateSnippetDialog.java:84)
   at org.fastcode.templates.CreateFromTemplateHandler.getCreateSnippetData(CreateFromTemplateHandler.java:311)
   at org.fastcode.templates.CreateFromTemplateHandler.executeWriteAction(CreateFromTemplateHandler.java:94)
   at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:54)
   at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1013)
   at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:37)
   at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:82)
   at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
   at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:93)
   at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
   at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
   at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:259)
   at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:892)
   at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:114)
   at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:230)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:104)
   at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:512)
   at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
   at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
   at java.awt.Component.processMouseEvent(Component.java:6505)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
   at java.awt.Component.processEvent(Component.java:6270)
   at java.awt.Container.processEvent(Container.java:2229)
   at java.awt.Component.dispatchEventImpl(Component.java:4861)
   at java.awt.Container.dispatchEventImpl(Container.java:2287)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
   at java.awt.Container.dispatchEventImpl(Container.java:2273)
   at java.awt.Window.dispatchEventImpl(Window.java:2719)
   at java.awt.Component.dispatchEvent(Component.java:4687)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
   at java.awt.EventQueue.access$200(EventQueue.java:103)
   at java.awt.EventQueue$3.run(EventQueue.java:694)
   at java.awt.EventQueue$3.run(EventQueue.java:692)
   at java.security.AccessController.doPrivileged(AccessController.java:-1)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
   at java.awt.EventQueue$4.run(EventQueue.java:708)
   at java.awt.EventQueue$4.run(EventQueue.java:706)
   at java.security.AccessController.doPrivileged(AccessController.java:-1)
   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
   at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
   at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
   at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

"ApplicationImpl pooled thread 1@2649" prio=4 tid=0x1f nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at com.intellij.openapi.util.io.FileUtil.pathRootEnd(FileUtil.java:700)
   at com.intellij.openapi.util.io.FileUtil.toCanonicalPath(FileUtil.java:650)
   at com.intellij.openapi.util.io.FileUtil.toCanonicalPath(FileUtil.java:633)
   at com.intellij.openapi.util.io.FileUtil.pathsEqual(FileUtil.java:797)
   at com.intellij.openapi.vfs.impl.local.FileWatcher.checkWatchable(FileWatcher.java:370)
   at com.intellij.openapi.vfs.impl.local.FileWatcher.access$1700(FileWatcher.java:54)
   at com.intellij.openapi.vfs.impl.local.FileWatcher$MyProcessAdapter.processChange(FileWatcher.java:530)
   at com.intellij.openapi.vfs.impl.local.FileWatcher$MyProcessAdapter.onTextAvailable(FileWatcher.java:481)
   at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source:-1)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at com.intellij.execution.process.ProcessHandler$4.invoke(ProcessHandler.java:210)
   at com.sun.proxy.$Proxy13.onTextAvailable(Unknown Source:-1)
   at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:185)
   at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:261)
   at com.intellij.util.io.BaseOutputReader.readAvailable(BaseOutputReader.java:166)
   at com.intellij.util.io.BaseOutputReader.doRun(BaseOutputReader.java:110)
   at com.intellij.util.io.BaseOutputReader$1.run(BaseOutputReader.java:57)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"New I/O worker #1@8803" prio=4 tid=0x31 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(WindowsSelectorImpl.java:-1)
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:296)
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:278)
   at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:159)
   at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
   - locked <0x4082> (a sun.nio.ch.WindowsSelectorImpl)
   - locked <0x4083> (a java.util.Collections$UnmodifiableSet)
   - locked <0x4084> (a sun.nio.ch.Util$2)
   at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
   at org.jboss.netty.channel.socket.nio.SelectorUtil.select(SelectorUtil.java:64)
   at org.jboss.netty.channel.socket.nio.AbstractNioSelector.select(AbstractNioSelector.java:409)
   at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:206)
   at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
   at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"New I/O server boss #2@8798" prio=4 tid=0x32 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(WindowsSelectorImpl.java:-1)
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(WindowsSelectorImpl.java:296)
   at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(WindowsSelectorImpl.java:278)
   at sun.nio.ch.WindowsSelectorImpl.doSelect(WindowsSelectorImpl.java:159)
   at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
   - locked <0x407f> (a sun.nio.ch.WindowsSelectorImpl)
   - locked <0x4080> (a java.util.Collections$UnmodifiableSet)
   - locked <0x4081> (a sun.nio.ch.Util$2)
   at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
   at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:102)
   at org.jboss.netty.channel.socket.nio.NioServerBoss.select(NioServerBoss.java:163)
   at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:206)
   at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
   at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
   at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"ApplicationImpl pooled thread 5@7439" prio=4 tid=0x2e nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
   at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lockInterruptibly(ReentrantReadWriteLock.java:776)
   at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:955)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.preloadActionGroup(ActionManagerImpl.java:1129)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.preloadActionGroup(ActionManagerImpl.java:1143)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.preloadActionGroup(ActionManagerImpl.java:1123)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.doPreloadActions(ActionManagerImpl.java:1115)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$200(ActionManagerImpl.java:67)
   at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.run(ActionManagerImpl.java:1096)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"JobScheduler pool 0/4@9702" prio=5 tid=0x35 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
   at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lockInterruptibly(ReentrantReadWriteLock.java:776)
   at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:955)
   at com.intellij.codeInsight.highlighting.BraceHighlightingHandler$1.run(BraceHighlightingHandler.java:117)
   at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:145)
   at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:142)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
   at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
   at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"ApplicationImpl pooled thread 9@8991" prio=4 tid=0x33 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
   at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"ApplicationImpl pooled thread 6@8648" prio=4 tid=0x30 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
   at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"ApplicationImpl pooled thread 4@6003" daemon prio=4 tid=0x2d nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
   at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"ApplicationImpl pooled thread 3@3195" prio=4 tid=0x22 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
   at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
   at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"ApplicationImpl pooled thread 0@2639" prio=4 tid=0x1e nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at java.lang.ProcessImpl.waitForInterruptibly(ProcessImpl.java:-1)
   at java.lang.ProcessImpl.waitFor(ProcessImpl.java:448)
   at com.intellij.execution.process.BaseOSProcessHandler$ProcessWaitFor$1.run(BaseOSProcessHandler.java:219)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"AWT-EventQueue-0@1727" prio=6 tid=0x18 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.awt.EventQueue.getNextEvent(EventQueue.java:543)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

"Encoding detection thread@7584" daemon prio=5 tid=0x2f nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1079)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Animations@4436" daemon prio=5 tid=0x2b nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1079)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Performance watcher@3198" prio=1 tid=0x23 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1033)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326)
   at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:414)
   at com.intellij.diagnostic.PerformanceWatcher.checkEDTResponsiveness(PerformanceWatcher.java:158)
   at com.intellij.diagnostic.PerformanceWatcher.access$100(PerformanceWatcher.java:40)
   at com.intellij.diagnostic.PerformanceWatcher$2.run(PerformanceWatcher.java:113)
   at java.lang.Thread.run(Thread.java:744)

"Flushing thread@2619" daemon prio=5 tid=0x1d nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"timed reference disposer@2267" daemon prio=2 tid=0x1b nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Periodic tasks thread@1719" daemon prio=5 tid=0x17 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Lock thread@1322" prio=1 tid=0x15 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at java.net.DualStackPlainSocketImpl.accept0(DualStackPlainSocketImpl.java:-1)
   at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
   at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:198)
   - locked <0x4089> (a java.net.SocksSocketImpl)
   at java.net.ServerSocket.implAccept(ServerSocket.java:530)
   at java.net.ServerSocket.accept(ServerSocket.java:498)
   at com.intellij.idea.SocketLock$MyRunnable.run(SocketLock.java:217)
   at java.lang.Thread.run(Thread.java:744)

"timed reference disposer@250" daemon prio=2 tid=0xc nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
   at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"JobScheduler pool 3/4@9705" prio=5 tid=0x38 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:539)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"JobScheduler pool 2/4@9706" prio=5 tid=0x37 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:539)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"JobScheduler pool 1/4@9704" prio=5 tid=0x36 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.PriorityBlockingQueue.take(PriorityBlockingQueue.java:539)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"FS Synchronizer@9298" daemon prio=5 tid=0x34 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Alarm pool(shared)@4326" daemon prio=3 tid=0x29 nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
   at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
   at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)

"Document commit thread@5096" prio=4 tid=0x2c nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.Object.wait(Object.java:503)
   at com.intellij.psi.impl.DocumentCommitThread.pollQueue(DocumentCommitThread.java:317)
   at com.intellij.psi.impl.DocumentCommitThread.run(DocumentCommitThread.java:293)
   at java.lang.Thread.run(Thread.java:744)

"TimerQueue@4431" daemon prio=5 tid=0x2a nid=NA waiting
  java.lang.Thread.State: WAITING
   at sun.misc.Unsafe.park(Unsafe.java:-1)
   at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
   at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
   at javax.swing.TimerQueue.run(TimerQueue.java:192)
   at java.lang.Thread.run(Thread.java:744)

"StoreRefreshStatusThread@2653" daemon prio=1 tid=0x21 nid=NA sleeping
  java.lang.Thread.State: TIMED_WAITING
   at java.lang.Thread.sleep(Thread.java:-1)
   at com.intellij.util.TimeoutUtil.sleep(TimeoutUtil.java:58)
   at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl$StoreRefreshStatusThread.run(LocalFileSystemImpl.java:389)

"ApplicationImpl pooled thread 2@2650" prio=4 tid=0x20 nid=NA sleeping
  java.lang.Thread.State: TIMED_WAITING
   at java.lang.Thread.sleep(Thread.java:-1)
   at com.intellij.util.TimeoutUtil.sleep(TimeoutUtil.java:58)
   at com.intellij.util.io.BaseOutputReader.doRun(BaseOutputReader.java:116)
   at com.intellij.util.io.BaseOutputReader$1.run(BaseOutputReader.java:57)
   at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:744)
   at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

"FocusManager timer@3370" daemon prio=2 tid=0x25 nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.Object.wait(Object.java:503)
   at java.util.TimerThread.mainLoop(Timer.java:526)
   at java.util.TimerThread.run(Timer.java:505)

"Shared SimpleTimer@3363" daemon prio=2 tid=0x24 nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.util.TimerThread.mainLoop(Timer.java:552)
   at java.util.TimerThread.run(Timer.java:505)

"AWT-Shutdown@1726" prio=5 tid=0x19 nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.Object.wait(Object.java:503)
   at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:287)
   at java.lang.Thread.run(Thread.java:744)

"AWT-Windows@503" daemon prio=6 tid=0x11 nid=NA runnable
  java.lang.Thread.State: RUNNABLE
   at sun.awt.windows.WToolkit.eventLoop(WToolkit.java:-1)
   at sun.awt.windows.WToolkit.run(WToolkit.java:299)
   at java.lang.Thread.run(Thread.java:744)

"Java2D Disposer@499" daemon prio=10 tid=0xf nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
   at sun.java2d.Disposer.run(Disposer.java:145)
   at java.lang.Thread.run(Thread.java:744)

"Finalizer@14553" daemon prio=8 tid=0x3 nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135)
   at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151)
   at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:189)

"Reference Handler@14554" daemon prio=10 tid=0x2 nid=NA waiting
  java.lang.Thread.State: WAITING
   at java.lang.Object.wait(Object.java:-1)
   at java.lang.Object.wait(Object.java:503)
   at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)

"DestroyJavaVM@280" prio=5 tid=0xe nid=NA runnable
  java.lang.Thread.State: RUNNABLE

"Attach Listener@14551" daemon prio=5 tid=0x5 nid=NA runnable
  java.lang.Thread.State: RUNNABLE

"Signal Dispatcher@14552" daemon prio=9 tid=0x4 nid=NA runnable
  java.lang.Thread.State: RUNNABLE

0
Comment actions Permalink

Something is wrong - there is no file chooser dialog in that dump. AWT thread should look like this:

"AWT-EventQueue-0 14.0#__BUILD_NUMBER__, eap:true@2444" prio=6 tid=0x18 nid=NA waiting
  java.lang.Thread.State: WAITING
       at sun.misc.Unsafe.park(Unsafe.java:-1)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
       at java.awt.EventQueue.getNextEvent(EventQueue.java:542)
       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:170)
       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
       at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
       at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
       at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
       at java.security.AccessController.doPrivileged(AccessController.java:-1)
       at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
       at java.awt.Dialog.show(Dialog.java:1084)
       at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:779)
       at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:464)
       at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1572)
       at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1539)
       at com.intellij.openapi.fileChooser.ex.FileChooserDialogImpl.choose(FileChooserDialogImpl.java:150)
       at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:111)
       at com.intellij.openapi.fileChooser.FileChooser.chooseFiles(FileChooser.java:89)

          ...
0
Comment actions Permalink

Hi,
I was not awre of that. But i want do select the file and  edit that. so thats why iam calling from write action, so if filechooser cannot be called from write action how can i do that.

Regards,
Mangala

0
Comment actions Permalink

You need to start the write action after the dialog has been displayed and the file is chosen.

0

Please sign in to leave a comment.