/**********************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
*
* Contributors:
* Bernd Hufmann - Initial API and implementation
+ * Bernd Hufmann - Updated for support of LTTng Tools 2.1
**********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IEventInfo;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEnablement;
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEventType;
// ------------------------------------------------------------------------
// Accessors
// ------------------------------------------------------------------------
- /*
- * (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceControlComponent#getImage()
- */
+
@Override
public Image getImage() {
if (fEventInfo.getState() == TraceEnablement.DISABLED) {
fEventInfo.setFilterExpression(filter);
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceControlComponent#getAdapter(java.lang.Class)
- */
@Override
public Object getAdapter(Class adapter) {
if (adapter == IPropertySource.class) {
return null;
}
+ /**
+ * @return target node component.
+ */
+ public TargetNodeComponent getTargetNode() {
+ return ((TraceChannelComponent)getParent()).getTargetNode();
+ }
+
/**
* @return session name from parent
*/
// Operations
// ------------------------------------------------------------------------
- /**
- * Add contexts to given channels and or events
- *
- * @param contexts
- * - a list of contexts to add
- * @throws ExecutionException
- * If the command fails
- */
- public void addContexts(List<String> contexts) throws ExecutionException {
- addContexts(contexts, new NullProgressMonitor());
- }
-
/**
* Add contexts to given channels and or events
*