Bug 5117

Summary: Gaining editor focus shows only package declaration
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2001-10-19 14:17:17 EDT
Using build 10182001

When a java editor gains focus, it shows only the package declaration for that 
compilation unit.  This is arguably the *least* useful thing to show when the 
editor first gets focus.  If I select a whole compilation unit in the packages 
view, I expect to see the whole compilation unit in the editor.

One more subtle bug caused by this behaviour (this is with the java method 
editor):

1) Expand packages view to compilation unit, double click to open editor
2) Expand CU in packages view to show imports, type definitions
3) In packages view, select "import declarations"
4) Click in the editor, it switches back to show only the package declaration.

This means it's impossible to edit the imports using only the packages view and 
the editor!
Comment 1 Erich Gamma CLA 2001-10-19 22:40:33 EDT
fixed