Announcement Announcement Module
Collapse
No announcement yet.
Any way to have "reformat" save actions for Java files and not for Groovy ones? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any way to have "reformat" save actions for Java files and not for Groovy ones?

    On my projects I enabled "Save actions" performing "Format source code", Organize imports and other additional actions (from Project Properties|Java Editor|Save Actions).
    I don't want the same for groovy files, but when I edit and save, it applies all the same actions I've set for Java sources.
    I've seen at workspace preferences level there are some options for groovy formatter and save actions, but they are not enough.

    Since Groovy language is not the Java language I'd like to set different save actions - and maybe different formatting rules - or at least I'd need a way to disable save actions for groovy files (as a first step a file exclusion pattern would be enough).

  • #2
    This feature has not yet been implemented. The only way that I can think of doing this right now is to separate your java and groovy files into separate projects and apply different setting per-project.

    Could you raise a feature request here:

    http://jira.codehaus.org/browse/GRECLIPSE

    Comment


    • #3
      Originally posted by Andrew Eisenberg View Post
      This feature has not yet been implemented. The only way that I can think of doing this right now is to separate your java and groovy files into separate projects and apply different setting per-project.

      Could you raise a feature request here:

      http://jira.codehaus.org/browse/GRECLIPSE
      I've just filed GRECLIPSE-1533.
      Many thanks
      Davide

      Comment


      • #4
        Got it. Thanks.

        Comment

        Working...
        X