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

您没有登录

» Java开发网 » Java IDE  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 package import during refactoring in IDEA
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-12-14 11:48 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
I am having a problem when refactoring using idea:

when I move classes to other packages, somehow idea doesn't import all packages, it puts all package names next to the class name, e.g.,

import a.A;
....
A aa = new A();
....

Now if I move A to package c, IDEA gives me this:

...
c.A aa = new c.A();
...

What I really want is:

import c.A;
....
A aa= new A();
....

This is precisely jbuilder does. Is there any setting in IDEA so I could do this?
I am using IDEA 4.53.

Thanks!



"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:package import during refactoring in IDEA [Re:floater]
linux_china



版主


发贴: 752
积分: 240
于 2005-12-14 12:10 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
我想这可能是IDEA某一个版本的bug。
我在4.5.4(2253)和5.0(4069)的版本中都没有这个问题。 你换一个版本试一下。


linux_china edited on 2005-12-14 12:21

作者 Re:package import during refactoring in IDEA [Re:floater]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-12-15 21:31 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
thanks, man. 换一个版本 is taking a long time, those SAs are nuts.


"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:package import during refactoring in IDEA [Re:floater]
linux_china



版主


发贴: 752
积分: 240
于 2005-12-15 21:48 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
>换一个版本 is taking a long time
不会这样吧。 IDEA升级有点技巧,如果你设置一下的话,升级仅需要1分钟,而且以前的所有配置都不会改变。



作者 Re:package import during refactoring in IDEA [Re:floater]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-12-16 11:09 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
I mean I have to go through system admin in my company. I can't even install a gif on pc without notifying them. It's a pain, company policy.

Today is even worse, when I did a move refactoring, it failed to modify the references in the same old package to refer to the newly moved place. say, I have A and B in the same package, A has a reference on B. If I move B to a different package, then A's reference of B is not pointing to the new package location.

One more observation is that after refactoring for several days touching thousands of files, the IDE is almost dead, not responding. So I have to shut it down and then restart. After I increased the max mem to 512, it's better. Right now, the mem gauge at the corner is about 280M.

Do you know whether there is any change management plugin, like clearquest, surrounded scm, etc. Basically, I need something to group files together for a change.

Is idea 5 stable? If so, I may push for that(it takes several months, last time when I sent a ticket for jb, it took 2 months to get any response).

Thanks, man.



"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:package import during refactoring in IDEA [Re:linux_china]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2005-12-17 04:25 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
linux_china wrote:
我想这可能是IDEA某一个版本的bug。
我在4.5.4(2253)和5.0(4069)的版本中都没有这个问题。 你换一个版本试一下。

I just tried 5.02, still the same problem. I am polluting hundreds of classes now.



"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

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-2018 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923