by, 11-10-2011 at 06:30 PM (1253 Views)
Eclipse Templates are used to make programming easier and simpler. Eclipse IDE provides many templates by default which can be used to save time. Also one can add more templates as required. In this post, I will briefly write about creating and using templates in Eclipse.
Open the preferences window in Eclipse. Under Java > Editor you will find Templates. Click it and you will see the available templates in the right had side window.
Making own template is also very simple. For instance you want to create a template to declare an ArrayLype bounded by String:
Simple go to preferences window and add a new template under Java > Editor > Templates.Java Code:ArrayList arrayList = new ArrayList();
Play around and explore more.