Bug 63420 [R21PRES] Flash on tab switch
bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
* (non-Javadoc)
	 * 
	 * @see org.eclipse.ui.presentations.StackPresentation#saveState(org.eclipse.ui.presentations.IPresentationSerializer,
	 *      org.eclipse.ui.IMemento)
	 */
	public void saveState(IPresentationSerializer context, IMemento memento) {
		super.saveState(context, memento);
		List parts = getPresentableParts();
		Iterator iter = parts.iterator();
		while (iter.hasNext()) {
			IPresentablePart next = (IPresentablePart) iter.next();
			IMemento childMem = memento
					.createChild(IWorkbenchConstants.TAG_PART);
			childMem.putString(IWorkbenchConstants.TAG_ID, context.getId(next));
		}
	}
	/**
	 * Returns the List of IPresentablePart currently in this presentation
	 */
	private List getPresentableParts() {
		Assert.isTrue(!isDisposed());
		CTabItem[] items = getPaneFolder().getItems();
		List result = new ArrayList(items.length);
		for (int idx = 0; idx < getPaneFolder().getItemCount(); idx++) {
			result.add(getPartForTab(items[idx]));
		}
		return result;
	}
}