Bug 108704 - [1.5][code assist] Hard to add static import using code assist
Summary: [1.5][code assist] Hard to add static import using code assist
Status: RESOLVED DUPLICATE of bug 97085
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 11:42 EDT by Dirk Baeumer CLA
Modified: 2006-04-21 10:59 EDT (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 Dirk Baeumer CLA 2005-09-02 11:42:29 EDT
While verifying bug 95096 I noticed that it is very hard to statically import
something using code assist. I wanted to create the following import statement:

import static java.lang.Math.abs;

So I typed 

import static java.la<code assist>

all I can do is to select java.lang.* which gives me

import static java.lang.*;

So I have to delete *; and open code assist again and select Math.

If we are in a static import we should properly no expand to java.lang.*; we
should export to java.lang. instead.
Comment 1 Daniel Spiewak CLA 2006-02-20 08:38:11 EST
Also, if you type:

import static java.lang.Math.<<content assist>

...and select one of the suggestions, the content assist *completely* replaces the import statement with the selected method, rather than importing it properly.  If you like, I can open a new bug on this one.
Comment 2 David Audel CLA 2006-04-21 10:57:18 EDT

*** This bug has been marked as a duplicate of 97085 ***
Comment 3 David Audel CLA 2006-04-21 10:59:43 EDT
I opened a new bug report for comment 1: bug 137954.