Bug 39026 - Wrong editor activated if close and reopen with other than last tab selected
Summary: Wrong editor activated if close and reopen with other than last tab selected
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-17 12:35 EDT by Chris Keller CLA
Modified: 2003-06-23 16:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Keller CLA 2003-06-17 12:35:12 EDT
Open two java files in the IDE and make sure you have the outline view 
visible.  Click on the first editor tab (tab nearest to the left).  The 
outline will show the correct information about that class.  Now close the IDE 
and reopen it.  Notice that the second editor tab is highlighted, but the 
outline is showing information from the first editor.  This condition 
shouldn't happen so either the wrong tab was highlighted or the wrong editor 
was activated.
Comment 1 DJ Houghton CLA 2003-06-18 09:35:05 EDT
Problem with restoring workbench state from workbench.xml? 
Moving to Platform/UI for comment/redirection.
Comment 2 Debbie Wilson CLA 2003-06-18 11:59:10 EDT
It looks very much like something happened to your workbench.xml file and 
Eclipse was unable to restore your state on startup.  What happened when you 
shutdown just previous to this startup?  Is there anything in your .log file?  
Did you experience any crashes?  Do you have any non-standard plugins in your 
environment?  Which version (exactly) of Eclipse are you using?  Are you 
using 'Release Build: 2.1"?
Comment 3 Chris Keller CLA 2003-06-18 12:06:36 EDT
I didn't get any errors shutting down or starting up.  Actually you can hardly 
notice the problem unless you have the peripheral views like outline up. Then 
you will see that they are reffering to the editor which had focus on shutdown 
although the phsysically last tab is highlighted.  It should be relatively 
easy to duplicate using my original description.  Are you having trouble 
duplicating it?

My exact build info is:

Version: 2.1.0
Build id: 200303272130
Comment 4 Debbie Wilson CLA 2003-06-18 14:55:50 EDT
Yes, I am having trouble duplicating this. What was in the .log file?
Comment 5 Chris Keller CLA 2003-06-19 10:41:29 EDT
Yes, I see there was one more thing I did that you need to do to duplicate the 
problem.  You also have to have the Navigator view highlight the file 
associated with the second editor (last physical tab) before closing down, but 
have the first tab selected.  Then when reopening it seems to somehow force 
the tab selection to that same last file although the other views think the 
first file is active.
Comment 6 Chris Keller CLA 2003-06-19 10:42:44 EDT
Also nothing is in the .log file, so it is apparently not an exception causing 
the behaviour.
Comment 7 Debbie Wilson CLA 2003-06-23 16:16:13 EDT
Have been able to reproduce this with release build 2.1 using the following 
steps:
- Java perspective 
- open 2 java files (in my case UIPlugin.java and MyUIPlugin.java)
- have Navigator view up instead of Package Explorer
- select 'Link With Editor' in Navigator view (so when you change editors, it 
updates the Navigator view)
- select editor tab for UIPlugin.java (1st java file)
- de-select 'Link With Editor' (UIPlugin is highlighted in Navigator)
- select editor tab for MyUIPlugin.java (2nd editor tab)
- Outline view shows MyUIPlugin, active editor is MyUIPlugin bug Navigator has 
UIPlugin highlighted
- shutdow Eclipse
- restart Eclipse
- Outline view shows MyUIPlugin (same as before), active editor is UIPlugin 
(different), and Navigator has UIPlugin highlighted (same as before)

Note, this is appears to be fixed in Release Candidate 1 for stream 2.1.1