1 /**********************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.internal
.lttng2
.stubs
.dialogs
;
14 import org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
.IChannelInfo
;
15 import org
.eclipse
.linuxtools
.internal
.lttng2
.core
.control
.model
.impl
.ChannelInfo
;
16 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.dialogs
.IEnableChannelDialog
;
17 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TargetNodeComponent
;
18 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TraceDomainComponent
;
21 * Create channel dialog stub implementation.
23 @SuppressWarnings("javadoc")
24 public class EnableChannelDialogStub
implements IEnableChannelDialog
{
26 // ------------------------------------------------------------------------
28 // ------------------------------------------------------------------------
29 private TraceDomainComponent fDomain
;
30 private ChannelInfo fChannelInfo
;
31 private boolean fIsKernel
;
33 // ------------------------------------------------------------------------
35 // ------------------------------------------------------------------------
36 public EnableChannelDialogStub() {
37 fChannelInfo
= new ChannelInfo("mychannel");
38 fChannelInfo
.setNumberOfSubBuffers(4);
39 fChannelInfo
.setOverwriteMode(true);
40 fChannelInfo
.setReadTimer(200);
41 fChannelInfo
.setSwitchTimer(100);
42 fChannelInfo
.setSubBufferSize(16384);
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
48 public void setIsKernel(boolean isKernel
) {
53 public IChannelInfo
getChannelInfo() {
58 public void setDomainComponent(TraceDomainComponent domain
) {
60 if (fDomain
!= null) {
61 fIsKernel
= fDomain
.isKernel();
71 public boolean isKernel() {
76 public void setHasKernel(boolean hasKernel
) {
80 public void setChannelInfo(ChannelInfo info
) {
85 public void setTargetNodeComponent(TargetNodeComponent node
) {