Community
Participate
Working Groups
Build Identifier: M20090211-1700 When we import the file not part of workspace it is created as FileStoreEditorInput. In TestLogViewer. init method this type is not handled Because of this , object is null and PartInit exception is thrown Reproducible: Always Steps to Reproduce: 1.Choose file open and open the log file that is not part of the worksapce 2.File cannot be opened and we can see PartInit exception
Where is TestLogViewer class? Can you attach the stack trace?
TestLogViewer is from TPTP. Moving the bug
to be more precise : org.eclipse.ui.PartInitException: Invalid editor input. at org.eclipse.hyades.test.ui.forms.editor.BaseFormEditor.init(BaseFormEditor.java:128) at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313) at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180) at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270) at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473) checking what is happening
Created attachment 176333 [details] patch ok, there was 2 problems in fact : . problem 1 : editor input was of an unknown type until now (IURIEditorInput, for resource outside workspace) . problem 2 (only triggered when 1 was fixed) : EMF resource set had problem with theses external URI and we were not taking care if result could be null fix : . problem 1 : deal this kind of input to retrieve file path (inside test.ui plugin) . problem 2 : take a bit more care of null pointers (inside platform.model.hierarchy plugin)
Paul, could you please review this very short patch ? many thanks in advance, Jerome
. test case added under CVS . wiki updated
Thanks Paul patch pushed under CVS, resolving
hi Bozier, Thanks for the fix. We are using tptp4.3 version. Is it possible to provide this fix as a patch for 4.3.
verified on build TPTP-4.7.1-201008232100, closing
Filling in target milestone as this was fixed for TPTP 4.7.1.