Commit | Line | Data |
---|---|---|
291cbdbf | 1 | /********************************************************************** |
a6e6f7b4 | 2 | * Copyright (c) 2012, 2013 Ericsson |
cfdb727a | 3 | * |
291cbdbf 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 | |
cfdb727a AM |
8 | * |
9 | * Contributors: | |
291cbdbf BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
8e8c0226 | 12 | package org.eclipse.linuxtools.internal.lttng2.control.ui.views.dialogs; |
291cbdbf BH |
13 | |
14 | import java.util.List; | |
15 | ||
16 | import org.eclipse.core.resources.IProject; | |
8e8c0226 | 17 | import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent; |
291cbdbf BH |
18 | |
19 | /** | |
291cbdbf BH |
20 | * <p> |
21 | * Interface for import traces dialog. | |
22 | * </p> | |
cfdb727a | 23 | * |
dbd4432d | 24 | * @author Bernd Hufmann |
291cbdbf BH |
25 | */ |
26 | public interface IImportDialog { | |
cfdb727a | 27 | |
291cbdbf BH |
28 | // ------------------------------------------------------------------------ |
29 | // Accessors | |
30 | // ------------------------------------------------------------------------ | |
31 | /** | |
32 | * @return a list of trace paths to import. | |
33 | */ | |
a6e6f7b4 | 34 | List<ImportFileInfo> getTracePathes(); |
291cbdbf BH |
35 | |
36 | /** | |
37 | * @return the project to import the traces to | |
38 | */ | |
a6e6f7b4 | 39 | IProject getProject(); |
cfdb727a | 40 | |
291cbdbf BH |
41 | /** |
42 | * Sets the session containing the traces to import | |
cfdb727a | 43 | * @param session The trace session |
291cbdbf | 44 | */ |
a6e6f7b4 | 45 | void setSession(TraceSessionComponent session); |
cfdb727a | 46 | |
cd9821de BH |
47 | /** |
48 | * Sets the default project name to use | |
49 | * | |
50 | * @param defaultProject | |
51 | * the name of the default project to use | |
52 | */ | |
53 | void setDefaultProject(String defaultProject); | |
54 | ||
55 | ||
291cbdbf BH |
56 | // ------------------------------------------------------------------------ |
57 | // Operations | |
58 | // ------------------------------------------------------------------------ | |
59 | /** | |
60 | * @return the open return value | |
61 | */ | |
62 | int open(); | |
63 | } |