KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > ui > IPackagesViewPart


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  *******************************************************************************/

11 package org.eclipse.jdt.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 JavaDoc 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     
45     /**
46      * Returns whether this Packages view's selection automatically tracks the active editor.
47      *
48      * @return <code>true</code> if linking is enabled, <code>false</code> if not
49      * @since 3.2
50      */

51     boolean isLinkingEnabled();
52     
53     /**
54      * Sets whether this Packages view's selection automatically tracks the active editor.
55      *
56      * @param enabled <code>true</code> to enable, <code>false</code> to disable
57      * @since 3.2
58      */

59     void setLinkingEnabled(boolean enabled);
60 }
61
Popular Tags