Object expandedElements[]= fViewer.getExpandedElements();
Object expandedElements[]= fViewer.getVisibleExpandedElements();
	protected void saveExpansionState(IMemento memento) {		Object expandedElements[]= fViewer.getExpandedElements();		if (expandedElements.length > 0) {			IMemento expandedMem= memento.createChild(TAG_EXPANDED);			for (int i= 0; i < expandedElements.length; i++) {				IMemento elementMem= expandedMem.createChild(TAG_ELEMENT);				// we can only persist JavaElements for now				Object o= expandedElements[i];				if (o instanceof IJavaElement)					elementMem.putString(TAG_PATH, ((IJavaElement) expandedElements[i]).getHandleIdentifier());			}		}	}