Bug 13206 Missing resource
20020409: Package View>Context Menu>OpenNewWindowAction.text
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
}
		}
		if (!(element instanceof IResource) || ((IResource)element).isPhantom()) {
			return null;
		}
		return (IResource)element;
	}
	
	public void saveState(IMemento memento) {
		if (fViewer == null) {
			
			if (fMemento != null) 
				memento.putMemento(fMemento);
			return;
		}
		saveExpansionState(memento);
		saveSelectionState(memento);
		saveScrollState(memento, fViewer.getTree());
		savePatternFilterState(memento);
		saveFilterState(memento);
		saveWorkingSetState(memento);
		saveMemberFilterState(memento);
	}
	protected void saveFilterState(IMemento memento) {
		boolean showLibraries= getLibraryFilter().getShowLibraries();
		String show= "true"; 
		if (!showLibraries)
			show= "false"; 
		memento.putString(TAG_SHOWLIBRARIES, show);