Bug 302791 [CommonNavigator] Associated editor does not close when deleting resource (editorInput) through CommonNavigator
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorPlugin.java
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.framework.BundleListener;
/**
 * The main plugin class for the Navigator. 
 *  
 * @since 3.2
 */
public class NavigatorPlugin extends AbstractUIPlugin {
	
	private static NavigatorPlugin plugin;
	
	private static final int LOG_DELAY = 100;
	
	private static class LogJob extends Job { 		
		
		
		private ListenerList messages = new ListenerList() {
			
			public synchronized Object[] getListeners() {
				Object[] mesgs = super.getListeners();
				clear();
				return mesgs;
			}
		};
		
		/**
		 * Creates a Job which offloads the logging work into a non-UI thread.
		 *
		 */