Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 6784

Summary: Reused editor closes fast view
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Simon Arsenault <simon_arsenault>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on:    
Bug Blocks: 6777    

Description Dani Megert CLA 2001-12-11 07:15:29 EST
When editor reusing is starting the fast views no longer work correctly. This is 
because during the reuse process (I guess) the new editor is activated even 
though it is opened with activate=false.

Test Case:
1. Search (text or Java) for something which gives results in different files
2. Make the Search view a fast view
3. Step through the results
   ==> OK: the Search view stays open and the editor is reused (coded in search)
4. Now switch to the a new implementation (no editor reuse):
   Change the code in SearchUI.reuseEditor() to return <code>false</code>
5. Start Eclipse
6. Repeat step 1. to 3.
   ==> each file opens in a new editor and Search view stay open until
       the editor reusing begins: now the Search (fast) view gets closed.
Comment 1 Simon Arsenault CLA 2002-01-28 13:30:45 EST
The editor workbook was giving focus to the editor after the tab was re-
ordered. This is an unnecessary call because if the editor had focus before the 
call, it will still have it afterwards.

Tested the Search view (by returning false for resuse editors) and the correct 
behavior was verified.

In build > 2002-01-28