- This topic has 4 replies, 3 voices, and was last updated 18 years, 11 months ago by zapa.
-
AuthorPosts
-
zapaMemberSorry 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
Scott AndersonParticipantZapa,
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.
zapaMemberheh never tried double clicking yet …
well that’s great , i’ve tried it and it works , so thanks once again for your help
glongmanMemberIt’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
zapaMembermany cool , hidden features 🙂
thanks
-
AuthorPosts