Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 870ab2280eba089821c896339335aaeb56ca3a30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2006, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.internal.ui.viewers.model.provisional;

/**
 * Used to save and restore viewer selection/expansion state. A memento
 * provider adapter should be available from a viewer input element
 * in order to support viewer state save/restore.
 *
 * @since 3.3
 */
public interface IElementMementoProvider {
	
	/**
	 * Creates and stores a mementos for the elements specified in the requests.
	 * A request should be cancelled if a memento is not supported for the
	 * specified element or context.
	 * 
	 * @param requests specifies elements and provides memento stores
	 */
	public void encodeElements(IElementMementoRequest[] requests);
	
	/**
	 * Determines whether mementos represent associated elements specified in the requests.
	 * 
	 * @param requests specifies each element and previously created memento
	 */
	public void compareElements(IElementCompareRequest[] requests);

}

Back to the top