| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2012, 2013 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 | * Bernd Hufmann - Updated for support of LTTng Tools 2.1 |
| 12 | **********************************************************************/ |
| 13 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
| 14 | |
| 15 | import org.eclipse.linuxtools.internal.lttng2.core.control.model.ISessionInfo; |
| 16 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup; |
| 17 | |
| 18 | /** |
| 19 | * <p> |
| 20 | * Interface for create session dialog. |
| 21 | * </p> |
| 22 | * |
| 23 | * @author Bernd Hufmann |
| 24 | */ |
| 25 | public interface ICreateSessionDialog { |
| 26 | |
| 27 | // ------------------------------------------------------------------------ |
| 28 | // Accessors |
| 29 | // ------------------------------------------------------------------------ |
| 30 | |
| 31 | /** |
| 32 | * Get the parameters necessary for the creation of a LTTng session |
| 33 | * |
| 34 | * @return the parameters |
| 35 | */ |
| 36 | ISessionInfo getParameters(); |
| 37 | |
| 38 | |
| 39 | // ------------------------------------------------------------------------ |
| 40 | // Operations |
| 41 | // ------------------------------------------------------------------------ |
| 42 | /** |
| 43 | * Initializes the dialog box. |
| 44 | * @param group - the session group |
| 45 | */ |
| 46 | void initialize(TraceSessionGroup group); |
| 47 | |
| 48 | /** |
| 49 | * @return the open return value |
| 50 | */ |
| 51 | int open(); |
| 52 | } |