Home » Newcomers » Newcomers » Retrieving Deleted Package(Deleted from Package Explorer, But File not Deleted from Workspace/Disk)
Retrieving Deleted Package [message #1691228] |
Fri, 03 April 2015 15:31 |
Regina Litman Messages: 11 Registered: March 2015 Location: New Jersey |
Junior Member |
|
|
I accidentally deleted a package from the Package Explorer but fortunately did not check the option to delete it from the workspace on the network drive.
How do I get it back, if this is even possible?
Environment:
Windows 7
Eclispe 4.2 (I think - unlike a lot of products, the About Eclipse option under Help only says "Version: Juno Service Release 1/Build id: 20120920-0800" rather giving typical version numbers)
Thanks for any help anyone can give me on this.
If this has been asked and answered before, I apologize. Feel free to point me to where it was previously answered (if multiple ones, I'd prefer one with less technical jargon and with terms spelled out instead of referred to with acronyms).
I am sometimes an Original Poster, but I am never an OP!
|
|
|
Re: Retrieving Deleted Package [message #1691250 is a reply to message #1691228] |
Fri, 03 April 2015 21:47 |
|
On 04/03/2015 09:31 AM, Regina Litman wrote:
> I accidentally deleted a package from the Package Explorer but
> fortunately did not check the option to delete it from the workspace on
> the network drive.
>
> How do I get it back, if this is even possible?
>
> Environment:
>
> Windows 7
> Eclispe 4.2 (I think - unlike a lot of products, the About Eclipse
> option under Help only says "Version: Juno Service Release 1/Build id:
> 20120920-0800" rather giving typical version numbers)
>
> Thanks for any help anyone can give me on this.
>
> If this has been asked and answered before, I apologize. Feel free to
> point me to where it was previously answered (if multiple ones, I'd
> prefer one with less technical jargon and with terms spelled out instead
> of referred to with acronyms).
If you deleted what actually a __package__ from your application, then
other than to confirm that you'd be deleting multiple files and
directories, you don't have the option to delete or not to delete it
from the workspace. It's gone.
There is an option from both Package and Project Explorers for deleting
__projects__ that allows you to determine whether or not to a) delete
the project from the the workspace and delete the project directory also.
Are you very certain of what you're describing?
|
|
| |
Re: Retrieving Deleted Package [message #1691358 is a reply to message #1691260] |
Mon, 06 April 2015 14:35 |
Regina Litman Messages: 11 Registered: March 2015 Location: New Jersey |
Junior Member |
|
|
Ed Merks wrote on Sat, 04 April 2015 03:05If it was a project being deleted it will still be on disk (in the
workspace folder or the git clone folder) and you can use
File->Import...->General->Existing Projects into Workspace to locate it
and add it back to the workspace. You can also generally undo the
delete (right after you've done it) via the Edit menu...
Thanks for your reply, as well as thanks to Russell Bateman for his.
However, Import didn't work as described below because it "already exist[s] in the workspace". Is there perhaps an Open command that will work for this purpose?
The project in question is in the area known to me as "workspace". I followed your instructions, which took me to a window called "Import Projects". For "Select root directory", I browsed to the workspace. Once there, I selected the root directory within workspace of the project I wanted to retrieve. Note that I chose, not the workspace directory itself or the folders with names like "bin" and "src" but the one with a meaningful name in the level between these. So, for instance, in the setup:
workspace\TestProject\bin
I clicked on the TestProject folder.
When I got back to the "Import Projects" window, I had a new warning message: "Some projects cannot be imported because they already exist in the workspace". The only project listed in the "Projects:" box is grayed-out, so I can't select it. Plus, the Next and Finish buttons are also deactivated.
Thus, importing a deleted project/package from workspace, where this project is locat4ed, does not work for me.
Thanks for any additional help that anyone can give me on this.
I am sometimes an Original Poster, but I am never an OP!
|
|
|
Re: Retrieving Deleted Package [message #1691392 is a reply to message #1691358] |
Tue, 07 April 2015 01:31 |
|
On 04/06/2015 08:35 AM, Regina Litman wrote:
> Ed Merks wrote on Sat, 04 April 2015 03:05
>> If it was a project being deleted it will still be on disk (in the
>> workspace folder or the git clone folder) and you can use
>> File->Import...->General->Existing Projects into Workspace to locate
>> it and add it back to the workspace. You can also generally undo the
>> delete (right after you've done it) via the Edit menu...
>
>
> Thanks for your reply, as well as thanks to Russell Bateman for his.
>
> However, Import didn't work as described below because it "already
> exist[s] in the workspace". Is there perhaps an Open command that will
> work for this purpose?
>
> The project in question is in the area known to me as "workspace". I
> followed your instructions, which took me to a window called "Import
> Projects". For "Select root directory", I browsed to the workspace. Once
> there, I selected the root directory within workspace of the project I
> wanted to retrieve. Note that I chose, not the workspace directory
> itself or the folders with names like "bin" and "src" but the one with a
> meaningful name in the level between these. So, for instance, in the setup:
>
> workspace\TestProject\bin
>
> I clicked on the TestProject folder.
>
> When I got back to the "Import Projects" window, I had a new warning
> message: "Some projects cannot be imported because they already exist in
> the workspace". The only project listed in the "Projects:" box is
> grayed-out, so I can't select it. Plus, the Next and Finish buttons are
> also deactivated.
>
> Thus, importing a deleted project/package from workspace, where this
> project is locat4ed, does not work for me.
>
> Thanks for any additional help that anyone can give me on this.
Eclipse tells you this because you once had a project by that name in
your workspace, then you deleted it (and didn't delete the associated
files). So, when you attempt to import that project again, the workspace
already has one or has knowledge of one.
This is a common problem and easily fixed by long-time Eclipse users,
but it's a little tricky to explain it especially since I'm not there
looking at your filesystem, your workspace, etc.
The easiest solution is to create a new workspace and import the project
into that one. Then, you can discard the old workspace as soon as you
feel safe doing so.
When you import a project, you signal the root of that project to
Eclipse (and not bin or src, etc.). What you're really importing is a
set of files named .project, .settings, .classpath, etc. These are
always at the root of an Eclipse project.
Incidentally, you do not import a project from a workspace. You import
it from the filesystem into a workspace.
I hope this helps.
|
|
|
Goto Forum:
Current Time: Fri Apr 26 15:20:08 GMT 2024
Powered by FUDForum. Page generated in 5.08868 seconds
|