Mercurial > projects > dwt-addons
comparison dwtx/core/internal/jobs/JobStatus.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) 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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.core.internal.jobs.JobStatus; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 import dwtx.core.runtime.Status; | |
18 import dwtx.core.runtime.jobs.IJobStatus; | |
19 import dwtx.core.runtime.jobs.Job; | |
20 import dwtx.core.internal.jobs.JobManager; | |
21 | |
22 /** | |
23 * Standard implementation of the IJobStatus interface. | |
24 */ | |
25 public class JobStatus : Status, IJobStatus { | |
26 private Job job; | |
27 | |
28 /** | |
29 * Creates a new job status with no interesting error code or exception. | |
30 * @param severity | |
31 * @param job | |
32 * @param message | |
33 */ | |
34 public this(int severity, Job job, String message) { | |
35 super(severity, JobManager.PI_JOBS, 1, message, null); | |
36 this.job = job; | |
37 } | |
38 | |
39 /* (non-Javadoc) | |
40 * @see dwtx.core.runtime.jobs.IJobStatus#getJob() | |
41 */ | |
42 public Job getJob() { | |
43 return job; | |
44 } | |
45 } |