This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 417957 - [Model] ModelService's findElements doesn't honor the 'searchFlags' correctly
Summary: [Model] ModelService's findElements doesn't honor the 'searchFlags' correctly
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M4   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Wojciech Sudol CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 14:53 EDT by Eric Moffatt CLA
Modified: 2013-11-25 09:35 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Moffatt CLA 2013-09-24 14:53:20 EDT
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...
Comment 1 Wojciech Sudol CLA 2013-11-25 09:35:48 EST
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.