X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Flttng%2Fui%2Fviews%2Fcontrol%2Fmodel%2Fimpl%2FTraceChannelComponent.java;h=7f4a08195bdebefb69fb1266e9fe8baa27c52757;hb=ccc66d010396ea6f8f818c06c329f69c31bd2993;hp=7e48a1a2c140091cd6edaeb0b9db8bcefbace630;hpb=96d4922b30a021438d6855166701c285d121e990;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/views/control/model/impl/TraceChannelComponent.java b/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/views/control/model/impl/TraceChannelComponent.java index 7e48a1a2c1..7f4a08195b 100644 --- a/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/views/control/model/impl/TraceChannelComponent.java +++ b/org.eclipse.linuxtools.lttng.ui/src/org/eclipse/linuxtools/lttng/ui/views/control/model/impl/TraceChannelComponent.java @@ -21,7 +21,9 @@ import org.eclipse.linuxtools.lttng.ui.views.control.Messages; import org.eclipse.linuxtools.lttng.ui.views.control.model.IChannelInfo; import org.eclipse.linuxtools.lttng.ui.views.control.model.IEventInfo; import org.eclipse.linuxtools.lttng.ui.views.control.model.ITraceControlComponent; +import org.eclipse.linuxtools.lttng.ui.views.control.model.LogLevelType; import org.eclipse.linuxtools.lttng.ui.views.control.model.TraceEnablement; +import org.eclipse.linuxtools.lttng.ui.views.control.model.TraceLogLevel; import org.eclipse.linuxtools.lttng.ui.views.control.property.TraceChannelPropertySource; import org.eclipse.swt.graphics.Image; import org.eclipse.ui.views.properties.IPropertySource; @@ -323,6 +325,29 @@ public class TraceChannelComponent extends TraceControlComponent { getControlService().enableFunctionProbe(getSessionName(), getName(), eventName, probe, monitor); } + /** + * Enables events using log level. + * @param eventName - a event name + * @param logLevelType - a log level type + * @param level - a log level + * @throws ExecutionException + */ + public void enableLogLevel(String eventName, LogLevelType logLevelType, TraceLogLevel level) throws ExecutionException { + enableLogLevel(eventName, logLevelType, level, new NullProgressMonitor()); + } + + /** + * Enables events using log level. + * @param eventName - a event name + * @param logLevelType - a log level type + * @param level - a log level + * @param monitor - a progress monitor + * @throws ExecutionException + */ + public void enableLogLevel(String eventName, LogLevelType logLevelType, TraceLogLevel level, IProgressMonitor monitor) throws ExecutionException { + getControlService().enableLogLevel(getSessionName(), getName(), eventName, logLevelType, level, monitor); + } + /** * Enables a list of events with no additional parameters. * @param eventNames - a list of event names to enabled.