Search code examples
eclipsewebserver

How to restore accidentally deleted "Servers" folder in Eclipse?


I accidentally removed a "Servers" directory from "Project Explorer" / "Navigator" view in Eclipse. My server is still shown in the "Servers" tab. The Servers/ directory is presented on the disk in the workspace directory.

How could I restore the "Servers" directory without configuring the servers manually again from scratch?


Solution

  • It looks like the "Servers" directory is considered by Eclipse as a regular project. So, you can import that back as an existing project:

    1. Choose FileImportGeneralExisting Projects into Workspace
    2. Click Next
    3. Choose "Select root directory", click Browse and select your existing Servers/ directory on a disk