[TO DISCUSS]
This shouldn't be java specific. It should live in a new project, that has logic related to class diagram. Exactly like the logic for mindmap lives in .editor.mindmap. I'd put it in a .editor.structure_diagram.
We should have there, logic related to the structure diagram (ex-class diagram). And this should be in a service.
What other logic could we put there?