Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Moving a class to another package with Refactor feature?
Moving a class to another package with Refactor feature? [message #124767] Tue, 09 September 2003 01:05 Go to next message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.de

If I move a class to another package with drag and drop then I might get
errors because the imports are not correct anymore for example.

Can I use the Refactoring feature to let Eclipse do those modifications
automatically? If yes, how?

I tried it, but didn't find a way.
Re: Moving a class to another package with Refactor feature? [message #124829 is a reply to message #124767] Tue, 09 September 2003 03:46 Go to previous messageGo to next message
Eclipse UserFriend
Hans Schw
Re: Moving a class to another package with Refactor feature? [message #124949 is a reply to message #124829] Tue, 09 September 2003 06:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.de

This is not possible. I use Eclipse 2.1.1.

If I right click there is no menu item called Refactor. Only Move is there.
But this is no Refactor move but an ordinary move.

So my problem remains.


"Ilja Preu
Re: Moving a class to another package with Refactor feature? [message #124998 is a reply to message #124949] Tue, 09 September 2003 06:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: m.bauer.signsoft.com

Hi,

I'm using eclipse 2.1.1 too, and there is such a menu entry. Rightclick on
the class, you want to move. Then a context menu opens. There you click on
"Refactor..." and in the new opend menu then on "Move...". This should do
what you want to do.

Michael

"Hans Schw
Re: Moving a class to another package with Refactor feature? [message #125663 is a reply to message #124949] Tue, 09 September 2003 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.rizzo.jibeinc.com

Hans Schwäbli wrote:
> If I right click there is no menu item called Refactor. Only Move is there.
> But this is no Refactor move but an ordinary move.

The Refactor menu is only available from within the Java-oriented
perspectives/views, such as Java Browsing perspective. I hope you're not
using the simple resource Navigator to do Java coding - that's just silly...

HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: Moving a class to another package with Refactor feature? [message #125959 is a reply to message #125663] Tue, 09 September 2003 14:06 Go to previous message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.de

That seems to solve it. I will try it tomorrow.

I use Navigator view because I like the hierachical display. The package
explorer can be set to hierarchy but somehow it doesn't work as I expect it
when I use filters. So I use Navigator view.



"Eric Rizzo" <eric.rizzo@jibeinc.com> wrote in message
news:bjkt6a$8j0$2@eclipse.org...
Hans Schw
Previous Topic:console redirection
Next Topic:adding Revert capabilities
Goto Forum:
  


Current Time: Sun Sep 14 06:30:00 EDT 2025

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

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

Back to the top