| Author |
Message |
|
|
Post subject: [Closed] usage of Eclipse templates and MyEclipse snippets
Posted: Dec 19, 2005 - 03:13 AM
|
|
Registered Member


Joined: Sep 21, 2005
Posts: 19
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 20, 2005 - 02:22 AM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
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. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 20, 2005 - 10:24 PM
|
|
Registered Member


Joined: Sep 21, 2005
Posts: 19
|
|
heh never tried double clicking yet ...
well that's great , i've tried it and it works , so thanks once again for your help |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 21, 2005 - 01:53 PM
|
|
Veteran Member


Joined: Aug 09, 2003
Posts: 39
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Dec 22, 2005 - 11:07 PM
|
|
Registered Member


Joined: Sep 21, 2005
Posts: 19
|
|
many cool , hidden features :)
thanks |
|
|
| |
|
|
|
 |
|
|
| |