Commit | Line | Data |
---|---|---|
b793fbe1 BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
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 | /** | |
17 | * <b><u>IAddContextDialog</u></b> | |
18 | * <p> | |
19 | * Interface for providing information about contexts to be added to channels/events. | |
20 | * </p> | |
21 | */ | |
22 | public interface IAddContextDialog { | |
23 | ||
24 | // ------------------------------------------------------------------------ | |
25 | // Accessors | |
26 | // ------------------------------------------------------------------------ | |
27 | ||
28 | /** | |
29 | * Sets the available contexts to choose from. | |
30 | * @param contexts - a list of available contexts. | |
31 | */ | |
32 | public void setAvalibleContexts(List<String> contexts); | |
33 | ||
34 | /** | |
35 | * @return array of contexts to be added | |
36 | */ | |
37 | public List<String> getContexts(); | |
38 | ||
39 | // ------------------------------------------------------------------------ | |
40 | // Operations | |
41 | // ------------------------------------------------------------------------ | |
42 | /** | |
43 | * @return returns the open return value | |
44 | */ | |
45 | int open(); | |
46 | } |