Topic: package import during refactoring in IDEA

  Print this page

1.package import during refactoring in IDEA Copy to clipboard
Posted by: floater
Posted on: 2005-12-14 11:48

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!

2.Re:package import during refactoring in IDEA [Re: floater] Copy to clipboard
Posted by: linux_china
Posted on: 2005-12-14 12:10

我想这可能是IDEA某一个版本的bug。
我在4.5.4(2253)和5.0(4069)的版本中都没有这个问题。 你换一个版本试一下。

3.Re:package import during refactoring in IDEA [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2005-12-15 21:31

thanks, man. 换一个版本 is taking a long time, those SAs are nuts.

4.Re:package import during refactoring in IDEA [Re: floater] Copy to clipboard
Posted by: linux_china
Posted on: 2005-12-15 21:48

>换一个版本 is taking a long time
不会这样吧。 IDEA升级有点技巧,如果你设置一下的话,升级仅需要1分钟,而且以前的所有配置都不会改变。

5.Re:package import during refactoring in IDEA [Re: floater] Copy to clipboard
Posted by: floater
Posted on: 2005-12-16 11:09

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.

6.Re:package import during refactoring in IDEA [Re: linux_china] Copy to clipboard
Posted by: floater
Posted on: 2005-12-17 04:25

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.


   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