Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: gsp generic template

  1. #1

    Default gsp generic template

    when I create a gsp I get a blank page

    where can I create a generic gsp template in the
    sts 2.3 editor?

    also , if I type a tag and close that tag, then hit enter, the editor only brings the tag to the next line
    which I have to hit enter again to be able to type between the open and close tag.
    Last edited by douglasv; Jan 25th, 2010 at 02:02 PM.

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    The new GSP wizard does not support templates. However, this is a very reasonable feature to have, and perhaps we should implement it.

    What kind of templates would you like to see?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Quote Originally Posted by douglasv View Post
    also , if I type a tag and close that tag, then hit enter, the editor only brings the tag to the next line
    which I have to hit enter again to be able to type between the open and close tag.
    I'm not exactly sure what you mean here, and what is the behavior that you expect to see?

    What are the steps you are taking? Do they include content assist?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  4. #4

    Default

    using say netbeans

    if I type def user = {

    }

    if I type def user = and an opening brace , then hit enter,
    I get the above syntax, my cursor blinking between the braces

  5. #5
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Editor support for closing braces and other things like indentation and formatting are on the roadmap for Groovy-Eclipse 2.1. This is work that we will get to. See the roadmap:

    http://docs.codehaus.org/display/GRO...clipse+Roadmap
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  6. #6
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Also, please let me know what you'd expect to see for templates.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  7. #7

    Default

    normally I've been getting stubs; controller, services, domain...
    which is all that is expected

    again in netbeans, for .gsp files you get
    a full blown html stub file, waiting to be edited.

    also, something no-one seems to have is support for
    the -"g namespace"- which includes code and angle-bracket completion.

    as well as the ability to recognize any name spaces I create
    since this is convention , this should be a piece of cake.

  8. #8
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Quote Originally Posted by douglasv View Post
    normally I've been getting stubs; controller, services, domain...
    which is all that is expected

    again in netbeans, for .gsp files you get
    a full blown html stub file, waiting to be edited.
    This is not available yet, but could be something we will implement in the future. I will raise an enhancement request for this.

    Quote Originally Posted by douglasv View Post
    also, something no-one seems to have is support for
    the -"g namespace"- which includes code and angle-bracket completion.

    as well as the ability to recognize any name spaces I create
    since this is convention , this should be a piece of cake.
    This is basically available in the current snapshot version. Custom taglibs and taglibs from plugins that define their own namespaces are available in content assist. There are some quirks, but it is mostly available.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  9. #9

    Default

    Also, after typing a $ , curly braces and any nested quotes etc
    usually do not close, but the ide types the single keystroke,
    if preceeded by a char you wouldn't expect that though

  10. #10

    Default

    Quote Originally Posted by Andrew E View Post
    Also, please let me know what you'd expect to see for templates.
    Is the following possible?

    vmware's guest on the host machine can speak directly to the "CPU' for time/memory allocation!

    can you use their (code gizmo) to read the cpu's register's directly
    to populate the ide's editor,
    (after first running it by the framework's specific enforcer.)

    Then the fog produced could be sent to be clarified before being sent
    to the cpu

    Thus, Isolating frameworks from leaking on each other
    under the presumption of rain.

Posting Permissions

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