Bug 5117 - Gaining editor focus shows only package declaration
Summary: Gaining editor focus shows only package declaration
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-19 14:17 EDT by John Arthorne CLA
Modified: 2001-10-19 22:40 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 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