diff org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/JobChangeAdapter.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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/org.eclipse.core.jobs/src/org/eclipse/core/runtime/jobs/JobChangeAdapter.d	Sat Mar 14 18:23:29 2009 +0100
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * Copyright (c) 2003, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM - Initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
+ *******************************************************************************/
+module org.eclipse.core.runtime.jobs.JobChangeAdapter;
+
+import java.lang.all;
+import org.eclipse.core.runtime.jobs.IJobChangeListener;
+import org.eclipse.core.runtime.jobs.IJobChangeEvent;
+
+/**
+ * This adapter class provides default implementations for the
+ * methods described by the <code>IJobChangeListener</code> interface.
+ * <p>
+ * Classes that wish to listen to the progress of scheduled jobs can
+ * extend this class and override only the methods which they are
+ * interested in.
+ * </p>
+ *
+ * @see IJobChangeListener
+ * @since 3.0
+ */
+public class JobChangeAdapter : IJobChangeListener {
+    /* (non-Javadoc)
+     * @see IJobChangeListener#aboutToRun(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void aboutToRun(IJobChangeEvent event) {
+        // do nothing
+    }
+
+    /* (non-Javadoc)
+     * @see IJobChangeListener#awake(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void awake(IJobChangeEvent event) {
+        // do nothing
+    }
+
+    /* (non-Javadoc)
+     * @see IJobChangeListener#done(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void done(IJobChangeEvent event) {
+        // do nothing
+    }
+
+    /* (non-Javadoc)
+     * @see IJobChangeListener#running(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void running(IJobChangeEvent event) {
+        // do nothing
+    }
+
+    /* (non-Javadoc)
+     * @see IJobChangeListener#scheduled(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void scheduled(IJobChangeEvent event) {
+        // do nothing
+    }
+
+    /* (non-Javadoc)
+     * @see IJobChangeListener#sleeping(IJobChangeEvent)
+     * This default implementation does nothing
+     */
+    public void sleeping(IJobChangeEvent event) {
+        // do nothing
+    }
+}