]>
Commit | Line | Data |
---|---|---|
1b2798f6 EK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000, 2008 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 | ||
15 | import org.eclipse.ui.IViewPart; | |
16 | ||
17 | /** | |
18 | * The standard Packages view presents a Java-centric view of the workspace. | |
19 | * Within Java projects, the resource hierarchy is organized into Java packages | |
20 | * as described by the project's classpath. Note that this view shows both Java | |
21 | * elements and ordinary resources. | |
22 | * <p> | |
23 | * This interface is not intended to be implemented by clients. | |
24 | * </p> | |
25 | * | |
26 | * @see JavaUI#ID_PACKAGES | |
27 | * | |
28 | * @noimplement This interface is not intended to be implemented by clients. | |
29 | * @noextend This interface is not intended to be extended by clients. | |
30 | */ | |
31 | public interface IPackagesViewPart extends IViewPart { | |
32 | /** | |
33 | * Selects and reveals the given element in this packages view. | |
34 | * The tree will be expanded as needed to show the element. | |
35 | * | |
36 | * @param element the element to be revealed | |
37 | */ | |
38 | void selectAndReveal(Object element); | |
39 | ||
40 | /** | |
41 | * Returns the TreeViewer shown in the Packages view. | |
42 | * | |
43 | * @return the tree viewer used in the Packages view | |
44 | * | |
45 | * @since 2.0 | |
46 | */ | |
47 | TreeViewer getTreeViewer(); | |
48 | ||
49 | /** | |
50 | * Returns whether this Packages view's selection automatically tracks the active editor. | |
51 | * | |
52 | * @return <code>true</code> if linking is enabled, <code>false</code> if not | |
53 | * @since 3.2 | |
54 | */ | |
55 | boolean isLinkingEnabled(); | |
56 | ||
57 | /** | |
58 | * Sets whether this Packages view's selection automatically tracks the active editor. | |
59 | * | |
60 | * @param enabled <code>true</code> to enable, <code>false</code> to disable | |
61 | * @since 3.2 | |
62 | */ | |
63 | void setLinkingEnabled(boolean enabled); | |
64 | } |