KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > PerspectiveAdapter


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui;
12
13 /**
14  * This adapter class provides default implementations for the methods described
15  * by the <code>IPerspectiveListener</code> interface and its extension
16  * interfaces.
17  * <p>
18  * Classes that wish to deal with events which occur as perspectives are added,
19  * removed, activated and changed, can extend this class and override only the
20  * methods which they are interested in.
21  * </p>
22  *
23  * @see org.eclipse.ui.IPerspectiveListener
24  * @see org.eclipse.ui.IPerspectiveListener2
25  * @see org.eclipse.ui.IPerspectiveListener3
26  * @see org.eclipse.ui.IPerspectiveListener4
27  * @since 3.1
28  */

29 public class PerspectiveAdapter implements IPerspectiveListener4 {
30
31     /*
32      * (non-Javadoc)
33      *
34      * @see org.eclipse.ui.IPerspectiveListener3#perspectiveOpened(org.eclipse.ui.IWorkbenchPage,
35      * org.eclipse.ui.IPerspectiveDescriptor)
36      */

37     public void perspectiveOpened(IWorkbenchPage page,
38             IPerspectiveDescriptor perspective) {
39         // do nothing
40
}
41
42     /*
43      * (non-Javadoc)
44      *
45      * @see org.eclipse.ui.IPerspectiveListener3#perspectiveClosed(org.eclipse.ui.IWorkbenchPage,
46      * org.eclipse.ui.IPerspectiveDescriptor)
47      */

48     public void perspectiveClosed(IWorkbenchPage page,
49             IPerspectiveDescriptor perspective) {
50         // do nothing
51
}
52
53     /*
54      * (non-Javadoc)
55      *
56      * @see org.eclipse.ui.IPerspectiveListener2#perspectiveChanged(org.eclipse.ui.IWorkbenchPage,
57      * org.eclipse.ui.IPerspectiveDescriptor,
58      * org.eclipse.ui.IWorkbenchPartReference, java.lang.String)
59      */

60     public void perspectiveChanged(IWorkbenchPage page,
61             IPerspectiveDescriptor perspective,
62             IWorkbenchPartReference partRef, String JavaDoc changeId) {
63         // do nothing
64
}
65
66     /*
67      * (non-Javadoc)
68      *
69      * @see org.eclipse.ui.IPerspectiveListener#perspectiveActivated(org.eclipse.ui.IWorkbenchPage,
70      * org.eclipse.ui.IPerspectiveDescriptor)
71      */

72     public void perspectiveActivated(IWorkbenchPage page,
73             IPerspectiveDescriptor perspective) {
74         // do nothing
75
}
76
77     /*
78      * (non-Javadoc)
79      *
80      * @see org.eclipse.ui.IPerspectiveListener#perspectiveChanged(org.eclipse.ui.IWorkbenchPage,
81      * org.eclipse.ui.IPerspectiveDescriptor, java.lang.String)
82      */

83     public void perspectiveChanged(IWorkbenchPage page,
84             IPerspectiveDescriptor perspective, String JavaDoc changeId) {
85         // do nothing
86
}
87
88     /*
89      * (non-Javadoc)
90      *
91      * @see org.eclipse.ui.IPerspectiveListener3#perspectiveDeactivated(org.eclipse.ui.IWorkbenchPage,
92      * org.eclipse.ui.IPerspectiveDescriptor)
93      */

94     public void perspectiveDeactivated(IWorkbenchPage page,
95             IPerspectiveDescriptor perspective) {
96         // do nothing
97
}
98
99     /*
100      * (non-Javadoc)
101      *
102      * @see org.eclipse.ui.IPerspectiveListener3#perspectiveSavedAs(org.eclipse.ui.IWorkbenchPage,
103      * org.eclipse.ui.IPerspectiveDescriptor,
104      * org.eclipse.ui.IPerspectiveDescriptor)
105      */

106     public void perspectiveSavedAs(IWorkbenchPage page,
107             IPerspectiveDescriptor oldPerspective,
108             IPerspectiveDescriptor newPerspective) {
109         // do nothing
110
}
111
112     /**
113      * {@inheritDoc}
114      * @since 3.2
115      */

116     public void perspectivePreDeactivate(IWorkbenchPage page,
117             IPerspectiveDescriptor perspective) {
118         // do nothing
119
}
120 }
121
Popular Tags