Bug 558917 - Add quickfix on class for Source -> Generate Constructor ...
Summary: Add quickfix on class for Source -> Generate Constructor ...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-08 06:15 EST by Lars Vogel CLA
Modified: 2020-09-07 10:52 EDT (History)
3 users (show)

See Also:


Attachments
Screencast (35.56 KB, image/png)
2020-01-08 06:15 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2020-01-08 06:15:48 EST
Created attachment 281409 [details]
Screencast

Would be nice to have quickfixes for Generate Constructor on the class. Currently the menu is almost emptry.

IntelliJ allows to trigger all its generate stuff via one shortcut.
Comment 1 Stephan Herrmann CLA 2020-01-08 16:24:18 EST
I believe that Ctrl+1 is primarily intended for fixing problems ("quick fix"). Quick *assists* are already bending the rules, but putting "all actions that modify the code" into one pop-up sounds like a bad idea. Showing tens of pages of possible options might help to show-off the great number of things we can do, but it will not speed up development, quite to the contrary.

As you say "menu", there is already a (real) menu holding the option you are looking for. What's wrong with Alt+S?

I personally very much like Alt+Shift+T. Perhaps it's possible to create a similar context menu for all generate actions that are applicable at the caret?

Or: what about adopting the concept behind repeated Ctrl+space? I.e.: repeated Ctrl+1 could cycle through a list of contributed categories of modifications:
 - fix
 - assist
 - generate
 - refactor
 - cleanup
 - ...
This way we could indeed offer a single starting point ("if you don't know, what to do, press Ctrl+1"), without overwhelming the user with a huge, unstructured list.
Comment 2 Lars Vogel CLA 2020-09-07 10:51:51 EDT
I think a quickfix or quick assists here would be fine, as the menu is still almost empty.