1 /**********************************************************************
2 * Copyright (c) 2012 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
.ui
.views
.control
.dialogs
.IEnableChannelDialog
;
15 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.IChannelInfo
;
16 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.ChannelInfo
;
17 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TraceDomainComponent
;
20 * Create channel dialog stub implementation.
22 public class EnableChannelDialogStub
implements IEnableChannelDialog
{
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
27 private TraceDomainComponent fDomain
;
28 private ChannelInfo fChannelInfo
;
29 private boolean fIsKernel
;
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
34 public EnableChannelDialogStub() {
35 fChannelInfo
= new ChannelInfo("mychannel"); //$NON-NLS-1$
36 fChannelInfo
.setNumberOfSubBuffers(4);
37 fChannelInfo
.setOverwriteMode(true);
38 fChannelInfo
.setReadTimer(200);
39 fChannelInfo
.setSwitchTimer(100);
40 fChannelInfo
.setSubBufferSize(16384);
43 // ------------------------------------------------------------------------
45 // ------------------------------------------------------------------------
46 public void setIsKernel(boolean isKernel
) {
51 public IChannelInfo
getChannelInfo() {
56 public void setDomainComponent(TraceDomainComponent domain
) {
58 if (fDomain
!= null) {
59 fIsKernel
= fDomain
.isKernel();
69 public boolean isKernel() {
73 public void setChannelInfo(ChannelInfo info
) {