| Summary: | Unable to open testlog file if it is not part of the workspace | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Usha <usha_thulasiram> | ||||
| Component: | TPTP | Assignee: | Bozier jerome <jerome.bozier> | ||||
| Status: | CLOSED FIXED | QA Contact: | Kathy Chan <kathy> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | jerome.bozier, paulslau, prakash | ||||
| Version: | unspecified | Flags: | paulslau:
review+
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Usha
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. |