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

Refactoring preview uses Java highlighting for Groovy sources #1026

Open
eric-milles opened this issue Feb 3, 2020 · 1 comment
Open

Refactoring preview uses Java highlighting for Groovy sources #1026

eric-milles opened this issue Feb 3, 2020 · 1 comment

Comments

@eric-milles
Copy link
Member

image

@eric-milles
Copy link
Member Author

eric-milles commented Feb 21, 2020

Refactoring status is displayed using registered viewer.

   <extension point="org.eclipse.ltk.ui.refactoring.statusContextViewers">
      <statusContextViewer
            class="org.eclipse.jdt.internal.ui.refactoring.JavaStatusContextViewer"
            id="org.eclipse.jdt.ui.javaStatusContextViewer">
         <enablement>
            <or>
               <instanceof value="org.eclipse.jdt.internal.corext.refactoring.util.JavaStatusContext"/>
               <instanceof value="org.eclipse.jdt.internal.corext.refactoring.base.JavaStringStatusContext"/>
            </or>
         </enablement>
      </statusContextViewer>
      ...
   </extension>

In the case of synthetic accessor refactoring warnings, refactoring status contexts are created by org.codehaus.groovy.eclipse.refactoring.core.utils.StatusHelper.

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

No branches or pull requests

1 participant