GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-1262

Auto-add curly brace after closure definition with an argument

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.2.Release
    • Fix Version/s: 2.6.1.M1
    • Component/s: Formatting
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When there is a single curly brace at the end of a line and enter is pressed, the brace is automatically closed at the correct indent level. Eg:

      foo {|
      

      becomes:

      foo {
          |
      }
      

      However, if the closure has arguments, then the brace is not autoclosed. Eg-

      foo { String x ->|
      

      becomes:

      foo { String x ->
      |
      

      This would be good to fix as we are changing the way that content assist inserts closures.

        Issue Links

          Activity

          Hide
          Andrew Eisenberg added a comment -

          Now fixed. Kris did the work and I added a couple of regression tests.

          Show
          Andrew Eisenberg added a comment - Now fixed. Kris did the work and I added a couple of regression tests.
          Andrew Eisenberg made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Kris De Volder [ kdvolder ]
          Resolution Fixed [ 1 ]
          Andrew Eisenberg made changes -
          Link This issue supercedes GRECLIPSE-1232 [ GRECLIPSE-1232 ]
          Andrew Eisenberg made changes -
          Fix Version/s 2.6.1.M1 [ 18289 ]
          Fix Version/s 2.6.0.Release [ 17849 ]

            People

            • Assignee:
              Kris De Volder
              Reporter:
              Andrew Eisenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: