/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package net.sourceforge.phpdt.ui; import org.eclipse.ui.IViewPart; import net.sourceforge.phpdt.core.IJavaElement; import net.sourceforge.phpdt.core.IType; /** * The standard type hierarchy view presents a type hierarchy for a given input class * or interface. Visually, this view consists of a pair of viewers, one showing the type * hierarchy, the other showing the members of the type selected in the first. *
* This interface is not intended to be implemented by clients. *
* * @see JavaUI#ID_TYPE_HIERARCHY */ public interface ITypeHierarchyViewPart extends IViewPart { /** * Sets the input element of this type hierarchy view to a type. * * @param type the input element of this type hierarchy view, ornull
* to clear any input element
* @deprecated use setInputElement instead
*/
public void setInput(IType type);
/**
* Sets the input element of this type hierarchy view. The following input types are possible
* IMember
(types, methods, fields..), IPackageFragment
, IPackageFragmentRoot
* and IJavaProject
.
*
* @param element the input element of this type hierarchy view, or null
* to clear any input
*
* @since 2.0
*/
public void setInputElement(IJavaElement element);
/**
* Returns the input element of this type hierarchy view.
*
* @return the input element, or null
if no input element is set
* @see #setInput(IType)
* @deprecated use getInputElement instead
*/
public IType getInput();
/**
* Returns the input element of this type hierarchy view.
*
* @return the input element, or null
if no input element is set
* @see #setInputElement(IJavaElement)
*
* @since 2.0
*/
public IJavaElement getInputElement();
}