Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:56
Mike Cooper is currently offline Mike CooperFriend
Messages: 59
Registered: February 2011
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:

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
	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: Sat Apr 04 18:56:03 GMT 2020

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

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

Back to the top