lttng.control: Replacing isKernel with an enum for the domain type
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / dialogs / IEnableChannelDialog.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2014 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 org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceDomainType;
15 import org.eclipse.tracecompass.internal.lttng2.control.core.model.IChannelInfo;
16 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TargetNodeComponent;
17 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceDomainComponent;
18
19 /**
20 * <p>
21 * Interface for the enable channel dialog when domain is known.
22 * </p>
23 *
24 * @author Bernd Hufmann
25 */
26 public interface IEnableChannelDialog {
27
28 // ------------------------------------------------------------------------
29 // Accessors
30 // ------------------------------------------------------------------------
31 /**
32 * @return the configuration info for the new channel.
33 */
34 IChannelInfo getChannelInfo();
35
36 /**
37 * Sets the domain component
38 * @param domain - the trace domain component
39 */
40 void setDomainComponent(TraceDomainComponent domain);
41
42 /**
43 * Set the targent node component
44 * @param node - the node component
45 */
46 void setTargetNodeComponent(TargetNodeComponent node);
47
48 /**
49 * @return The domain type ({@link TraceDomainType})
50 */
51 TraceDomainType getDomain();
52
53 /**
54 * Sets the whether dialog is for Kernel or UST
55 * @param isKernel true for kernel domain else UST
56 */
57 void setHasKernel(boolean isKernel);
58
59 // ------------------------------------------------------------------------
60 // Operations
61 // ------------------------------------------------------------------------
62 /**
63 * @return the open return value
64 */
65 int open();
66 }
This page took 0.033847 seconds and 5 git commands to generate.