Tag Archives: Eclipse

Copy and paste code into Eclipse

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…

Groovy-Eclipse 2.0.1 Released

The newest release is available. This release is mainly a bugfix release. There are 2 new features:

  • Filter internal stacktraces
  • Importing GMaven projects

You can read here the New and Noteworthy. If you like you are be able to update your Eclipse installation with this update site: http://dist.springsource.org/release/GRECLIPSE/e3.5/