Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » refactoring - rename
refactoring - rename [message #65725] Tue, 24 June 2003 06:35 Go to next message
Teemu Kanstren is currently offline Teemu KanstrenFriend
Messages: 5
Registered: July 2009
Junior Member
I want to use the "refactoring - rename" tool to rename a package. The
package has subpackages. So i made some tests and created the following
package structure: testpackage.ding.dong.dingdong

I then added a class named "Nice" under testpackage.ding and a class named
VeryNice under testpackage.ding.ding.dingdong.

With this structure I tried to rename testpackage.ding to testpackage.dingo

As a result I ended up having classes with hierarchy testpackage.dingo.Nice
and testpackage.ding.dong.dingdong.VeryNice. What I want to have is
testpackage.dingo.Nice and testpackage.dingo.dong.dingdong.VeryNice. Can
this behaviour be configured somewhere? I was using the package explorer for
this.

Thanks,
Re: refactoring - rename [message #65750 is a reply to message #65725] Tue, 24 June 2003 07:41 Go to previous message
Ilja Preuss is currently offline Ilja PreussFriend
Messages: 105
Registered: July 2009
Senior Member
> As a result I ended up having classes with hierarchy
> testpackage.dingo.Nice and testpackage.ding.dong.dingdong.VeryNice.
> What I want to have is testpackage.dingo.Nice and
> testpackage.dingo.dong.dingdong.VeryNice.

You need to rename testpackage.ding.don.dingdong separately. This is
"correct" behaviour, as packages aren't supposed to be hierarchical in Java.
Previous Topic:[ANN] CodePro Express End-of-Quarter Special
Next Topic:newbie question: how to use SAX in eclipse?
Goto Forum:
  


Current Time: Fri Aug 16 07:32:08 GMT 2024

Powered by FUDForum. Page generated in 0.03578 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top