Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Automatically add own Methods to your project
Automatically add own Methods to your project [message #1853129] Sun, 19 June 2022 20:01 Go to next message
Bastian Breitenfelder is currently offline Bastian BreitenfelderFriend
Messages: 1
Registered: June 2022
Junior Member
Hello everyone,
as you know if you are creating a new java project you automatically add methods like main(). And i want to know if its possible to do that with your own methods. For example if i am always using this
void example(){
1=2;
}

is there a way to add that when creating the class?
Re: Automatically add own Methods to your project [message #1853133 is a reply to message #1853129] Mon, 20 June 2022 04:52 Go to previous messageGo to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 97
Registered: October 2018
Member
Hi,

You can add your custom templates:

index.php/fa/42214/0/

Regards.
Re: Automatically add own Methods to your project [message #1853206 is a reply to message #1853133] Wed, 22 June 2022 18:28 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4233
Registered: July 2009
Senior Member

I think you want the other Templates for Java preference page.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:finalize method in Java
Next Topic:JUnit5, Javadoc not working with module-info.java
Goto Forum:
  


Current Time: Tue Jul 05 01:36:53 GMT 2022

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

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

Back to the top