-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always remove deleted projects from working sets #2250
Comments
duplicate of eclipse-platform/eclipse.platform#1074 ? |
Interestingly, I always (since years) work with working sets and never needed to delete any project from working set after project deletion. I guess it's not about working sets, but about projects remaining "known" by the workspace after they were deleted outside of Eclipse and so shown in all "explorers"? |
Not exactly, but it happens in the same scenario. While it is probably makes sense to work on both at the same time, this is only about projects removed from the file-system staying in working sets.
As far as I can tell from my experiments the projects are not displayed when e.g. the |
I'm working on this |
Great. You are one of the students from CodeDays, aren't you? Much success on this task and don't hesitate to ask for help if you need any. |
Hi, I am part of Jim’s student team with CodeDay. Thank you for your words of encouragement. What I have tried: Attempt 1 Attempt 2 I have attempted with both Java and Resource working sets and have had the same results. To clarify, is the issue that projects are not automatically removed from the workspace when deleted outside of Eclipse, or is the issue directly related to when projects are deleted through the Package Explorer in Eclipse? Build Id Information: Thank you! |
Hi, we found the same issue when deleting plug-in projects from a plug-in working set, the project remains in the working set after deleted in the package explorer, did you encounter the issue with plug-in project? @HannesWell |
Sorry for the delayed reply.
Great! Yes I encountered this problem with a Plug-in project (i.e. with a project that has PDE's nature |
Yes, the nature matters and a Java project could be deleted automatically from the working set. Also, I found that the PDE related problem you mentioned could be solved if you press F5 as the refresh button in the project explorer, then the project that was deleted from the package explorer will disappear. So this could be a UI problem. |
I also did some experiments and for me the nature of the project didn't made a difference. In general the modification of working-sets seems not to work well, even additions didn't always work in my workspace with many working sets and many projects and not the creation of the working sets themself was displayed in the Package Explorer immediately. But since I couldn't create the working-set or project a second time, then the error was that it already exists, I agree that it's probably a UI problem. One cause could maybe also be that the org.eclipse.ui.navigator.resources.ProjectExplorer provided by eclipse.platform.ui Maybe you can check those two classes if they might interfere or if they are maybe not correctly updated if the underlying resource model changes? |
just discovered that deleting projects from the Package Explorer triggers the removeWorkingSet(IWorkingSet workingSet) function in the codebase. This might be a useful starting point for addressing the issue at hand |
Suggestion
If I delete a project from the disk via the package explorer it often happens it remains as closed project in the working set it was assigned too. This is especially annoying because I then cannot delete the project from the working set because the dialog then says that the project does not exist anymore and therefore cannot be deleted.
A workaround seems to be to explicitly remove the project from the working sets (e.g. in its properties).
Ideally the latter would always happen automatically when a project is deleted.
Community
The text was updated successfully, but these errors were encountered: