X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fui%2Fviews%2Fcontrol%2Fhandlers%2FBaseEnableEventHandler.java;h=7b95a44306a722348cb4ac165fa62da87c8f6643;hb=cfdb727a40c37882fd8c1ae8e4ad35c8020701c5;hp=4cf8ce4f1c37d66f71db62f7c3033390a2b0a25f;hpb=b031866026c1a893dc9c77fdb4c9b1c29e97e88a;p=deliverable%2Ftracecompass.git
diff --git a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableEventHandler.java b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableEventHandler.java
index 4cf8ce4f1c..7b95a44306 100644
--- a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableEventHandler.java
+++ b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableEventHandler.java
@@ -1,12 +1,12 @@
/**********************************************************************
* Copyright (c) 2012 Ericsson
- *
+ *
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
+ *
+ * Contributors:
* Bernd Hufmann - Initial API and implementation
**********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers;
@@ -37,7 +37,7 @@ import org.eclipse.ui.PlatformUI;
*
* Base command handler implementation to enable events.
*
- *
+ *
* @author Bernd Hufmann
*/
abstract public class BaseEnableEventHandler extends BaseControlViewHandler {
@@ -53,48 +53,74 @@ abstract public class BaseEnableEventHandler extends BaseControlViewHandler {
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
+
/**
* Enables a list of events for given parameters.
- * @param - a parameter instance with data for the command execution
- * @param eventNames - list of event names
- * @param isKernel - true if kernel domain else false
- * @param monitor - a progress monitor
+ *
+ * @param param
+ * - a parameter instance with data for the command execution
+ * @param eventNames
+ * - list of event names
+ * @param isKernel
+ * - true if kernel domain else false
+ * @param monitor
+ * - a progress monitor
* @throws ExecutionException
+ * If the command fails for some reason
*/
abstract public void enableEvents(CommandParameter param, List eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException;
/**
* Enables all syscall events.
- * @param - a parameter instance with data for the command execution
- * @param monitor - a progress monitor
+ *
+ * @param param
+ * - a parameter instance with data for the command execution
+ * @param monitor
+ * - a progress monitor
* @throws ExecutionException
+ * If the command fails for some reason
*/
abstract public void enableSyscalls(CommandParameter param, IProgressMonitor monitor) throws ExecutionException;
-
+
/**
* Enables a dynamic probe.
- * @param - a parameter instance with data for the command execution
- * @param eventName - a event name
- * @param isFunction - true for dynamic function entry/return probe else false
- * @param probe - a dynamic probe information
- * @param monitor - a progress monitor
+ *
+ * @param param
+ * - a parameter instance with data for the command execution
+ * @param eventName
+ * - a event name
+ * @param isFunction
+ * - true for dynamic function entry/return probe else false
+ * @param probe
+ * - a dynamic probe information
+ * @param monitor
+ * - a progress monitor
* @throws ExecutionException
+ * If the command fails for some reason
*/
abstract public void enableProbe(CommandParameter param, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException;
-
+
/**
* Enables events using log level
- * @param - a parameter instance with data for the command execution
- * @param eventName - a event name
- * @param logLevelType - a log level type
- * @param level - a log level
- * @param monitor - a progress monitor
+ *
+ * @param param
+ * - a parameter instance with data for the command execution
+ * @param eventName
+ * - a event name
+ * @param logLevelType
+ * - a log level type
+ * @param level
+ * - a log level
+ * @param monitor
+ * - a progress monitor
* @throws ExecutionException
- */
+ * If the command fails for some reason
+ */
abstract public void enableLogLevel(CommandParameter param, String eventName, LogLevelType logLevelType, TraceLogLevel level, IProgressMonitor monitor) throws ExecutionException;
-
+
/**
- * @param - a parameter instance with data for the command execution
+ * @param param
+ * - a parameter instance with data for the command execution
* @return returns the relevant domain (null if domain is not known)
*/
abstract TraceDomainComponent getDomain(CommandParameter param);
@@ -183,7 +209,7 @@ abstract public class BaseEnableEventHandler extends BaseControlViewHandler {
refresh(param);
if (error != null) {
- return new Status(Status.ERROR, Activator.PLUGIN_ID, Messages.TraceControl_ChangeEventStateFailure, error);
+ return new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.TraceControl_ChangeEventStateFailure, error);
}
return Status.OK_STATUS;
}