Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Code Action: Generate Constructors #1034

Closed

Conversation

testforstephen
Copy link
Contributor

@testforstephen testforstephen commented May 14, 2019

Signed-off-by: Jinbo Wang [email protected]

Close #972

generateConstructors

@testforstephen
Copy link
Contributor Author

Peer UI PR: redhat-developer/vscode-java#921

@fbricon
Copy link
Contributor

fbricon commented May 14, 2019

test this please

@fbricon
Copy link
Contributor

fbricon commented May 14, 2019

Could we combine the generate constructor from super class and from fields into one workflow, like in intellij? The idea is to 1st select the constructors from the parent you want generate, then select the fields to initialize.
So basically change the constructor selection step from single to multiple selection.

@fbricon
Copy link
Contributor

fbricon commented May 14, 2019

That would change the label of the source action to Generate Constructors...

@fbricon
Copy link
Contributor

fbricon commented May 14, 2019

See IDEA workflow:
gen-constructors

@testforstephen testforstephen changed the title Add Code Action: Generate Constructor Add Code Action: Generate Constructors May 15, 2019
@testforstephen
Copy link
Contributor Author

Nice, i like the suggested workflow.

@fbricon
Copy link
Contributor

fbricon commented May 16, 2019

Merged as 43a78f7.

I changed checkConstructorStatus => checkConstructorsStatus

@fbricon fbricon closed this May 16, 2019
@testforstephen testforstephen deleted the jinbo_constructor branch May 17, 2019 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code action to generate constructors
2 participants