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

Move the logic of MissingAnnotationAttributes to o.e.j.core.manipulation #335

Conversation

datho7561
Copy link
Contributor

What it does

Moves all the text editing logic of the "add missing attributes to annotation" QuickFix to org.eclipse.jdt.core.manipulation so that it can be reused in jdt.ls.

How to test

Test that MissingAnnotationAttributesFixCore can be accessed from another project without needing to require any ui packages.

Author checklist

Signed-off-by: David Thompson davthomp@redhat.com

@datho7561
Copy link
Contributor Author

@rgrunber

datho7561 added a commit to datho7561/eclipse.jdt.ls that referenced this pull request Nov 18, 2022
Requires eclipse-jdt/eclipse.jdt.ui#335

Closes eclipse-jdtls#1806

Signed-off-by: David Thompson <davthomp@redhat.com>
@rgrunber rgrunber self-requested a review November 18, 2022 18:20
@datho7561 datho7561 force-pushed the migrate-annotation-attributes-proposal branch from c0d032f to 9ba8835 Compare December 2, 2022 21:44
@rgrunber
Copy link
Contributor

rgrunber commented Dec 5, 2022

LocalCorrectionsQuickFixTest#testMissingAnnotationAttributes* seem to be passing. I also like that this requires no changes to the call sites that continue to make the call to the jdt.ui layer.

@datho7561 datho7561 force-pushed the migrate-annotation-attributes-proposal branch from 9ba8835 to 8361ddd Compare December 6, 2022 14:02
@rgrunber rgrunber added this to the 4.27 M1 milestone Dec 6, 2022
Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ready to merge. Just one final thing. I would bump the copyright in the one file you modify from 2016 -> 2022, as I see this is still being done.

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the migrate-annotation-attributes-proposal branch from 8361ddd to 77adf22 Compare December 6, 2022 17:50
@rgrunber rgrunber merged commit c9c7e9d into eclipse-jdt:master Dec 6, 2022
@datho7561 datho7561 deleted the migrate-annotation-attributes-proposal branch December 6, 2022 18:27
datho7561 added a commit to datho7561/eclipse.jdt.ls that referenced this pull request Dec 7, 2022
Requires eclipse-jdt/eclipse.jdt.ui#335

Closes eclipse-jdtls#1806

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/eclipse.jdt.ls that referenced this pull request Dec 8, 2022
Requires eclipse-jdt/eclipse.jdt.ui#335

Closes eclipse-jdtls#1806

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/eclipse.jdt.ls that referenced this pull request Dec 9, 2022
Requires eclipse-jdt/eclipse.jdt.ui#335

Closes eclipse-jdtls#1806

Signed-off-by: David Thompson <davthomp@redhat.com>
rgrunber pushed a commit to eclipse-jdtls/eclipse.jdt.ls that referenced this pull request Dec 9, 2022
Requires eclipse-jdt/eclipse.jdt.ui#335

Closes #1806

Signed-off-by: David Thompson <davthomp@redhat.com>
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.

None yet

2 participants