Community
Participate
Working Groups
The IWorkbenchPageTest.testCloseEditors is failing in the latest code from head. Tod says: FYI I have disabled this line in the test as Chris thinks it may now be obsolete with todays rework and there was no point declaring a build failure this close to the milestone before Chris got a chance to look at it. Nick says: I don't think the test should be disabled. Although the isDirty check on that line seems unrelated to the test for whether closeEditors(emptyArray) calls doSave on the other editors, it should have been called when the editor was opened. This is happening correctly in other cases. EditorPresentation.initTab calls it when getting the initial label text. So this indicates that opening an editor in this case is not initializing the presentaton tab. I'll try to dig a little further.
Traced through the previous openEditor. In EditorWorkbook.add(LayoutPart), showPart is not getting called because active==false. It looks like this can only be false when the workbook is disposed, but it's still the active workbook.
Provided a different fix for bug 55905. The test no longer fails.