Commit | Line | Data |
---|---|---|
b793fbe1 | 1 | /********************************************************************** |
a6e6f7b4 BH |
2 | * Copyright (c) 2012, 2013 Ericsson |
3 | * | |
b793fbe1 BH |
4 | * All rights reserved. This program and the accompanying materials are |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
a6e6f7b4 BH |
8 | * |
9 | * Contributors: | |
b793fbe1 BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; | |
13 | ||
14 | import java.util.List; | |
15 | ||
16 | /** | |
b793fbe1 BH |
17 | * <p> |
18 | * Interface for providing information about contexts to be added to channels/events. | |
19 | * </p> | |
a6e6f7b4 | 20 | * |
dbd4432d | 21 | * @author Bernd Hufmann |
b793fbe1 BH |
22 | */ |
23 | public interface IAddContextDialog { | |
24 | ||
25 | // ------------------------------------------------------------------------ | |
26 | // Accessors | |
27 | // ------------------------------------------------------------------------ | |
28 | ||
29 | /** | |
30 | * Sets the available contexts to choose from. | |
31 | * @param contexts - a list of available contexts. | |
32 | */ | |
a6e6f7b4 BH |
33 | void setAvalibleContexts(List<String> contexts); |
34 | ||
b793fbe1 BH |
35 | /** |
36 | * @return array of contexts to be added | |
37 | */ | |
a6e6f7b4 | 38 | List<String> getContexts(); |
b793fbe1 BH |
39 | |
40 | // ------------------------------------------------------------------------ | |
41 | // Operations | |
42 | // ------------------------------------------------------------------------ | |
43 | /** | |
44 | * @return returns the open return value | |
45 | */ | |
46 | int open(); | |
47 | } |