Rounded corners and bordered nodes [message #1860963] |
Tue, 12 September 2023 05:22  |
Eclipse User |
|
|
|
Hi everyone,
I'm new to Sirius and I am using it to make an editor for a modelling language called EGSM. I have two style related questions to make my editor more accurate (and nicer to use):
- I need to make a rectangle that has rounded corners, how can I acheive this?
- I also need to have shapes on the side of this rectangle, ideally on the line. I am using bordered nodes for this but they are not quite where I would like them to be.
I attached an image of what I currently have and what I am trying to achieve, does anyone have any tips?
Thank you
|
|
|
|
Re: Rounded corners and bordered nodes [message #1860987 is a reply to message #1860968] |
Wed, 13 September 2023 05:50  |
Eclipse User |
|
|
|
Hi Laurent
Thank you for your reply.
I have managed to make the rounded corners on the rectangle like I wanted to, however I am having some trouble with editing the style programmatically.
I have added the extension point to the plugin.xml file and I wanted to make my own style configuration as a sub class of SimpleStyleConfiguration like the documentation suggested. However, when I copy paste the implemetation of SimpleStyleConfiguration I get a lot of errors. Most of them are just a matter of importing a thing or two, but many remain. They are mostly errors where something cannot be resolved to a type (IBorderItemLocator, DDiagramElement, WrapLabel...) where I do not have the option to import the missing elements. Maybe I am missing some plugin dependencies? Also, do I need to define my own provider class or should the one from the documentation work fine? I have attached a few screenshots of the errors and plugin.xml file.
Thank you
|
|
|
Powered by
FUDForum. Page generated in 0.02875 seconds