tmf/lttng: Remove unneeded (non-Javadoc) comments
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui.tests / stubs / org / eclipse / linuxtools / internal / lttng2 / stubs / dialogs / EnableChannelDialogStub.java
... / ...
CommitLineData
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 **********************************************************************/
12package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs;
13
14import org.eclipse.linuxtools.internal.lttng2.core.control.model.IChannelInfo;
15import org.eclipse.linuxtools.internal.lttng2.core.control.model.impl.ChannelInfo;
16import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.IEnableChannelDialog;
17import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
18
19/**
20 * Create channel dialog stub implementation.
21 */
22@SuppressWarnings("javadoc")
23public class EnableChannelDialogStub implements IEnableChannelDialog {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28 private TraceDomainComponent fDomain;
29 private ChannelInfo fChannelInfo;
30 private boolean fIsKernel;
31
32 // ------------------------------------------------------------------------
33 // Constructor
34 // ------------------------------------------------------------------------
35 public EnableChannelDialogStub() {
36 fChannelInfo = new ChannelInfo("mychannel");
37 fChannelInfo.setNumberOfSubBuffers(4);
38 fChannelInfo.setOverwriteMode(true);
39 fChannelInfo.setReadTimer(200);
40 fChannelInfo.setSwitchTimer(100);
41 fChannelInfo.setSubBufferSize(16384);
42 }
43
44 // ------------------------------------------------------------------------
45 // Accessors
46 // ------------------------------------------------------------------------
47 public void setIsKernel(boolean isKernel) {
48 fIsKernel = isKernel;
49 }
50
51 @Override
52 public IChannelInfo getChannelInfo() {
53 return fChannelInfo;
54 }
55
56 @Override
57 public void setDomainComponent(TraceDomainComponent domain) {
58 fDomain = domain;
59 if (fDomain != null) {
60 fIsKernel = fDomain.isKernel();
61 }
62 }
63
64 @Override
65 public int open() {
66 return 0;
67 }
68
69 @Override
70 public boolean isKernel() {
71 return fIsKernel;
72 }
73
74 @Override
75 public void setHasKernel(boolean hasKernel) {
76 // Do nothing
77 }
78
79 public void setChannelInfo(ChannelInfo info) {
80 fChannelInfo = info;
81 }
82}
This page took 0.023133 seconds and 5 git commands to generate.