有没有办法在 Visio for Java 中绘制 UML?
我有 Visio2007,我非常喜欢它。 然而,它似乎没有 Java 的 UML 模型/数据类型。 有没有可以下载的 Java 模板? 或者我应该完全忘记 Visio 并使用 Elipse 插件吗?
谢谢!
I have Visio2007 and I really like it. However, it doesn't seem to have UML model/datatypes for Java. Is there some template I can download for Java? Or should I just forget about Visio altogether and get an Elipse plugin?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我也有同样的问题,但后来我搞乱了它,直到弄清楚为止。 现在,请耐心听我说; 这是我第一次发布对答案的回复。 自从我弄清楚之后,我想我应该将我大脑的数据传输到你的大脑中(呃……我们正在交互)。
现在进入正题...您实际上可以构建自己的包和数据类型。 我所做的是转到左侧的“模型资源管理器”选项卡。 然后,我右键单击
IDL Data Types
,然后单击Duplicate
(因为我不想从头开始创建自己的数据类型,而且它几乎具有我想要的内容)想)。 然后它将创建一个名为“Package 1”的新包。 右键单击它并选择重命名
; 我将其重命名为“Java Data Types”,因为这就是我正在做的,但如果您愿意,您可以将其命名为“Underpants”。 然后,我打开新包并右键单击每种数据类型,一次一个,然后选择Properties
。 然后它将打开UML Property Editor
。 从那里,单击名称
,然后从括号内删除单词“idl”,因此“boolean(idl)”现在显示为“boolean()”。现在,还有一件事:没有
int
数据类型,因此您需要创建一个。 这很容易; 只需右键单击新创建的文件夹,单击新建
,然后单击数据类型
。 它应该打开UML Datatypes Properties
窗口。 现在,在名称
选项卡内单击,输入“int()”,然后单击确定
。 你就完成了。看,那并没有那么糟糕。 哎呀,如果我能做到,你也一定能做到。 我希望这是可以理解和有帮助的。 如果没有,那么我想我已经让你失望了,我现在应该用我的剑来拯救我的荣誉。
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).
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. Then, I right-clicked onIDL Data Types
, and then I clickedDuplicate
(since I didn’t want to make my own from scratch and it pretty much has what I want). It will then make a new package called "Package 1". Right-click on it and selectRename
; I renamed mine to “Java Data Types” since that is what I am making, but you can name it “Underpants” if you want. Then, I opened my new package and right-clicked each data type, one at a time, and selectedProperties
. Then it will open up theUML Property Editor
. From there, click onName
, then remove the word “idl” from inside the brackets, so “boolean(idl)” now says ”boolean()”.Now, one other thing: There is no
int
data type, so you need to make one. It is pretty easy; just right-click on your newly created folder, clickNew
, then clickData Type
. It should open theUML Datatypes Properties
window. Now, click inside theName
tab, type in “int()”, then clickOK
. 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.
有一个适用于 Java 的 Visio UML 模板,位于 http:// /barzeenotes.blogspot.com/2014/11/java-and-javascript-support-for.html
There is a Visio UML template for Java at http://barzeenotes.blogspot.com/2014/11/java-and-javascript-support-for.html
恕我直言,后者是更好的选择。 此外,我认为 UML 模型不应该特定于 Java。 我不知道是否有任何特定于 java 的 UML。
我在网上搜索时发现了这个。 UML 模型:MS Visio 2007。
The latter is a better option, IMHO. Further, I don't think UML Models should be specific to Java. I am not aware of, if there are any java-specific UML, around.
I found this while searching over the net. UML Models: MS Visio 2007.