Bug 327980 Part activation history should not be perspective-dependent
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartActivationHistory.java
******************************************************************************/
package org.eclipse.e4.ui.internal.workbench;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.model.application.ui.MElementContainer;
import org.eclipse.e4.ui.model.application.ui.MGenericStack;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.advanced.MArea;
import org.eclipse.e4.ui.model.application.ui.advanced.MPerspective;
import org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.e4.ui.model.application.ui.basic.MWindow;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
import org.eclipse.e4.ui.workbench.modeling.EPartService;
import org.eclipse.emf.ecore.EObject;
class PartActivationHistory {
	private EModelService modelService;
	private LinkedList<MPart> generalActivationHistory = new LinkedList<MPart>();
	private Map<MUIElement, LinkedList<MPart>> perspectiveActivationHistories = new WeakHashMap<MUIElement, LinkedList<MPart>>();
	PartActivationHistory(EModelService modelService) {
		this.modelService = modelService;
	}
	public void clear() {
		generalActivationHistory.clear();