Bug 373273 - Add option to update .project path to missing .project dialog
Summary: Add option to update .project path to missing .project dialog
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 12:50 EST by John Peterson CLA
Modified: 2018-01-10 14:08 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Peterson CLA 2012-03-05 12:50:11 EST
Build Identifier: 

There is an error message dialog with this message

"The project description file (.project) for '<project>' is missing.  This file contains important information about the project.  The project will not function properly until this file is restored."

This dialog should give the option to select the .project path.

Thanks!

Reproducible: Always

Steps to Reproduce:
See above.
Comment 1 John Peterson CLA 2012-03-05 12:55:57 EST
Updating the .project path from Package Explorer -> right-click -> Import gives the message

"Some projects cannot be imported because they already exist in the workspace".
Comment 2 Markus Keller CLA 2012-03-06 08:45:48 EST
Happens when you close a project, remove the .project file on the file system, and then open the project in Eclipse, see OpenResourceAction.

I don't think an option to select a .project file makes sense -- the .project is what defines a project, and there's no other place where this file could live except for the known location inside the project folder.

But what we could do is offer a way to create a dummy .project file. We could also just go and create the dummy .project, like when you delete the .project file in Eclipse and then close the project.
Comment 3 Nitin Dahyabhai CLA 2018-01-10 14:08:00 EST
(In reply to Markus Keller from comment #2)
> But what we could do is offer a way to create a dummy .project file. We
> could also just go and create the dummy .project, like when you delete the
> .project file in Eclipse and then close the project.

Perhaps leverage the mechanism behind "Open Projects from File System" that allows it to Detect and configure project natures?