Community
Participate
Working Groups
Found this while tracking down another defect (bug 413590). The reason that this defect was manifesting was that the EPartService's 'getParts' call was returning the editor in the 'background' perspective when it shouldn't. The call looks like this: return modelService.findElements(workbenchWindow, id, cls, null, EModelService.OUTSIDE_PERSPECTIVE | EModelService.IN_ACTIVE_PERSPECTIVE | EModelService.IN_SHARED_AREA); Since 'ACTIVE_PERSPECTIVE' was given we should not have seen any parts from background perspectives...
I am not able to reproduce the bug. When the ACTIVE_PERSPECTIVE is used as it is presented in the example, the EPartService.getParts(*) method does not return editors from the background perspective.