KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > runtime > jobs > JobChangeAdapter


1 /*******************************************************************************
2  * Copyright (c) 2003, 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 - Initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.runtime.jobs;
12
13 /**
14  * This adapter class provides default implementations for the
15  * methods described by the <code>IJobChangeListener</code> interface.
16  * <p>
17  * Classes that wish to listen to the progress of scheduled jobs can
18  * extend this class and override only the methods which they are
19  * interested in.
20  * </p>
21  *
22  * @see IJobChangeListener
23  * @since 3.0
24  */

25 public class JobChangeAdapter implements IJobChangeListener {
26     /* (non-Javadoc)
27      * @see IJobChangeListener#aboutToRun(IJobChangeEvent)
28      * This default implementation does nothing
29      */

30     public void aboutToRun(IJobChangeEvent event) {
31         // do nothing
32
}
33
34     /* (non-Javadoc)
35      * @see IJobChangeListener#awake(IJobChangeEvent)
36      * This default implementation does nothing
37      */

38     public void awake(IJobChangeEvent event) {
39         // do nothing
40
}
41
42     /* (non-Javadoc)
43      * @see IJobChangeListener#done(IJobChangeEvent)
44      * This default implementation does nothing
45      */

46     public void done(IJobChangeEvent event) {
47         // do nothing
48
}
49
50     /* (non-Javadoc)
51      * @see IJobChangeListener#running(IJobChangeEvent)
52      * This default implementation does nothing
53      */

54     public void running(IJobChangeEvent event) {
55         // do nothing
56
}
57
58     /* (non-Javadoc)
59      * @see IJobChangeListener#scheduled(IJobChangeEvent)
60      * This default implementation does nothing
61      */

62     public void scheduled(IJobChangeEvent event) {
63         // do nothing
64
}
65
66     /* (non-Javadoc)
67      * @see IJobChangeListener#sleeping(IJobChangeEvent)
68      * This default implementation does nothing
69      */

70     public void sleeping(IJobChangeEvent event) {
71         // do nothing
72
}
73 }
74
Popular Tags