01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.ui.browsing;
11:
12: import java.util.List;
13:
14: import org.eclipse.swt.widgets.Widget;
15:
16: /**
17: * Allows accessing the PackagesViewTableViewer and the
18: * PackagesViewTreeViewer with identical API.
19: *
20: * @since 2.1
21: */
22: interface IPackagesViewViewer {
23:
24: public void mapElement(Object element, Widget item);
25:
26: public void unmapElement(Object element, Widget item);
27:
28: public Widget doFindInputItem(Object element);
29:
30: public Widget doFindItem(Object element);
31:
32: public void doUpdateItem(Widget item, Object element,
33: boolean fullMap);
34:
35: public List getSelectionFromWidget();
36:
37: public void internalRefresh(Object element);
38:
39: public void setSelectionToWidget(List l, boolean reveal);
40: }
|