Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324808

Summary: [context] removing a project from the context does not always remove all elements from all models
Product: z_Archived Reporter: Shawn Minto <shawn.minto>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P2 CC: steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Shawn Minto CLA 2010-09-08 19:41:37 EDT
If a java project is removed from the context, when the user tries to remove the element from the context, they end up removing the resource structure for the element from the context but not the java structure.  However, if the user removes a package or the src folder, it will be removed from both.  For remove from context, we should consider iterating through all of the bridges and removing the element from each of them to ensure that all traces of the element are removed from the context.
Comment 1 Shawn Minto CLA 2010-09-08 19:52:53 EDT
I think that we should look into this for 3.5 since this could be too risky for the 3.4.2 release.  Steffen, what are your thoughts?

What we will have to do to make this work is to look at all bridges for manipulations to make sure that we remove all of the elements, but we want to make sure that we don't duplicate efforts and ensure that the performance doesn't degrade.  I will see if I can put together a patch for this so we can determine if the risk is low enough for a maintenance release or not.
Comment 2 Steffen Pingel CLA 2010-09-08 20:29:44 EDT
Yes, let's put that off. I haven't seen any reports of this before. Can users always recover by removing invisible elements from the context tab?
Comment 3 Shawn Minto CLA 2010-09-09 11:33:58 EDT
Yes, they can recover by removing invisible.  I never noticed it before either until I started investigating the remove from context problem.
Comment 4 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn