Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 85c83e34b3405a7734f507fe3f03fa9bfb39376d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*******************************************************************************
 * Copyright (c) 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 Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.debug.internal.ui.actions.provisional;

import org.eclipse.debug.internal.ui.viewers.provisional.IAsynchronousRequestMonitor;

/**
 * Adapter for suspending and resuming.
 * 
 * @since 3.2
 */
public interface IAsynchronousSuspendResumeAdapter {

	/**
	 * Asynchronously determines whether the given element can perform a resume.
	 *
	 * @param element element
	 * @param monitor request monitor
	 */
	public void canResume(Object element, IBooleanRequestMonitor monitor);
	/**
	 * Asynchronously determines whether the given element can be suspended.
	 *
	 * @param element element
	 * @param monitor request monitor
	 */
	public void canSuspend(Object element, IBooleanRequestMonitor monitor);
	/**
	 * Asynchronously determines whether the given element is suspended.
	 *
	 * @param element element
	 * @param monitor request monitor
	 */
	public void isSuspended(Object element, IBooleanRequestMonitor monitor);
	/**
	 * Asynchronously resumes the given element.
	 *
	 * @param element element
	 * @param monitor request monitor
	 */
	public void resume(Object element, IAsynchronousRequestMonitor monitor);
	/**
	 * Asynchronously suspends the given element.
	 *
	 * @param element element
	 * @param monitor request monitor
	 */
	public void suspend(Object element, IAsynchronousRequestMonitor monitor);
	
}

Back to the top