Project

General

Profile

Download (1.51 KB) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.gef;
12

    
13
/**
14
 * An <i>adapter</i> on an <code>EditPart</code> used to expose a descendant
15
 * contained in that EditPart. <code>EditPartViewer</code> uses this interface
16
 * to reveal a given EditPart.
17
 * <P>
18
 * An expose helper is obtained by calling {@link EditPart#getAdapter(Class)}.
19
 * The returned helper is responsible for modifying *only* that EditPart's
20
 * visuals such that the specified descendant is made visible.
21
 */
22
public interface ExposeHelper {
23

    
24
	/**
25
	 * Exposes the specified descendant on the EditPart which returned this
26
	 * helper. This is done by adjusting the EditPart's <i>visuals</i> such that
27
	 * the descendants <i>visuals</i> are exposed. Expose is performed from the
28
	 * bottom up, meaning that EditParts in the parent-chain between the
29
	 * helper's EditPart and the <i>descendant</i> will already have had a
30
	 * change to expose the descendant.
31
	 * 
32
	 * @param editpart
33
	 *            the descendant to expose
34
	 */
35
	void exposeDescendant(EditPart editpart);
36

    
37
}
(17-17/44)