KickJava   Java API By Example, From Geeks To Geeks.

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


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 - Initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.jobs;
12
13 import org.eclipse.core.runtime.Status;
14 import org.eclipse.core.runtime.jobs.IJobStatus;
15 import org.eclipse.core.runtime.jobs.Job;
16
17 /**
18  * Standard implementation of the IJobStatus interface.
19  */

20 public class JobStatus extends Status implements IJobStatus {
21     private Job job;
22
23     /**
24      * Creates a new job status with no interesting error code or exception.
25      * @param severity
26      * @param job
27      * @param message
28      */

29     public JobStatus(int severity, Job job, String JavaDoc message) {
30         super(severity, JobManager.PI_JOBS, 1, message, null);
31         this.job = job;
32     }
33
34     /* (non-Javadoc)
35      * @see org.eclipse.core.runtime.jobs.IJobStatus#getJob()
36      */

37     public Job getJob() {
38         return job;
39     }
40 }
41
Popular Tags