Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TEXO] autogenerate toString() should include super class
[TEXO] autogenerate toString() should include super class [message #1441508] Thu, 09 October 2014 16:56
Eclipse UserFriend
Hi Martin,

When Texo auto-generates a model entity class it should generate a toString() method which includes it's parent class. It doesn't do that today.

Here is an example of current function:

@Entity()
public class SoftwareCategory extends Category {

	/**
	 * A toString method which prints the values of all EAttributes of this
	 * instance. <!-- begin-user-doc --> <!-- end-user-doc -->
	 * 
	 * @generated
	 */
	@Override
	public String toString() {
		return "SoftwareCategory ";
	}
}


I think it should generate:
	public String toString() {
		return "SoftwareCategory " + super.toString();
	}


Perhaps an annotation option to enable/disable this behavior would be best.

Thanks in advance for your consideration!
Previous Topic:[EEF] Integration with GMF
Next Topic:[EMF Forms] Show Rule not working if condition is an Enum Feature
Goto Forum:
  


Current Time: Wed Jul 16 16:45:45 EDT 2025

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

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

Back to the top