Results 1 to 4 of 4

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

  1. #1

    Default 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. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    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
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3

    Default

    Quote 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

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    Got it. Thanks.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •