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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.ui;
14 import org.eclipse.ui.IViewPart;
16 import net.sourceforge.phpdt.core.IJavaElement;
17 import net.sourceforge.phpdt.core.IType;
20 * The standard type hierarchy view presents a type hierarchy for a given input class
21 * or interface. Visually, this view consists of a pair of viewers, one showing the type
22 * hierarchy, the other showing the members of the type selected in the first.
24 * This interface is not intended to be implemented by clients.
27 * @see JavaUI#ID_TYPE_HIERARCHY
29 public interface ITypeHierarchyViewPart extends IViewPart {
32 * Sets the input element of this type hierarchy view to a type.
34 * @param type the input element of this type hierarchy view, or <code>null</code>
35 * to clear any input element
36 * @deprecated use setInputElement instead
38 public void setInput(IType type);
41 * Sets the input element of this type hierarchy view. The following input types are possible
42 * <code>IMember</code> (types, methods, fields..), <code>IPackageFragment</code>, <code>IPackageFragmentRoot</code>
43 * and <code>IJavaProject</code>.
45 * @param element the input element of this type hierarchy view, or <code>null</code>
50 public void setInputElement(IJavaElement element);
53 * Returns the input element of this type hierarchy view.
55 * @return the input element, or <code>null</code> if no input element is set
56 * @see #setInput(IType)
57 * @deprecated use getInputElement instead
59 public IType getInput();
63 * Returns the input element of this type hierarchy view.
65 * @return the input element, or <code>null</code> if no input element is set
66 * @see #setInputElement(IJavaElement)
70 public IJavaElement getInputElement();