An easy way to achieve this is to add spaces to the name in which you want the line to break.
EA (10) does not recognize control characters in element names and stretches the element horizontally to accommodate the name. However, it seems that the component icon in the upper right corner is not taken into account, so the text is pushed to the border. If you try the same thing with a class (which does not have an icon), it works better. Of course, you can always resize the component manually.
If you work with UML profiles, you can create a stereotype with a script form that allows you to customize the appearance of stereotypical elements. Form scripts do not support string manipulation, but there is a method printwrapped()that should work. But a simple solution for everyday use is to add spaces to the name.
source
share