KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > provisional > IAsynchronousSuspendResumeAdapter


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

11 package org.eclipse.debug.internal.ui.actions.provisional;
12
13 import org.eclipse.debug.internal.ui.viewers.provisional.IAsynchronousRequestMonitor;
14
15 /**
16  * Adapter for suspending and resuming.
17  *
18  * @since 3.2
19  */

20 public interface IAsynchronousSuspendResumeAdapter {
21
22     /**
23      * Asynchronously determines whether the given element can perform a resume.
24      *
25      * @param element element
26      * @param monitor request monitor
27      */

28     public void canResume(Object JavaDoc element, IBooleanRequestMonitor monitor);
29     /**
30      * Asynchronously determines whether the given element can be suspended.
31      *
32      * @param element element
33      * @param monitor request monitor
34      */

35     public void canSuspend(Object JavaDoc element, IBooleanRequestMonitor monitor);
36     /**
37      * Asynchronously determines whether the given element is suspended.
38      *
39      * @param element element
40      * @param monitor request monitor
41      */

42     public void isSuspended(Object JavaDoc element, IBooleanRequestMonitor monitor);
43     /**
44      * Asynchronously resumes the given element.
45      *
46      * @param element element
47      * @param monitor request monitor
48      */

49     public void resume(Object JavaDoc element, IAsynchronousRequestMonitor monitor);
50     /**
51      * Asynchronously suspends the given element.
52      *
53      * @param element element
54      * @param monitor request monitor
55      */

56     public void suspend(Object JavaDoc element, IAsynchronousRequestMonitor monitor);
57     
58 }
59
Popular Tags