Bug 198499

Summary: [extract interface] Propose name for extracted interface in extract interface dialog
Product: [Eclipse Project] JDT Reporter: Tal Yacobi <talyacobi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: benno.baumgartner, frederic_fusier, talyacobi
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tal Yacobi CLA 2007-08-01 05:01:13 EDT
Right clicking on a java class and clicking Refactor-> Extract Interface
opens the Extract Interface dialog. The name of the new interface created is left blank.
Whenever I create a new interface I simply add the letter I to the name of the class. I believe most java programmers use a prefix or suffix attached to the class name. It would be nice to have a default name in the dialog, possibly with a prefix or suffix defined in the java preferences page.
This problem causes more irritation due to the fact that the dialog is modal.
You must copy the name of the class before opening the dialog and then paste it in the name field and add an I as a prefix. If you forget to copy the name of the class, you must either type it in manually or close the dialog and start anew.