I install Papyrus at here. So how to generate code using Papyrus ?
You need to install Papyrus Java Classes Generator.
Now, in your model.di : right click on your class --> Java --> Generate java code. And you're done !