KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > jobs > JobChangeEvent


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 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.internal.jobs;
12
13 import org.eclipse.core.runtime.IStatus;
14 import org.eclipse.core.runtime.jobs.IJobChangeEvent;
15 import org.eclipse.core.runtime.jobs.Job;
16
17 public class JobChangeEvent implements IJobChangeEvent {
18     /**
19      * The job on which this event occurred.
20      */

21     Job job = null;
22     /**
23      * The result returned by the job's run method, or <code>null</code> if
24      * not applicable.
25      */

26     IStatus result = null;
27     /**
28      * The amount of time to wait after scheduling the job before it should be run,
29      * or <code>-1</code> if not applicable for this type of event.
30      */

31     long delay = -1;
32     /**
33      * Whether this job is being immediately rescheduled.
34      */

35     boolean reschedule = false;
36
37     /* (non-Javadoc)
38      * Method declared on IJobChangeEvent
39      */

40     public long getDelay() {
41         return delay;
42     }
43
44     /* (non-Javadoc)
45      * Method declared on IJobChangeEvent
46      */

47     public Job getJob() {
48         return job;
49     }
50
51     /* (non-Javadoc)
52      * Method declared on IJobChangeEvent
53      */

54     public IStatus getResult() {
55         return result;
56     }
57 }
58
Popular Tags