Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 716b0198f7f9f895440bed9bbffbee19a5f15743 (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
/*******************************************************************************
 * Copyright (c) 2012, 2014 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License 2.0 which accompanies this distribution, and is
 * available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.launch.core.selection.interfaces;


/**
 * A launch selection.
 */
public interface ILaunchSelection {

	/**
	 * Returns the launch mode for which the selection has been created.
	 *
	 * @return The launch mode or <code>null</code>
	 */
	public String getLaunchMode();

	/**
	 * Returns all contexts for this selection.
	 *
	 * @return An array with all selection contexts or an empty array.
	 */
	public ISelectionContext[] getSelectedContexts();

	/**
	 * Returns all contexts of a specified type for this selection.
	 *
	 * @return An array with all selection contexts of the specified type, or an empty array.
	 */
	public ISelectionContext[] getSelectedContexts(Class<?> type);
}

Back to the top