Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse Java template
Eclipse Java template [message #319770] Fri, 31 August 2007 04:06 Go to next message
Eclipse UserFriend
Originally posted by: marx.nospam_wasko.pl

Hello
Is there possibility to make my own code template for whole class?
It's possible in WTP to have template for JSP file.
As for Java I see only Code Snippets or Code Assist which seems to work
only on existing file and only on code fragment.
Maybe better way is to make Java Example? But how?

What I need is to make something like "New..Java Class...templateClass",
then new class is made and I can change values of a few predefined
variables.

The simplest real example is "New..Java Class...sigleton".

How to do that?
Marx
Re: Eclipse Java template [message #319774 is a reply to message #319770] Fri, 31 August 2007 05:22 Go to previous message
Eclipse UserFriend
Marx wrote:

> Hello
> Is there possibility to make my own code template for whole class?
> It's possible in WTP to have template for JSP file.
> As for Java I see only Code Snippets or Code Assist which seems to
> work only on existing file and only on code fragment.
> Maybe better way is to make Java Example? But how?

Java > Editor > Templates

Dani

>
> What I need is to make something like "New..Java
> Class...templateClass", then new class is made and I can change values
> of a few predefined variables.
>
> The simplest real example is "New..Java Class...sigleton".
>
> How to do that?
> Marx
Previous Topic:Problem with visibleWhen in Menu Extension
Next Topic:Red box w/white X decorator in Synchronize view?
Goto Forum:
  


Current Time: Wed Jul 23 09:30:52 EDT 2025

Powered by FUDForum. Page generated in 0.28025 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top