blob: 23ab4aa6017e2361f1af257a882654db4a3e234c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 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:
* Jesper Kamstrup Linnet (eclipse@kamstrup-linnet.dk) - initial API and implementation
* (report 36180: Callers/Callees view)
******************************************************************************/
package org.eclipse.jdt.internal.ui.callhierarchy;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPropertyListener;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IViewSite;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.PartInitException;
/**
* This class adapts a Call Hierarchy view to return an adapted Call Hierarchy view site.
*
* @see org.eclipse.jdt.internal.ui.callhierarchy.CallHierarchyViewSiteAdapter
*/
class CallHierarchyViewAdapter implements IViewPart, ICallHierarchyViewPart {
private IViewSite fSite;
/**
* Constructor for SearchViewAdapter.
*/
public CallHierarchyViewAdapter(IViewSite site) {
fSite= site;
}
/**
* @see org.eclipse.ui.IWorkbenchPart#getSite()
*/
public IWorkbenchPartSite getSite() {
return fSite;
}
/*
* @see org.eclipse.ui.IViewPart#getViewSite()
*/
public IViewSite getViewSite() {
return fSite;
}
// --------- only empty stubs below ---------
/*
* @see org.eclipse.ui.IViewPart#init(IViewSite)
*/
public void init(IViewSite site) throws PartInitException {
}
/*
* @see org.eclipse.ui.IViewPart#init(IViewSite, IMemento)
*/
public void init(IViewSite site, IMemento memento) throws PartInitException {
}
/*
* @see org.eclipse.ui.IViewPart#saveState(IMemento)
*/
public void saveState(IMemento memento) {
}
/*
* @see org.eclipse.ui.IWorkbenchPart#addPropertyListener(IPropertyListener)
*/
public void addPropertyListener(IPropertyListener listener) {
}
/*
* @see org.eclipse.ui.IWorkbenchPart#createPartControl(Composite)
*/
public void createPartControl(Composite parent) {
}
/*
* @see org.eclipse.ui.IWorkbenchPart#dispose()
*/
public void dispose() {
}
/*
* @see org.eclipse.ui.IWorkbenchPart#getTitle()
*/
public String getTitle() {
return null;
}
/*
* @see org.eclipse.ui.IWorkbenchPart#getTitleImage()
*/
public Image getTitleImage() {
return null;
}
/*
* @see org.eclipse.ui.IWorkbenchPart#getTitleToolTip()
*/
public String getTitleToolTip() {
return null;
}
/*
* @see org.eclipse.ui.IWorkbenchPart#removePropertyListener(IPropertyListener)
*/
public void removePropertyListener(IPropertyListener listener) {
}
/*
* @see org.eclipse.ui.IWorkbenchPart#setFocus()
*/
public void setFocus() {
}
/*
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(Class)
*/
public Object getAdapter(Class adapter) {
return null;
}
}