facebook

[Closed] usage of Eclipse templates and MyEclipse snippets

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #243322 Reply

    zapa
    Member

    Sorry but i’ll revive the subject i started yesterday about live templates . It looks like the Eclipse Templates are actually a standard eclipse feature and that’s great . However it looks like they can only be applied for java and javadocs … I know it’s slighly off topic , but can anybody clarify if there is no way to create templates for other types of code formats … xml , javascript , etc …

    Of course a great alternatives to the templates i’ve found in the MyEclipse Snippets . I was very happy to see they are customizable . One questions though : is there a way to use them maybe , like a live template , as in ccallingthem up from the keyboard without having to use the mouse ?

    Also , I see the Snippets CAN indeed be inclued into html and other formats . However I was not able to find a place to set what format the template will be for . And I tried creating my own Tapestry Page template . This is basically some XML which will be inserted into a xml file with the .page extension . It looks like this does not work , I can’t drag and drop the Snippet onto the .page editor .

    Any insight here ?

    Thanks

    #243389 Reply

    Scott Anderson
    Participant

    Zapa,

    You’re correct that the templates are a feature unique to the Java editor in Eclipse. The Snippets at present are only accessible with the mouse through clicking or drag-and-drop onto one of our editors. Unfortunately, the Tapestry editor is probably the only one that is not presently “drop aware”. You can put your snippet into it simply by making the Tapestry editor the active editor and double-clicking your snippet in the list.

    #243488 Reply

    zapa
    Member

    heh never tried double clicking yet …

    well that’s great , i’ve tried it and it works , so thanks once again for your help

    #243516 Reply

    glongman
    Member

    It’s true that the tapestry editors are not snippet-drag&drop aware and I’m glad there’s a work around.

    The Tapestry editors do have comprehensive template support built in (akin to the Java editor’s templates) . Have a look at the docs.

    Geoff

    #243610 Reply

    zapa
    Member

    many cool , hidden features 🙂

    thanks

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed] usage of Eclipse templates and MyEclipse snippets

You must be logged in to post in the forum log in