Bug 15157 New-> menu disappears when folder is selected
Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
}
	/*
	 * Implements method from IViewPart.
	 */
	public void saveState(IMemento memento) {
		if (fViewer == null) {
			
			if (fMemento != null) 
				memento.putMemento(fMemento);
			return;
		}
		fWorkingSetFilterActionGroup.saveState(memento);
	}	
	protected void restoreState(IMemento memento) {
		fWorkingSetFilterActionGroup.restoreState(memento);
	}	
	/**
	 * Creates the search list inner viewer.
	 */
	public void createPartControl(Composite parent) {
		Assert.isTrue(fViewer == null);
		fTypeComparator= new JavaElementTypeComparator();
		
		fViewer= createViewer(parent);
		fLabelProvider= createLabelProvider();
		ILabelDecorator decorationMgr= PlatformUI.getWorkbench().getDecoratorManager();
		fViewer.setLabelProvider(new DecoratingLabelProvider(fLabelProvider, decorationMgr));
		
		fViewer.setSorter(new JavaElementSorter());
		fViewer.setUseHashlookup(true);