10
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2006 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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.viewers.IStructuredContentProvider;
|
|
14
|
|
15 import dwtx.jface.viewers.IContentProvider;
|
|
16
|
|
17 /**
|
|
18 * An interface to content providers for structured viewers.
|
|
19 *
|
|
20 * @see StructuredViewer
|
|
21 */
|
|
22 public interface IStructuredContentProvider : IContentProvider {
|
|
23 /**
|
|
24 * Returns the elements to display in the viewer
|
|
25 * when its input is set to the given element.
|
|
26 * These elements can be presented as rows in a table, items in a list, etc.
|
|
27 * The result is not modified by the viewer.
|
|
28 *
|
|
29 * @param inputElement the input element
|
|
30 * @return the array of elements to display in the viewer
|
|
31 */
|
|
32 public Object[] getElements(Object inputElement);
|
|
33 }
|