Bug 59604 - [model] Existing project missing from package explorer
Summary: [model] Existing project missing from package explorer
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-22 07:14 EDT by Philipe Mulet CLA
Modified: 2009-08-30 02:38 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 Philipe Mulet CLA 2004-04-22 07:14:48 EDT
Build 20040420

As soon as a PRE_DELETE event is notified on a project, it is removed from the 
JavaModel. However, if for some reason, the actual deletion never occurs (e.g. 
file in it is being used by some process), the project is still present in 
navigator, but gone from package explorer.
Comment 1 Philipe Mulet CLA 2004-04-22 07:17:51 EDT
2 issues behind:
- model update should be deferred until actual DELETE is received. Maybe some 
issues about list of new/old projects for delta computation.
- indexing may be busy on this project. If we don't discard associated jobs, it 
may cause the removal to fail (we could keep handles to files in it); but if we 
remove them, and the project is not actually removed, then our index may be 
inconsistent. Suggestion: we discard all its indexes eagerly on PRE_DELETE, and 
if not actually deleted, then indexes will be recreated lazily from scratch.
Comment 2 Philipe Mulet CLA 2004-05-19 10:37:39 EDT
Deferred since we had this bug since day-1 and never got hit by it.
Comment 3 Jerome Lanneluc CLA 2004-07-06 05:11:36 EDT
Reopening
Comment 4 Philipe Mulet CLA 2005-04-07 09:26:18 EDT
Deferring post 3.1
Comment 5 John P. Petrakis CLA 2006-04-25 14:19:06 EDT
Our source control plugin forbids the deletion of entire projects... however we see this precise behavoir in the following scenario:

If you delete a source-controlled project and select "also delete the source..." our deleteProject method rejects the deletion.  However, suppose you have two or three other projects that are not under source control... say on the "C" drive in the workspace.  If you select one of the deleteable projects and say, accidentally, multiply select the source controlled one, nothing unusual happens.  BUT if you multiply select two or more deleteable projects then inadvertently also select a source-controlled project, you get the warning that you can't delete a source controlled project, and the selected deletable projects do in fact get deleted, but the non-deletable source-controlled project dissapears from the package explorer, but it is clearly still in the workspace (as evidenced by the fact that it's in the list when you do a team->share or that it does not show up if you attempt a re-import because you think it's gone...)   

This behavior is present in Eclipse 3.2M6
Comment 6 Jerome Lanneluc CLA 2006-04-26 10:03:34 EDT
John this is quite late in the 3.2 cycle, and this code is risky to change.
We will consider this bug post 3.2
Comment 7 John P. Petrakis CLA 2006-04-26 11:21:37 EDT
I understand perfectly... note below says it's been there for a long, long, time... so I thought that a possible use case for reproduction might be useful.
Comment 8 Eclipse Webmaster CLA 2009-08-30 02:38:43 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.