Community
Participate
Working Groups
Build 20020129 On line 83 of StorageDocumentProvider, it creates a status like so: IStatus s= new Status(IStatus.ERROR, null, IStatus.OK, x.getMessage(), x); Note that it passes null as the second argument, which should be the plugin id. This will cause a RuntimeException in the Status constructor because a null ID is not allowed. It should instead pass in the ID of the UI plugin. This can happen, for example, if you try to double click on a file in the repositories view, but you don't have the appropriate permissions in the repository. The following stack trace appears in the log in this case: java.lang.IllegalArgumentException: at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java(Compiled Code)) at org.eclipse.core.runtime.Status.setPlugin(Status.java(Compiled Code)) at org.eclipse.core.runtime.Status.setPlugin(Status.java(Compiled Code)) at org.eclipse.core.runtime.Status.<init>(Status.java(Compiled Code)) at org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDo cumentProvider.java:83) at org.eclipse.ui.editors.text.StorageDocumentProvider.setDocumentContent(StorageDo cumentProvider.java:106) at org.eclipse.ui.editors.text.FileDocumentProvider.setDocumentContent(FileDocument Provider.java:217) at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocume ntProvider.java:126) at org.eclipse.ui.editors.text.StorageDocumentProvider.createElementInfo(StorageDoc umentProvider.java:138) at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentP rovider.java:381) at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvi der.java:244) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java: 1158) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:836)
Since the problem is in the text editor framework you are working with, could you fix this. Can you also check that it is not being done elsewhere in the text editor framework. I will verify the rest of Eclipse UI code. Thanks!
*** This bug has been marked as a duplicate of 14009 ***