Java coded templates ( or code snippets )

Add this URL to your Eclipse Installation to reach this solution's update site.

Oxygen (4.7)
Neon (4.6)
Mars (4.5)
Photon (4.8)
2018-09 (4.9)
2018-12 (4.10)


Learn more...

Details Group Tabs

Details

This is an Eclipse plugin that allows the user to write code templates (or code snippets) for the Java editor where some template variables are computed from other template variables.

You can manage your Java-coded templates via the menu Window -> Preferences -> Java -> Editor -> Java-coded templates. Hit the New-button to start coding a new template.

E.g. the following would be code for a template for a private field with a getter-method

private ${type} ${field_name};
public ${type} ${getter: (String type, String field_name) ->
{
String s = Character.toUpperCase( field_name.charAt(0) ) + field_name.substring(1);
if(type.equals("boolean") )
return "is" + s;
else
return "get" + s;

}
}(){
return ${field_name};
}

After having successfully written your template, just type the first letters of the template's name into a Java editor and invoke content assist via Ctrl + Space.

Categories:
Additional Details
Eclipse Versions: 
Oxygen (4.7), Neon (4.6), Mars (4.5), Photon (4.8), 2018-09 (4.9), 2018-12 (4.10)
Platform Support: 
Windows, Mac, Linux/GTK
Organization Name: 
Date Created: 
Mon, 2017-05-22 16:19
Development Status: 
Mature
License: 
EPL
Date Updated: 
Tue, 2018-11-27 10:22
Screenshots
Metrics
DateRankingInstallsClickthroughs
December 2018541/89814 (0%)5
November 2018609/93918 (0%)2
October 2018568/94324 (0%)5
September 2018571/94121 (0%)3
August 2018648/93915 (0%)1
July 2018551/94026 (0%)7
June 2018555/94725 (0.01%)4
May 2018528/95431 (0.01%)6
April 2018557/94628 (0.01%)9
March 2018606/96119 (0%)12
February 2018640/94015 (0%)3
January 2018558/94524 (0%)3
View Data for all Listings
Errors

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)
External Install Button

Marketplace Drag to Install button

By adding the following code below to your website you will be able to add an install button for Java coded templates ( or code snippets ).

HTML Code:


Markdown Syntax:



Output: Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client
Saturday, December 15, 2018 - 18:30