Bug 80582 - [quick assist] create type of interface
Summary: [quick assist] create type of interface
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-09 06:02 EST by Erich Gamma CLA
Modified: 2009-01-23 11:32 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 Erich Gamma CLA 2004-12-09 06:02:47 EST
Context: 
1) want to introduce a strategy object for test prioritization
2) defined an interface ITestPrioritizer 
public interface ITestPrioritizer {
	Test prioritize(Test input);
}

3) now I want to easily create an implementation of this interface. 

I would like to select the interface name and then get a quick assist: implement
(or subclass in the case of a class). The quick assist should bring up the new
interface wizard properly primed with the selected interface.
Comment 1 Dirk Baeumer CLA 2004-12-09 13:23:15 EST
Doesn't Ctrl+Shift+N, Interface do the trick.
Comment 2 Erich Gamma CLA 2004-12-09 15:46:40 EST
Nope, the creation wizard isn't primed to the interface or base class that is
directly available in the editor. To do that I have to select the type in the
outline or package explorer. We should provide a direct way with no context
switching.
Comment 3 Martin Aeschlimann CLA 2004-12-10 04:07:03 EST
I could change the new type wizards to look at the current selected text and 
then to prime the wizard. But the problem of that is that this will the happen 
a lot even if you don't want it and it would be extra work for the user to 
remove the extended interface again.
So having a quick assist seems the best thing to me
Comment 4 Dirk Baeumer CLA 2004-12-10 06:03:52 EST
Ok, then lets go with the quick assist.