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 actions to add sealed/final/non-sealed modifier on a permitted type declaration. #1555

Closed
fbricon opened this issue Sep 28, 2020 · 2 comments · Fixed by #1557
Closed

Comments

@fbricon
Copy link
Contributor

fbricon commented Sep 28, 2020

Need to reuse Eclipse IDE's quick fixes to add sealed/final/non-sealed modifier on a permitted type declaration.:

  • Given a sealed ShapeClass class:

  • Given a sealed ShapeInterface interface:

@rgrunber
Copy link
Contributor

Looks like this is a matter of updating JDT-LS' QuickFixProcessor and migrating JDT's ModifierCorrectionSubProcessor#addSealedMissingModifierProposal(..) to JDT-LS.

rgrunber added a commit to rgrunber/eclipse.jdt.ls that referenced this issue Sep 29, 2020
- Add support for code actions to generate sealed/un-sealed/final
  modifiers on class with sealed direct super-class/super-interface
- Fixes eclipse-jdtls#1555

Signed-off-by: Roland Grunberg <[email protected]>
rgrunber added a commit to rgrunber/eclipse.jdt.ls that referenced this issue Sep 30, 2020
- Add support for code actions to generate sealed/un-sealed/final
  modifiers on class with sealed direct super-class/super-interface
- Fixes eclipse-jdtls#1555
- Add testcase

Signed-off-by: Roland Grunberg <[email protected]>
rgrunber added a commit to rgrunber/eclipse.jdt.ls that referenced this issue Oct 1, 2020
- Add support for code actions to generate sealed/un-sealed/final
  modifiers on class with sealed direct super-class/super-interface
- Fixes eclipse-jdtls#1555
- Add testcase

Signed-off-by: Roland Grunberg <[email protected]>
fbricon pushed a commit that referenced this issue Oct 1, 2020
- Add support for code actions to generate sealed/un-sealed/final
  modifiers on class with sealed direct super-class/super-interface
- Fixes #1555
- Add testcase

Signed-off-by: Roland Grunberg <[email protected]>
@fbricon fbricon added this to the Mid October 2020 milestone Oct 1, 2020
@fbricon
Copy link
Contributor Author

fbricon commented Oct 1, 2020

Results in vscode-java:
Screen Shot 2020-10-01 at 5 06 34 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants