gbaychev / NClass

NClass - the free UML editor, reloaded
GNU General Public License v3.0
172 stars 50 forks source link

Classes that implement an interface don't have to adhere to the interface #50

Closed JohnMarkHowell closed 4 years ago

JohnMarkHowell commented 4 years ago

When defining an interface and then define a class that implements that interface, there does not appear to be any restrictions to enforce that the class does, in fact, implement that interface.

It would also be helpful if I could right click on an interface entity and say 'create a class implementing this interface'.

Or am I missing some of the functionality?

gbaychev commented 4 years ago

Hello @JohnMarkHowell , thank you very much for reporting the issue.

I'm not quite sure, that really enforcing it in the diagram is a good idea, although the code generation most definitely needs to be tweaked.

As for your other question:

image

There is also a similar button in the EditMembers dialog, which you can use for now. But I agree - a context menu entry should give a better visibility to this functonality.

JohnMarkHowell commented 4 years ago

Awesome! Thank you Georgi! I had not spotted that icon. I'm just getting familiar with the tool and have yet to dig far into the source but from the various other free UML tools I've tried, this one is closer to the UML spec and symbols than most. And it's much easier to use. Thank you for keeping a good tool alive and hopefully I can help out at some point.

gbaychev commented 4 years ago

I'm happy that you found what you were looking for and thank you very much for the kind words, John! :) When you are ready, your help will be welcome!