Aqueduct IntellIJ IDEA Templates

For convenience in creating files and writing common code, the following IntelliJ IDEA templates are available:

File Templates

  • Aqueduct HTTPController
  • Aqueduct ManagedObject
    • Creates a new file with the skeleton of a ManagedObject subclass
  • Aqueduct Test
    • Creates a new file that imports a test harness and implementations for setting up and tearing down a TestApplication.

After installation, file templates are available through any IntellIJ IDEA interface for creating files when the project has been enabled to use the Dart plugin.

Live Templates

  • 'bindmethod'
    • Enters a skeleton of an HTTPController responder method - after insertion, enter the HTTP method to finish the method declaration.
  • 'bindheader'
    • Enters an @HTTPHeader binding - after insertion, enter the name of the header.
  • 'bindquery'
    • Enters an @HTTPQuery binding - after insertion, enter the name of the query parameter.

Installation

Download the this file and import it into IntelliJ by selecting Import Settings... from the File menu.