MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
zapa
Post subject: [Closed] usage of Eclipse templates and MyEclipse snippets  PostPosted: Dec 19, 2005 - 03:13 AM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Dec 20, 2005 - 02:22 AM
Moderator
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
zapa
Post subject:   PostPosted: Dec 20, 2005 - 10:24 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
glongman
Post subject:   PostPosted: Dec 21, 2005 - 01:53 PM
Veteran Member
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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
zapa
Post subject:   PostPosted: Dec 22, 2005 - 11:07 PM
Registered Member
Registered Member


Joined: Sep 21, 2005
Posts: 19

many cool , hidden features :)

thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits