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
.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
.TraceDomainComponent
;
20 * Create channel dialog stub implementation.
22 @SuppressWarnings("javadoc")
23 public class EnableChannelDialogStub
implements IEnableChannelDialog
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
28 private TraceDomainComponent fDomain
;
29 private ChannelInfo fChannelInfo
;
30 private boolean fIsKernel
;
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
35 public EnableChannelDialogStub() {
36 fChannelInfo
= new ChannelInfo("mychannel"); //$NON-NLS-1$
37 fChannelInfo
.setNumberOfSubBuffers(4);
38 fChannelInfo
.setOverwriteMode(true);
39 fChannelInfo
.setReadTimer(200);
40 fChannelInfo
.setSwitchTimer(100);
41 fChannelInfo
.setSubBufferSize(16384);
44 // ------------------------------------------------------------------------
46 // ------------------------------------------------------------------------
47 public void setIsKernel(boolean isKernel
) {
52 public IChannelInfo
getChannelInfo() {
57 public void setDomainComponent(TraceDomainComponent domain
) {
59 if (fDomain
!= null) {
60 fIsKernel
= fDomain
.isKernel();
70 public boolean isKernel() {
74 public void setChannelInfo(ChannelInfo info
) {