Use the JUtils plugin to generate the toString method at package level
Or using reflection you could try something like this:
public static void toString(Object object) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException{
Class c = object.getClass();
Method[] methods = c.getMethods();
for (Method method : methods) {
if(method.getName().startsWith("get")){
System.out.println(method.getName()+" -> " +method.invoke(object, null));
}
}
}
The JUtil plugin would be best because that will allow you to change the toString of a object later on if you need provide more information about the object.