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

Fixes #512 - Transform the Quick Fixes which extends InsertAnnotationQuickFix to implement the code action participant extension point #523

Conversation

aparnamichael
Copy link
Contributor

Fixes #512 - Transform the Quick Fixes which extends InsertAnnotationQuickFix to implement the code action participant extension point

Enabled code actions test as well

anusreelakshmi934 and others added 17 commits September 8, 2023 16:41
Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
…er/ProcessStreamConnectionProvider.java

Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
The server files were modified.
changed to built in IntelliJ APIs to show pop up errors.
checkJavaHome() made to return a boolean value. and modified the code according to other comments
added the boolean return method
Formatting done. Changed method name to isJavaHomeValid.
…Liberty#196

Fixes OpenLiberty#196 : Error message popup if Java 17 is not found to launch language servers
1. Implemented IJavaCodeActionParticipant
2.  Made the class abstract
…ngType quick fix

Added extension point and enabled the tests
@aparnamichael aparnamichael removed the request for review from vaisakhkannan October 9, 2023 11:00
@@ -112,4 +131,16 @@ protected PsiModifierListOwner getBinding(PsiElement node) {
protected String getLabel(String annotationName, String... attributes) {
return Messages.getMessage("InsertItem", "@" + annotation); // uses Java syntax
}

private CodeAction createCodeAction(JavaCodeActionContext context, Diagnostic diagnostic, String label) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mrglavas - can we raise a separate PR for moving this method to a common file?

Copy link
Contributor

Choose a reason for hiding this comment

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

@aparnamichael Yes. Feel free to open a separate issue and PR for this. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created PR for the same - #531

@aparnamichael aparnamichael merged commit 4ac1934 into OpenLiberty:code-action-unification Oct 18, 2023
2 of 3 checks passed
@aparnamichael aparnamichael deleted the issue25_refactor_-InsertAnnotationQuickFix branch June 7, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants