[英]Is there a way to draw UML in Visio for Java?
I have Visio2007 and I really like it. 我有Visio2007,我真的很喜欢它。 However, it doesn't seem to have UML model/datatypes for Java.
但是,它似乎没有Java的UML模型/数据类型。 Is there some template I can download for Java?
我可以为Java下载一些模板吗? Or should I just forget about Visio altogether and get an Elipse plugin?
或者我应该完全忘记Visio并获得Elipse插件?
Thanks! 谢谢!
I had the same question, but then I messed around with it until I figured it out. 我有同样的问题,但后来我搞砸了,直到我弄清楚了。 Now, bear with me;
现在,忍受我; this is the first time I have ever posted a response to an answer.
这是我第一次发布对答案的回复。 Since I figured it out I thought I should transfer my brain's data into your brain (eww.. we're interfacing).
自从我弄明白以后,我认为我应该将大脑的数据转移到你的大脑中(eww ..我们正在接口)。
Now to business... You can actually make up your own package and data types. 现在开始营业......你实际上可以组成自己的包和数据类型。 What I did was I went to the
Model Explorer
tab on the left. 我做的是我去了左边的
Model Explorer
选项卡。 Then, I right-clicked on IDL Data Types
, and then I clicked Duplicate
(since I didn't want to make my own from scratch and it pretty much has what I want). 然后,我右键单击
IDL Data Types
,然后我点击了Duplicate
(因为我不想从头开始制作我自己的,它几乎有我想要的东西)。 It will then make a new package called "Package 1". 然后它将创建一个名为“Package 1”的新包。 Right-click on it and select
Rename
; 右键单击它并选择
Rename
; I renamed mine to “Java Data Types” since that is what I am making, but you can name it “Underpants” if you want. 我将其重命名为“Java数据类型”,因为这是我正在制作的,但如果你愿意,你可以将其命名为“Underpants”。 Then, I opened my new package and right-clicked each data type, one at a time, and selected
Properties
. 然后,我打开了我的新包,右键单击每种数据类型,一次一个,然后选择
Properties
。 Then it will open up the UML Property Editor
. 然后它将打开
UML Property Editor
。 From there, click on Name
, then remove the word “idl” from inside the brackets, so “boolean(idl)” now says ”boolean()”. 从那里,单击
Name
,然后从括号内删除单词“idl”,所以“boolean(idl)”现在说“boolean()”。
Now, one other thing: There is no int
data type, so you need to make one. 现在,另一件事:没有
int
数据类型,所以你需要创建一个。 It is pretty easy; 这很容易; just right-click on your newly created folder, click
New
, then click Data Type
. 只需右键单击新创建的文件夹,单击“
New
,然后单击“ Data Type
。 It should open the UML Datatypes Properties
window. 它应该打开
UML Datatypes Properties
窗口。 Now, click inside the Name
tab, type in “int()”, then click OK
. 现在,在
Name
选项卡内单击,键入“int()”,然后单击OK
。 And you're all done. 你们都完成了。
See, that wasn't so bad. 看,那不是那么糟糕。 Heck if I can do it, you definitely should be able to do it.
如果我能做到,你肯定应该能够做到。 I hope this was understandable and helpful.
我希望这是可以理解和有帮助的。 If not, well I guess I have failed you and I should now fall on my sword to save my honor.
如果没有,那么我想我已经失败了你,我现在应该用我的剑来挽救我的荣誉。
在http://barzeenotes.blogspot.com/2014/11/java-and-javascript-support-for.html上有一个适用于Java的Visio UML模板
The latter is a better option, IMHO. 后者是一个更好的选择,恕我直言。 Further, I don't think UML Models should be specific to Java.
此外,我认为UML模型不应该特定于Java。 I am not aware of, if there are any java-specific UML, around.
我不知道,如果有任何特定于Java的UML,周围。
I found this while searching over the net. 我在网上搜索时发现了这个。 UML Models: MS Visio 2007 .
UML模型:MS Visio 2007 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.