Bug 72923 Delete from Package Explorer removes file but not empty package [package explorer]
This process is a little inconsistant. Sometimes it will work, but most of the time it will not remove the empty package structure. 1. Delete a java file in a package from the Package Explorer 2. Both java file and the empty package disappear from the Package Explorer 3. Add another file to the project 4. Click Refresh from the Package Explorer Expected Results: The empty package should not show up Actual Results: The empty package shows up Delete this package again Add a file Click Refresh The empty package shows up with one directory removed from it
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java
/*******************************************************************************
 * Copyright (c) 2000, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http:www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.packageview;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse.core.resources.IProject;