GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-880

Offer to auto-import classes if not found in annotations

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 2.1.1Release
    • Component/s: Quick fix/assist
    • Labels:
      None
    • Number of attachments :
      0

      Description

      If you define class level annotations like:

      @RunWith(Suite)
      @SuiteClasses([
        DomainEventsSpec
      ])
      class Blah {}
      

      And DomainEventsSpec hasn't been imported then you get an error. If you go to the error with CMD+. then there is no quick fix option to import the class meaning you have to navigate to the end of the line and hit CTRL+Space to import the class which is a little annoying

        Issue Links

          Activity

          Hide
          Andrew Eisenberg added a comment -

          We have not implemented quick fixes or quick assists in groovy-eclipse yet.

          Does CTRL-Shift-O work for you to auto-import?

          Show
          Andrew Eisenberg added a comment - We have not implemented quick fixes or quick assists in groovy-eclipse yet. Does CTRL-Shift-O work for you to auto-import?
          Hide
          Graeme Rocher added a comment -

          Yes CMD+SHIFT+O works. Thanks for the tip, will leave the issue open though as I think quick fixes with CMD+1 should be supported

          Show
          Graeme Rocher added a comment - Yes CMD+SHIFT+O works. Thanks for the tip, will leave the issue open though as I think quick fixes with CMD+1 should be supported
          Hide
          Andrew Eisenberg added a comment -

          Nieraj is working on this. Will make it into a dev build soon.

          Show
          Andrew Eisenberg added a comment - Nieraj is working on this. Will make it into a dev build soon.

            People

            • Assignee:
              Nieraj Singh
              Reporter:
              Graeme Rocher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: