control: Add enhanced support for loading of sessions
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / dialogs / ILoadDialog.java
1 /**********************************************************************
2 * Copyright (c) 2015 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.tracecompass.internal.lttng2.control.ui.views.dialogs;
13
14 import java.util.List;
15
16 import org.eclipse.core.filesystem.IFileStore;
17 import org.eclipse.remote.core.IRemoteConnection;
18
19 /**
20 * Interface for a dialog box for collecting parameter for loading a session.
21 *
22 * @author Bernd Hufmann
23 */
24 public interface ILoadDialog {
25 // ------------------------------------------------------------------------
26 // Accessors
27 // ------------------------------------------------------------------------
28 /**
29 * Returns a list of file resources to load
30 * @return a list of remote resources or null if local resources to upload
31 */
32 List<IFileStore> getRemoteResources();
33
34 /**
35 * Returns a list of file resources to load
36 * @return a list of local resources to upload and load or null in remote case
37 */
38 List<IFileStore> getLocalResources();
39
40
41 /**
42 * Returns flag to overwrite existing session or not
43 * @return flag to overwrite existing session or not
44 */
45 boolean isForce();
46
47 /**
48 * Sets the remote connection reference
49 * @param connection
50 * a remote connection
51 */
52 void initialize(IRemoteConnection connection);
53
54 // ------------------------------------------------------------------------
55 // Operations
56 // ------------------------------------------------------------------------
57 /**
58 * Open method
59 * @return the open return value
60 */
61 int open();
62 }
This page took 0.035216 seconds and 5 git commands to generate.