improved PHP parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ui / IPackagesViewPart.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.ui;
12
13 import org.eclipse.jface.viewers.TreeViewer;
14 import org.eclipse.ui.IViewPart;
15
16 /**
17  * The standard Packages view presents a Java-centric view of the workspace.
18  * Within Java projects, the resource hierarchy is organized into Java packages
19  * as described by the project's classpath. Note that this view shows both Java 
20  * elements and ordinary resources.
21  * <p>
22  * This interface is not intended to be implemented by clients.
23  * </p>
24  *
25  * @see JavaUI#ID_PACKAGES
26  */
27 public interface IPackagesViewPart extends IViewPart {
28         /**
29          * Selects and reveals the given element in this packages view.
30          * The tree will be expanded as needed to show the element.
31          *
32          * @param element the element to be revealed
33          */
34         void selectAndReveal(Object element);
35         
36         /**
37          * Returns the TreeViewer shown in the Packages view.
38          * 
39          * @return the tree viewer used in the Packages view
40          * 
41          * @since 2.0
42          */
43         TreeViewer getTreeViewer();
44 }