Bug 398900 - Prevent creating a project over an existing one
Summary: Prevent creating a project over an existing one
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.2.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2013-01-23 11:26 EST by Christoph Pohl CLA
Modified: 2019-11-27 07:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Pohl CLA 2013-01-23 11:26:22 EST
1. create a new general project "test1" in a non default location, e.g., c:\temp\test1
2. delete the project from your workspace but keep the project contents on disk
3. create a new general project "test2" in the same location c:\temp\test1

As is: You have a file c:\temp\test1\.project like this:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>test1</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
	</buildSpec>
	<natures>
	</natures>
</projectDescription>

To be: 
a) get a warning upon 3) that there is a already an existing project in the way
b) if user confirms the warning, get a file like this:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>test2</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
	</buildSpec>
	<natures>
	</natures>
</projectDescription>

This problem actually applies not only org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWizard but probably all NewProjectWizards.
Comment 1 Lars Vogel CLA 2019-11-27 07:33:01 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.