Bug 392435 - Project disappaers from working set after sharing to Git
Summary: Project disappaers from working set after sharing to Git
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-10-19 09:17 EDT by Mandy Krimmel CLA
Modified: 2013-01-07 19:00 EST (History)
3 users (show)

See Also:


Attachments
working Set problem (82.17 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-10-19 09:17 EDT, Mandy Krimmel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mandy Krimmel CLA 2012-10-19 09:17:58 EDT
Created attachment 222577 [details]
working Set problem

If I share the project to the Git Repository the project gets removed from the working set. I have to reselect it. See attachment.
I would expect the project not to be removed from working set as it
still is the same project.
Comment 1 Markus Keller CLA 2012-10-28 14:38:45 EDT
This doesn't look like a JDT problem. The problem is probably in EGit, or maybe in the Project Explorer (Platform/IDE).

Mandy, you should be more specific about
- what working set type you are using (Resource, Java, ...)
- how you share the project: Into an existing or new repo? Where was the project relative to the workspace? Where was the repo?

Moving to EGit. Note: If EGit copies files and folders outside of Eclipse and then re-creates the project, that could lead to the observed effects. The correct way to move/rename projects is via IProject#move(..).
Comment 2 Robin Rosenberg CLA 2013-01-07 19:00:30 EST
(In reply to comment #1)

> Moving to EGit. Note: If EGit copies files and folders outside of Eclipse
> and then re-creates the project, that could lead to the observed effects.
> The correct way to move/rename projects is via IProject#move(..).

We use org.eclipse.ui.ide.undo.MoveProjectOperation, which in turn uses IProject.move.