KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > browsing > IPackagesViewViewer


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.jdt.internal.ui.browsing;
12
13 import java.util.List JavaDoc;
14
15 import org.eclipse.swt.widgets.Widget;
16
17 /**
18  * Allows accessing the PackagesViewTableViewer and the
19  * PackagesViewTreeViewer with identical API.
20  *
21  * @since 2.1
22  */

23 interface IPackagesViewViewer {
24
25     public void mapElement(Object JavaDoc element, Widget item);
26
27     public void unmapElement(Object JavaDoc element, Widget item);
28
29     public Widget doFindInputItem(Object JavaDoc element);
30
31     public Widget doFindItem(Object JavaDoc element);
32
33     public void doUpdateItem(Widget item, Object JavaDoc element, boolean fullMap);
34
35     public List JavaDoc getSelectionFromWidget();
36
37     public void internalRefresh(Object JavaDoc element);
38
39     public void setSelectionToWidget(List JavaDoc l, boolean reveal);
40 }
41
Popular Tags