Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java IDE » IntelliJ IDEA  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 图形注释
linux_china



版主


发贴: 752
积分: 240
于 2005-07-06 17:14 user profilesend a private message to usersend email to linux_chinasearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
记得以前在JetBrains的新闻组上看到一个帖子,讲的是在代码中嵌入图形,例如一些设计时的流程图、UML图等,这样在编辑代码的时候更加容易理解,这样编写代码更有目的性,以后回头在看这些代码时,通过图形就可以了解,维护也很方便,不然你需要读相关的文档才能修改。
在使用Struts的框架时,一般我会给Action画一个流程图,但是一直苦于无法将代码和这些图结合起来,这样我在看到这个Action的代码时,马上就可以了解其流程,虽然在代码中嵌入XDoclet可以辅助了解,XDoclet的标签有了元数据的味道,但是远没有图形直观。
这段时间一直在研究IDEA 5的新特性,发现结合View Declaration(Ctrl+Shift+I和Java 5的Annotation,可以实现这样的功能,非常不错,贴图一张。现在Visual Paradigm还不支持IDEA 5,如果两者结合的话,以后在代码中直接显示UML图等,编写和维护代码方便很多的。

(缩略图,点击图片链接看原图)


linux_china edited on 2005-07-06 18:39

作者 Re:图形注释 [Re:linux_china]
linux_china



版主


发贴: 752
积分: 240
于 2005-07-06 18:41 user profilesend a private message to usersend email to linux_chinasearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在开发图形应用时,如果能将程序运行的节目效果图作为代码的注释,那非常不错的,这样你即使不启动程序,就可以快了解这些代码的功能。



作者 Re:图形注释 [Re:linux_china]
javadd





发贴: 736
积分: 77
于 2005-07-06 23:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
cool
Eclipse能支持吗?javadoc能支持吗?




作者 Re:图形注释 [Re:javadd]
linux_china



版主


发贴: 752
积分: 240
于 2005-07-07 08:30 user profilesend a private message to usersend email to linux_chinasearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Eclipse不知道能否这样,估计危险,IntelliJ IDEA将View Declaration和Annotation结合起来即可,这样就可以使用任何其他文件做为注释,当然包括图片、UML图等。而且文件路径是有提示的,你不会选错文件的。这里其实就是利用IDEA的提供的三个功能:
1 View Declaration
2 Java 5 Annotation
3 path name assistant



作者 Re:图形注释 [Re:linux_china]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-07-07 09:30 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Having heard of so much good news on idea, really want to try it, but I am so used to jbuilder. It's just so hard to make the decision. The biggest drawback on idea is that it doesn't have jb's pull down project menu, all projects are listed on the left panel, and the auto compile. *sigh*, why is life so hard?? Sad


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:图形注释 [Re:linux_china]
rabboni





发贴: 10
积分: 0
于 2005-07-08 00:15 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
myeclipse 可以


作者 Re:图形注释 [Re:linux_china]
flyingqifei

电脑为家 网络为舍



发贴: 35
积分: 0
于 2005-07-10 21:37 user profilesend a private message to usersend email to flyingqifeisearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
myeclipse是如何实现,可否告知。


My website: http://flyingqifei.icpcn.com
My BLOG: http://qifei.blogbus.com

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923