There is a cool feature in Eclipse: You can paste code you copied from antoher website into a source folder of Eclipse and all needed resources will be created:
- Package structure
- Class/Interface/Enum
- Code will be pasted into the newly created file
For instance you’ll find this code anywhere in a tutorial:
package a.b.c;
class A{
public A(){}
public void methodA(){
System.out.println("This is a very useful class!");
}
}
Copy this code and paste it into an Eclipse source folder. After this a new package structure a/b/c and a new class A.java with the content exists.
That’s all. A very useful feature…
Related posts:
- My personal Eclipse: The Eclipse-Manager My personal Eclipse im Eclipsemagazin 09 This article shows how...
- Visualisation of a Groovy-DSL with Eclipse GMF EclipseMagazin 01.09 with Christian Bäurle, beyondsoft PDF-File Article as PDF...
- Groovy Eclipse Plugin wins award for Best Open Source Developer Tool At EclipseCon 2010 the Groovy Eclipse Plugin wins the award...
- Groovy-Eclipse 2.0.1 Released The newest release is available. This release is mainly a...


Comments are closed.