comparison dwtx/core/runtime/jobs/JobChangeAdapter.d @ 122:9d0585bcb7aa

Add core.jobs package
author Frank Benoit <benoit@tionex.de>
date Tue, 12 Aug 2008 02:34:21 +0200
parents
children
comparison
equal deleted inserted replaced
121:c0304616ea23 122:9d0585bcb7aa
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.core.runtime.jobs.JobChangeAdapter;
14
15 import dwt.dwthelper.utils;
16 import dwtx.core.runtime.jobs.IJobChangeListener;
17 import dwtx.core.runtime.jobs.IJobChangeEvent;
18
19 /**
20 * This adapter class provides default implementations for the
21 * methods described by the <code>IJobChangeListener</code> interface.
22 * <p>
23 * Classes that wish to listen to the progress of scheduled jobs can
24 * extend this class and override only the methods which they are
25 * interested in.
26 * </p>
27 *
28 * @see IJobChangeListener
29 * @since 3.0
30 */
31 public class JobChangeAdapter : IJobChangeListener {
32 /* (non-Javadoc)
33 * @see IJobChangeListener#aboutToRun(IJobChangeEvent)
34 * This default implementation does nothing
35 */
36 public void aboutToRun(IJobChangeEvent event) {
37 // do nothing
38 }
39
40 /* (non-Javadoc)
41 * @see IJobChangeListener#awake(IJobChangeEvent)
42 * This default implementation does nothing
43 */
44 public void awake(IJobChangeEvent event) {
45 // do nothing
46 }
47
48 /* (non-Javadoc)
49 * @see IJobChangeListener#done(IJobChangeEvent)
50 * This default implementation does nothing
51 */
52 public void done(IJobChangeEvent event) {
53 // do nothing
54 }
55
56 /* (non-Javadoc)
57 * @see IJobChangeListener#running(IJobChangeEvent)
58 * This default implementation does nothing
59 */
60 public void running(IJobChangeEvent event) {
61 // do nothing
62 }
63
64 /* (non-Javadoc)
65 * @see IJobChangeListener#scheduled(IJobChangeEvent)
66 * This default implementation does nothing
67 */
68 public void scheduled(IJobChangeEvent event) {
69 // do nothing
70 }
71
72 /* (non-Javadoc)
73 * @see IJobChangeListener#sleeping(IJobChangeEvent)
74 * This default implementation does nothing
75 */
76 public void sleeping(IJobChangeEvent event) {
77 // do nothing
78 }
79 }