Community
Participate
Working Groups
The JDT Package Explorer is not cleaning up when a project is expanded, there is a hidden folder as a member, and a file is deleted. A blank tree entry is left as an orphan in the tree after the delete. The blank tree item can be selected but use no properties and cannot be delete. It can be removed if ECLIPSE is restarted, if the project is refreshed from the Package Explorer (not via refreshLocal), or is collapsed and then expanded. To Reproduce: 1. Create a project. 2. Create a hidden derived folder in the project. 3. Create a visible file, test.txt, for example. 4. Select the visible file in the Package Explorer. 5. Delete the visible file.
>2. Create a hidden derived folder in the project How do you hide it?
The hidden IFolder can be created using the following snippet: void createHidden(IProject project,IProgressMonitor monitor) throws CoreException { IFolder folder = project.findMember(".myhidden"); if (!folder.exists) { folder.create(true,true,monitor); folder.setHidden(true); folder.setDerived(true,monitor); } }
(In reply to comment #2) > The hidden IFolder can be created using the following snippet: I meant through the UI.
I don't know of a way to mark a folder as hidden from the UI. This situation came up during plug-in development, so we use invoke the method below to set up the test condition.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.