| 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 | import org.eclipse.core.resources.IProject; |
| 17 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent; |
| 18 | |
| 19 | /** |
| 20 | * <p> |
| 21 | * Interface for import traces dialog. |
| 22 | * </p> |
| 23 | * |
| 24 | * @author Bernd Hufmann |
| 25 | */ |
| 26 | public interface IImportDialog { |
| 27 | |
| 28 | // ------------------------------------------------------------------------ |
| 29 | // Accessors |
| 30 | // ------------------------------------------------------------------------ |
| 31 | /** |
| 32 | * @return a list of trace paths to import. |
| 33 | */ |
| 34 | public List<ImportFileInfo> getTracePathes(); |
| 35 | |
| 36 | /** |
| 37 | * @return the project to import the traces to |
| 38 | */ |
| 39 | public IProject getProject(); |
| 40 | |
| 41 | /** |
| 42 | * Sets the session containing the traces to import |
| 43 | * @param session The trace session |
| 44 | */ |
| 45 | public void setSession(TraceSessionComponent session); |
| 46 | |
| 47 | // ------------------------------------------------------------------------ |
| 48 | // Operations |
| 49 | // ------------------------------------------------------------------------ |
| 50 | /** |
| 51 | * @return the open return value |
| 52 | */ |
| 53 | int open(); |
| 54 | } |