Moving workspace folder [message #172502] |
Tue, 26 September 2006 06:09 |
Eclipse User |
|
|
|
Originally posted by: emf.NOSPAM.email.com
Eclipse caused me a minor (?) disaster: I had accepted the initial
suggestion to have the workspace folder to C:\Documents and
Settings\Eustace\workspace, but then I changed my mind and changed it to
C:\My Files\Java (much easier to type in case I would like to use the
command prompt). In that folder I had several subfolders where I had
arranged neatly several programs. Eclipse moved all the class files from
the subfolders to the main folder, together with some other files; I
decided to delete them directly from the folder, thinking I'd recompile
the .java files I had in the subfolders, and then proceeded to delete
them from the package explorer since I had already deleted them from the
folder. The result was that I lost all the files in the subfolders,
about 3 months work. Not extremely important, it was mainly
programs-exercises from a tutorial, but certainly I did not want to
loose them. Partly of course I have to blame myself for not having
backuped my files, but I did not expect eclipse to create such a mess.
Anyway, no I have again the initial workspace, and I will never again
assign my main \Java folder as my workspace folder. However, I do want
to move the C:\Documents... ... \workspace folder either to (a) the
C:\My Files\ or maybe to (b) a \workspace folder inside the \Java\
folder. How do I do that? Can I move it manually, and then change
something in Eclipse preferences? And if I choose (b), making Workspace
a subfolder of \Java\, will it affect the programs I have in other
subfolders of that folder?
Also, can I remove items from the Package Explorer that I do not need
them often, so I can only see those I am interested in, *without*
deleting them from my computer, so I can retrieve them again in the
Package Explorer in the future if I need them again?
Newbie
|
|
|
Re: Moving workspace folder [message #172695 is a reply to message #172502] |
Wed, 27 September 2006 06:18 |
Asaf Yaffe Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Eustace wrote:
> Anyway, no I have again the initial workspace, and I will never again
> assign my main \Java folder as my workspace folder. However, I do want
> to move the C:\Documents... ... \workspace folder either to (a) the
> C:\My Files\ or maybe to (b) a \workspace folder inside the \Java\
> folder. How do I do that? Can I move it manually, and then change
> something in Eclipse preferences? And if I choose (b), making Workspace
> a subfolder of \Java\, will it affect the programs I have in other
> subfolders of that folder?
To move the workspace, simply copy the *top-level* workspace directory
to a new location. Then, start Eclipse, select "Switch Workspace..."
from the "File" menu and select the new workspace location.
>
> Also, can I remove items from the Package Explorer that I do not need
> them often, so I can only see those I am interested in, *without*
> deleting them from my computer, so I can retrieve them again in the
> Package Explorer in the future if I need them again?
>
> Newbie
The Package Explorer presents a "logical" view of all Java projects in
the workspace. Deleting something from the Package Explorer will also
delete the associated Java files from your disk (which I understand is
not what you want...). To show only a subset of the projects in the
workspace, use Working Sets: in the Package Explorer view, click the
"menu" tool-button (the rightmost button that looks like an arrow
pointing downwards), select "Configure Working Sets..." and create a
Working Set with the projects you want to see. You can then configure
the Package Explorer to filter projects by the Working Sets you have
defined. More information is available in the on-line documentation.
HTH,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
|
|
|
Powered by
FUDForum. Page generated in 0.06015 seconds