gbaychev / NClass

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

More comfortable ways to insert members etc. #30

Open malino-dev opened 5 years ago

malino-dev commented 5 years ago

Hello,

I feel uncomfortable with this Right-click > Edit members and then always add member/add method etc.

What about a huge text area where we can just insert C# code like this:

private int X; private int Y;

public int GetX(); public int GetY();

I already read about issue #13 but I think it would be more comfortable to do it directly in NClass, especially if you haven't written the C# code already.

Yours sincerely.

gbaychev commented 5 years ago

Hello, thank you for your suggestion. I need to think about it. It is going to be kinda difficult to validate and report errors properly.

Regards

Baltasarq commented 4 years ago

Maybe this would be interesting in a more UML-like way, such as:

-x:int
+get():int
+set(x:int)

"-" means private, "+" public, "*" protected.

gbaychev commented 4 years ago

This is not a bad idea, I was also thinking something along the lines of adding a code window and to validate the syntax with antlr or roslyn for c#.