Bug 111326 - [import rewrite] DCR: new option to always use qualified type names
Summary: [import rewrite] DCR: new option to always use qualified type names
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 08:13 EDT by Sushma Shinde CLA
Modified: 2009-01-23 11:33 EST (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 Sushma Shinde CLA 2005-10-03 08:13:27 EDT
Overview Description:

Code Assist adds import statements for the parameters of the methods while
implementing them from interfaces even when "Add import instead of qualified
name" is unchecked and even if the qualified name is given in the interface methods.

Example: 

public interface someInterface {
public String getResponse(com.xxx.yyy.userClass instance);
}

public someClass implements com.xxx.yyy.someInterface
{

// By this time the yellow bulb appears and says to add unimplemented
//methods. If I add them then it comes in the following way with an import
//statement at the top of the class (import com.xxx.yyy.userClass)

    public String getResponse("userClass" instance) {
   }
}
--------------------------------------------------------
I want the method to appear in the following way. Just the way I added it
in the interface.
--------------------------------------------------------
public String getResponse("com.xxx.yyy.userClass" instance) {
}

(I've added double quotes to distinguish between the signatures).
Everytime removing the import statement and adding the full name is
difficult. I want it to be done automatically.

Will you please do the enhancement?

Thanks,
Sushma
Comment 1 Martin Aeschlimann CLA 2005-10-04 03:58:14 EDT
Note that the option you are refering to is only for code assist. We don't have
that option for all othe code manipulation actions like quick fix, refactorings...

I change this bug to be a feature request for this.