Skip to main content
summaryrefslogtreecommitdiffstats
blob: 170b0210330dc9e11e0c4ffdc6e790003e2188ae (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**********************************************************************
 * Copyright (c) 2012, 2013 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Bernd Hufmann - Initial API and implementation
 **********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.control.ui.views.dialogs;

import java.util.List;

import org.eclipse.core.resources.IProject;
import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent;

/**
 * <p>
 * Interface for import traces dialog.
 * </p>
 *
 * @author Bernd Hufmann
 */
public interface IImportDialog {

    // ------------------------------------------------------------------------
    // Accessors
    // ------------------------------------------------------------------------
    /**
     * @return a list of trace paths to import.
     */
    List<ImportFileInfo> getTracePathes();

    /**
     * @return the project to import the traces to
     */
    IProject getProject();

    /**
     * Sets the session containing the traces to import
     * @param session The trace session
     */
    void setSession(TraceSessionComponent session);

    /**
     * Sets the default project name to use
     *
     * @param defaultProject
     *            the name of the default project to use
     */
    void setDefaultProject(String defaultProject);


    // ------------------------------------------------------------------------
    // Operations
    // ------------------------------------------------------------------------
    /**
     * @return the open return value
     */
    int open();
}

Back to the top