KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > core > commands > Request


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 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 Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.core.commands;
12
13 import org.eclipse.core.runtime.IStatus;
14 import org.eclipse.debug.core.IRequest;
15
16 /**
17  * @since 3.3
18  */

19 public class Request implements IRequest {
20     
21     private IStatus fStatus;
22     private boolean fCanceled = false;
23
24     /* (non-Javadoc)
25      * @see org.eclipse.debug.core.commands.IStatusCollector#done()
26      */

27     public void done() {
28     }
29
30     /* (non-Javadoc)
31      * @see org.eclipse.debug.core.commands.IStatusCollector#getStatus()
32      */

33     public IStatus getStatus() {
34         return fStatus;
35     }
36
37     /* (non-Javadoc)
38      * @see org.eclipse.debug.core.commands.IStatusCollector#setStatus(org.eclipse.core.runtime.IStatus)
39      */

40     public void setStatus(IStatus status) {
41         fStatus = status;
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.debug.core.commands.IRequest#cancel()
46      */

47     public synchronized void cancel() {
48         fCanceled = true;
49     }
50
51     /* (non-Javadoc)
52      * @see org.eclipse.debug.core.commands.IRequest#isCanceled()
53      */

54     public synchronized boolean isCanceled() {
55         return fCanceled;
56     }
57
58 }
59
Popular Tags