Methods

In this section, you will see how to insert new methods in your classes from the EMF class diagram graphical interface.


To create a new method, select New > Method in the EMF class contextual menu.



It launches a method creation dialog box. You have to set the method name, return type, parameters, and exceptions.



For each parameter, you must indicate its name and type.





The method appears immediatly in the class. If you click on the method, its code appears in the java editor area.