comparison org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/JobStatus.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
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 org.eclipse.core.internal.jobs.JobStatus;
14
15 import java.lang.all;
16
17 import org.eclipse.core.runtime.Status;
18 import org.eclipse.core.runtime.jobs.IJobStatus;
19 import org.eclipse.core.runtime.jobs.Job;
20 import org.eclipse.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 org.eclipse.core.runtime.jobs.IJobStatus#getJob()
41 */
42 public Job getJob() {
43 return job;
44 }
45 }