KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > search > SearchViewAdapter


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
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.ui.search;
12
13 import org.eclipse.swt.graphics.Image;
14 import org.eclipse.swt.widgets.Composite;
15 import org.eclipse.ui.IMemento;
16 import org.eclipse.ui.IPropertyListener;
17 import org.eclipse.ui.IViewPart;
18 import org.eclipse.ui.IViewSite;
19 import org.eclipse.ui.IWorkbenchPartSite;
20 import org.eclipse.ui.PartInitException;
21
22 /**
23  * This class adapts a Search view to return an adapted Search view site.
24  *
25  * @see org.eclipse.jdt.internal.ui.search.SearchViewSiteAdapter
26  * @since 2.1
27  */

28 class SearchViewAdapter implements IViewPart {
29     
30     private IWorkbenchPartSite fSite;
31
32     /**
33      * Constructor for SearchViewAdapter.
34      */

35     public SearchViewAdapter(IWorkbenchPartSite site) {
36         fSite= site;
37     }
38
39     /**
40      * @see org.eclipse.ui.IWorkbenchPart#getSite()
41      */

42     public IWorkbenchPartSite getSite() {
43         return fSite;
44     }
45
46     // --------- only empty stubs below ---------
47

48     /*
49      * @see org.eclipse.ui.IViewPart#getViewSite()
50      */

51     public IViewSite getViewSite() {
52         return null;
53     }
54
55     /*
56      * @see org.eclipse.ui.IViewPart#init(IViewSite)
57      */

58     public void init(IViewSite site) throws PartInitException {
59     }
60
61     /*
62      * @see org.eclipse.ui.IViewPart#init(IViewSite, IMemento)
63      */

64     public void init(IViewSite site, IMemento memento) throws PartInitException {
65     }
66
67     /*
68      * @see org.eclipse.ui.IViewPart#saveState(IMemento)
69      */

70     public void saveState(IMemento memento) {
71     }
72
73     /*
74      * @see org.eclipse.ui.IWorkbenchPart#addPropertyListener(IPropertyListener)
75      */

76     public void addPropertyListener(IPropertyListener listener) {
77     }
78
79     /*
80      * @see org.eclipse.ui.IWorkbenchPart#createPartControl(Composite)
81      */

82     public void createPartControl(Composite parent) {
83     }
84
85     /*
86      * @see org.eclipse.ui.IWorkbenchPart#dispose()
87      */

88     public void dispose() {
89     }
90
91     /*
92      * @see org.eclipse.ui.IWorkbenchPart#getTitle()
93      */

94     public String JavaDoc getTitle() {
95         return null;
96     }
97
98     /*
99      * @see org.eclipse.ui.IWorkbenchPart#getTitleImage()
100      */

101     public Image getTitleImage() {
102         return null;
103     }
104
105     /*
106      * @see org.eclipse.ui.IWorkbenchPart#getTitleToolTip()
107      */

108     public String JavaDoc getTitleToolTip() {
109         return null;
110     }
111
112     /*
113      * @see org.eclipse.ui.IWorkbenchPart#removePropertyListener(IPropertyListener)
114      */

115     public void removePropertyListener(IPropertyListener listener) {
116     }
117
118     /*
119      * @see org.eclipse.ui.IWorkbenchPart#setFocus()
120      */

121     public void setFocus() {
122     }
123
124     /*
125      * @see org.eclipse.core.runtime.IAdaptable#getAdapter(Class)
126      */

127     public Object JavaDoc getAdapter(Class JavaDoc adapter) {
128         return null;
129     }
130 }
131
Popular Tags