CustomEditor and Throwable
Hi I working on custom editor. I registered my filetype and provider in plugin.xml and it works in case of open file from filesystem but when I tried open file with follow commands:
LightVirtualFile lightVirtualFile = new LightVirtualFile("xxx.jsono", JsonFileType.INSTANCE, content);
FileEditorManager.getInstance(project).openFile(lightVirtualFile, true);
File is open in my custom editor but I also receive always this exception:
[ 19593] ERROR - tor.impl.FileEditorManagerImpl - Assertion failed
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:144)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:153)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$12.run(FileEditorManagerImpl.java:860)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2363)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:842)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:776)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$9.run(FileEditorManagerImpl.java:756)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:753)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:694)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:140)
at com.slama.plugin.json.dialogs.OpenJSONUrlDialog$2$1$1.run(OpenJSONUrlDialog.java:168)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - IntelliJ IDEA 14.1.3 Build #IU-141.1010.3
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - JDK: 1.8.0_31
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - VM: Java HotSpot(TM) 64-Bit Server VM
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - Vendor: Oracle Corporation
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - OS: Mac OS X
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - Last Action: openwrapper
[ 19595] ERROR - tor.impl.FileEditorManagerImpl - Current Command:
Please sign in to leave a comment.
[SOLVED] in Editor class overrided method isValid() return alway false;