how to chose Java basic data type in class diagram?

817 views
Skip to first unread message

holin c

unread,
Jun 3, 2015, 9:56:13 PM6/3/15
to sta...@googlegroups.com
I use the startUML of v2.2.0.
I create a class in Design Model,but I don't know how to chose Java basic data type for it's attributes.For example,I create a class named Customer,and it has two attributes such as customerNo and customerName.I know how to change their visibility but I don't know how to change their type.

holin c

unread,
Jun 4, 2015, 12:22:16 AM6/4/15
to sta...@googlegroups.com


在 2015年6月4日星期四 UTC+8上午9:56:13,holin c写道:
I use  the startUML of v2.2.0.
I create a class in Design Model,but I don't know how to chose Java basic data type for it's attributes.For example,I create a class named Customer,and it has two attributes such as customerNo and customerName.I know how to change their visibility but I don't know how to change their type.

(v1)

(v2)

 How to select the basic type of Java,such as int,String,double in class diagram?

StarUML

unread,
Jun 4, 2015, 7:54:14 AM6/4/15
to sta...@googlegroups.com, holi...@gmail.com
Hello,

Selection is not supported for primitive types. You can just enter the type name in the input field of Property Editor or Quick Edit (by double click on the Attribute).

Thanks,
StarUML Team

2015년 6월 4일 목요일 오후 1시 22분 16초 UTC+9, holin c 님의 말:

holin c

unread,
Jun 4, 2015, 9:01:52 PM6/4/15
to sta...@googlegroups.com, sta...@googlegroups.com
Thanks.And there is a small problem.Where I generate Java code from class diagram,it alert me that selected element (Customer) is not an instance of UMLPackage.How can I generate Java code from Class Diagram?

在 2015年6月4日星期四 UTC+8下午7:54:14,StarUML写道:

holin c

unread,
Jun 5, 2015, 5:01:51 AM6/5/15
to sta...@googlegroups.com
Thanks.And there is a small question.When I generate Java code from class diagram,it alert me that selected element (Customer) is not an instance of UMLPackage.How can I generate Java code from Class Diagram?

在 2015年6月5日星期五 UTC+8上午9:01:52,holin c写道:
Thanks.And there is a small question.When I generate Java code from class diagram,it alert me that selected element (Customer) is not an instance of UMLPackage.How can I generate Java code from Class Diagram?

StarUML

unread,
Jun 5, 2015, 5:04:30 AM6/5/15
to sta...@googlegroups.com, holi...@gmail.com
To generate codes, select a Package (or Model, Subsystem) which including classes, not class itself.

Thanks,
StarUML Team

2015년 6월 5일 금요일 오후 6시 1분 51초 UTC+9, holin c 님의 말:
Message has been deleted

holin c

unread,
Jun 8, 2015, 1:41:49 AM6/8/15
to sta...@googlegroups.com, sta...@googlegroups.com

I have saved the project as StartUML(v1) Files.When I open it with the earlier StartUML version(5.0.2.1570) ,and it alert that failed to open the model file.How can I save the project with the suffix .uml ?


在 2015年6月5日星期五 UTC+8下午5:04:30,StarUML写道:

StarUML

unread,
Jun 8, 2015, 2:15:36 AM6/8/15
to sta...@googlegroups.com, holi...@gmail.com
The files saved by StarUML V2 are not compatible with previous version (V1).

Thanks,
StarUML Team

2015년 6월 8일 월요일 오후 2시 41분 49초 UTC+9, holin c 님의 말:
Reply all
Reply to author
Forward
0 new messages