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;
13 import net.sourceforge.phpdt.core.IJavaElement;
14 import net.sourceforge.phpdt.core.IType;
16 import org.eclipse.ui.IViewPart;
19 * The standard type hierarchy view presents a type hierarchy for a given input
20 * class or interface. Visually, this view consists of a pair of viewers, one
21 * showing the type hierarchy, the other showing the members of the type
22 * 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.
35 * the input element of this type hierarchy view, or
36 * <code>null</code> to clear any input element
37 * @deprecated use setInputElement instead
39 public void setInput(IType type);
42 * Sets the input element of this type hierarchy view. The following input
43 * types are possible <code>IMember</code> (types, methods, fields..),
44 * <code>IPackageFragment</code>, <code>IPackageFragmentRoot</code> and
45 * <code>IJavaProject</code>.
48 * the input element of this type hierarchy view, or
49 * <code>null</code> to clear any input
53 public void setInputElement(IJavaElement element);
56 * Returns the input element of this type hierarchy view.
58 * @return the input element, or <code>null</code> if no input element is
60 * @see #setInput(IType)
61 * @deprecated use getInputElement instead
63 public IType getInput();
66 * Returns the input element of this type hierarchy view.
68 * @return the input element, or <code>null</code> if no input element is
70 * @see #setInputElement(IJavaElement)
74 public IJavaElement getInputElement();