Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312138 - Import wizard allows user to finish even when there's nothing to import
Summary: Import wizard allows user to finish even when there's nothing to import
Status: CLOSED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 18:50 EDT by Remy Suen CLA
Modified: 2010-05-18 13:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2010-05-07 18:50:20 EDT
1. Select a repository in the 'Git Repositories' view that you have all the projects imported for (like the EGit repository).
2. Select its working directory node > context menu > Import...
3. Take the defaults, click the 'Next >' button.
4. The wizard warns you about hidden projects. There are no projects in the list but the 'Finish' button is enabled. Click it.
5. You see an error dialog flash by.

!ENTRY org.eclipse.egit.ui 4 0 2010-05-07 18:50:05.006
!MESSAGE Creation Problems
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Resource '/org.eclipse.egit.ui' already exists.
	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:305)
	at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:292)
	at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:51)
	at org.eclipse.core.internal.resources.Project.create(Project.java:274)
	at org.eclipse.core.internal.resources.Project.create(Project.java:256)
	at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage.createExistingProject(GitProjectsImportPage.java:673)
	at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage.access$7(GitProjectsImportPage.java:648)
	at org.eclipse.egit.ui.internal.clone.GitProjectsImportPage$8.execute(GitProjectsImportPage.java:616)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 org.eclipse.core.resources 4 374 2010-05-07 18:50:05.007
!MESSAGE Resource '/org.eclipse.egit.ui' already exists.
Comment 1 Mathias Kinzler CLA 2010-05-18 13:14:00 EDT
I can not reproduce this anymore. I believe this has been fixed as a side effect of Ryan Schmitt's change

http://egit.eclipse.org/r/531