package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>IBaseEventInfo</u></b>
* <p>
* Interface for retrieval of basic trace event information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IBaseEventInfo extends ITraceInfo {
import java.util.List;
/**
- * <b><u>IChannelInfo</u></b>
* <p>
* Interface for retrieval of trace channel information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IChannelInfo extends ITraceInfo {
import java.util.List;
/**
- * <b><u>IDomainInfo</u></b>
* <p>
* Interface for retrieval of trace domain information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
-
public interface IDomainInfo extends ITraceInfo {
/**
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>IEventInfo</u></b>
* <p>
* Interface for retrieval of trace event information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IEventInfo extends IBaseEventInfo {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>IProbeEventInfo</u></b>
* <p>
* Interface for retrieval of probe event information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IProbeEventInfo extends IEventInfo {
import java.util.List;
/**
- * <b><u>ISessionInfo</u></b>
* <p>
* Interface for retrieval of trace session information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ISessionInfo extends ITraceInfo {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>ITraceInfo</u></b>
* <p>
* Interface for retrieve trace comon information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
-
public interface ITraceInfo {
/**
* @return the name of the information element.
import java.util.List;
/**
- * <b><u>IUstProviderInfo</u></b>
* <p>
* Interface for retrieval of UST provider information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IUstProviderInfo extends ITraceInfo {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>LogLevelType</u></b>
* <p>
* Type of log Level enumeration.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public enum LogLevelType {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>TargetNodeState</u></b>
* <p>
* Enumeration for the node connection state.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public enum TargetNodeState {
DISCONNECTED,
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>TraceEnablement</u></b>
* <p>
* Enumeration for enabled/disabled states.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public enum TraceEnablement {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>TraceEventType</u></b>
* <p>
* Trace event type enumeration.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public enum TraceEventType {
TRACEPOINT("tracepoint"), //$NON-NLS-1$
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>TraceLogLevels</u></b>
* <p>
* Log Level enumeration.
* </p>
+ *
+ * @author Bernd Hufmann
*/
@SuppressWarnings("nls")
public enum TraceLogLevel {
package org.eclipse.linuxtools.internal.lttng2.core.control.model;
/**
- * <b><u>TraceSessionState</u></b>
* <p>
* Session state enumeration.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public enum TraceSessionState {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceLogLevel;
/**
-* <b><u>BaseEventInfo</u></b>
* <p>
* Implementation of the basic trace event interface (IEventInfo) to store event
* related data.
* </p>
+*
+* @author Bernd Hufmann
*/
public class BaseEventInfo extends TraceInfo implements IBaseEventInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEnablement;
/**
- * <b><u>ChannelInfo</u></b>
* <p>
* Implementation of the trace channel interface (IChannelInfo) to store channel
* related data.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ChannelInfo extends TraceInfo implements IChannelInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IDomainInfo;
/**
- * <b><u>DomainInfo</u></b>
* <p>
* Implementation of the trace domain interface (IDomainInfo) to store domain
* related data.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DomainInfo extends TraceInfo implements IDomainInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceEnablement;
/**
-* <b><u>EventInfo</u></b>
* <p>
* Implementation of the trace event interface (IEventInfo) to store event
* related data.
* </p>
+*
+* @author Bernd Hufmann
*/
public class EventInfo extends BaseEventInfo implements IEventInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IProbeEventInfo;
/**
-* <b><u>ProbleEventInfo</u></b>
* <p>
* Implementation of the trace event interface (IProbeEventInfo) to store probe event
* related data.
* </p>
+*
+* @author Bernd Hufmann
*/
public class ProbeEventInfo extends EventInfo implements IProbeEventInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceSessionState;
/**
- * <b><u>SessionInfo</u></b>
* <p>
* Implementation of the trace session interface (ISessionInfo) to store session
* related data.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class SessionInfo extends TraceInfo implements ISessionInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.ITraceInfo;
/**
- * <b><u>TraceInfo</u></b>
* <p>
* Implementation of the base trace information interface (ITraceInfo) to
* store common data.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceInfo implements ITraceInfo {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.IUstProviderInfo;
/**
- * <b><u>UstProviderInfo</u></b>
* <p>
* Implementation of the Ust Provider interface (IUstProviderInfo) to store UST
* provider related data.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class UstProviderInfo extends TraceInfo implements IUstProviderInfo {
org.eclipse.rse.services;bundle-version="3.2.100",
org.eclipse.rse.subsystems.files.core;bundle-version="3.2.100",
org.eclipse.rse.ui;bundle-version="3.2.0"
-Export-Package: org.eclipse.linuxtools.internal.lttng2.ui.views.control;x-friends:="org.eclipse.linuxtools.lttng2.kernel.ui"
+Export-Package: org.eclipse.linuxtools.internal.lttng2.ui.views.control;x-friends:="org.eclipse.linuxtools.lttng2.kernel.ui",
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.logging;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.messages;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.model;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.preferences;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.property;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote;x-internal:=true,
+ org.eclipse.linuxtools.internal.lttng2.ui.views.control.service;x-internal:=true
import org.eclipse.ui.progress.UIJob;
/**
- * <b><u>ControlView</u></b>
* <p>
* View implementation for Trace Control.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ControlView extends ViewPart implements ITraceControlComponentChangedListener {
import org.eclipse.swt.widgets.Shell;
/**
- * <b><u>AddContextDialog</u></b>
* <p>
* Dialog box for collecting information about contexts to be added to channels/events.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class AddContextDialog extends Dialog implements IAddContextDialog {
import org.eclipse.swt.widgets.Shell;
/**
- * <b><u>ConfirmDialog</u></b>
* <p>
* Confirmation dialog implementation.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ConfirmDialog implements IConfirmDialog {
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>CreateSessionDialog</u></b>
* <p>
* Dialog box for collecting session creation information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class CreateSessionDialog extends Dialog implements ICreateSessionDialog {
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>EnableChannelDialog</u></b>
* <p>
* Dialog box for collecting channel information when enabling a channel (which will be created).
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableChannelDialog extends Dialog implements IEnableChannelDialog {
import org.eclipse.swt.widgets.Shell;
/**
- * <b><u>EnableEventsDialog</u></b>
* <p>
* Dialog box for collecting information events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableEventsDialog extends Dialog implements IEnableEventsDialog {
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>EnableKernelEventsComposite</u></b>
* <p>
* A composite for collecting information about kernel events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableKernelEventComposite extends Composite implements IEnableKernelEvents {
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>EnableUstEventsComposite</u></b>
* <p>
* A composite for collecting information about UST events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableUstEventsComposite extends Composite implements IEnableUstEvents {
import org.eclipse.swt.widgets.Shell;
/**
- * <b><u>EnableEventsDialog</u></b>
* <p>
* Dialog box for collecting information about the events to enable.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
import java.util.List;
/**
- * <b><u>IAddContextDialog</u></b>
* <p>
* Interface for providing information about contexts to be added to channels/events.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IAddContextDialog {
import org.eclipse.swt.widgets.Shell;
/**
- * <b><u>IConfirmDialog</u></b>
* <p>
* Interface for a confirmation dialog.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IConfirmDialog {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup;
/**
- * <b><u>ICreateSessionDialog</u></b>
* <p>
* Interface for create session dialog.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ICreateSessionDialog {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
/**
- * <b><u>IEnableChannelDialog</u></b>
* <p>
* Interface for the enable channel dialog when domain is known.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IEnableChannelDialog {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceProviderGroup;
/**
- * <b><u>IEnableKernelEvents</u></b>
* <p>
* Interface for providing information about Kernel or UST events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IEnableEventsDialog extends IEnableKernelEvents, IEnableUstEvents {
import java.util.List;
/**
- * <b><u>IEnableKernelEvents</u></b>
* <p>
* Interface for providing information about kernel events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IEnableKernelEvents {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceLogLevel;
/**
- * <b><u>IEnableKernelEvents</u></b>
* <p>
* Interface for providing information about UST events to be enabled.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IEnableUstEvents {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * <b><u>IEnableEventsDialog</u></b>
* <p>
* Interface for a dialog box for collecting information about the events to enable.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IGetEventInfoDialog {
**********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;
-
/**
- * <b><u>IImportConfirmationDialog</u></b>
* <p>
* Interface for dialog box for updating file import information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IImportConfirmationDialog {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * <b><u>IImportDialog</u></b>
* <p>
* Interface for import traces dialog.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IImportDialog {
import org.eclipse.rse.core.model.IHost;
/**
- * <b><u>INewConnectionDialog</u></b>
* <p>
* Interface for connection information dialog.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface INewConnectionDialog {
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>CreateSessionDialog</u></b>
* <p>
* Dialog box for collecting session creation information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ImportConfirmationDialog extends Dialog implements IImportConfirmationDialog {
import org.eclipse.ui.model.WorkbenchLabelProvider;
/**
- * <b><u>ImportDialog</u></b>
* <p>
* Dialog box for collecting trace import information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ImportDialog extends Dialog implements IImportDialog {
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
/**
- * <b><u>ImportFileInfo</u></b>
* <p>
* Helper class for storing information about a remote file to import.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ImportFileInfo {
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
+ /**
+ * Remote file reference
+ */
private IRemoteFile fRemoteFile;
+ /**
+ * Local Trace Name
+ */
private String fLocalTraceName;
+ /**
+ * Global overwrite flag
+ */
private boolean fIsOverwrite;
// ------------------------------------------------------------------------
// Constructors
// ------------------------------------------------------------------------
+ /**
+ * Standard constructor
+ * @param file A remote file reference
+ * @param traceName A trace name
+ * @param isOverwrite global overwrite flag
+ */
public ImportFileInfo(IRemoteFile file, String traceName, boolean isOverwrite) {
fRemoteFile = file;
fLocalTraceName = traceName;
import org.eclipse.swt.widgets.Text;
/**
- * <b><u>NewConnectionDialog</u></b>
* <p>
* Dialog box for connection information.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class NewConnectionDialog extends Dialog implements INewConnectionDialog {
+/**********************************************************************
+ * 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:
+ * Bernd Hufmann - Initial API and implementation
+ **********************************************************************/
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs;
import org.eclipse.ui.PlatformUI;
-
+/**
+ * <p>
+ * Factory for generating dialog boxes. It allows to overwrite the dialog implementation.
+ * Useful also for testing purposes.
+ * </p>
+ *
+ * @author Bernd Hufmann
+ *
+ */
final public class TraceControlDialogFactory {
// ------------------------------------------------------------------------
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>AddContextOnChannelHandler</u></b>
* <p>
* Command handler implementation to add contexts to a given channel and all of its events.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class AddContextOnChannelHandler extends BaseAddContextHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>AddContextOnDomainHandler</u></b>
* <p>
* Command handler implementation to add contexts to all channels and all events.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class AddContextOnDomainHandler extends BaseAddContextHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>AddContextOnEventHandler</u></b>
* <p>
* Command handler implementation to add contexts to a given event.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class AddContextOnEventHandler extends BaseAddContextHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>AssignEventHandler</u></b>
* <p>
* Command handler implementation to assign events to a session and channel and enable/configure them.
* This is done on the trace provider level.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class AssignEventHandler extends BaseControlViewHandler {
import org.eclipse.ui.progress.UIJob;
/**
- * <b><u>BaseAddContextHandler</u></b>
* <p>
* Base command handler implementation to add contexts.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class BaseAddContextHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>BaseControlViewHandler</u></b>
* <p>
* Abstract Command handler implementation for all control view handlers.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class BaseControlViewHandler extends AbstractHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
/**
- * <b><u>BaseEnableChannelHandler</u></b>
* <p>
* Base implementation of a command handler to enable a trace channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract class BaseEnableChannelHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>EnableEventOnSessionHandler</u></b>
* <p>
* Base command handler implementation to enable events.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class BaseEnableEventHandler extends BaseControlViewHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>BaseNodeHandler</u></b>
* <p>
* Command handler implementation to delete a target host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class BaseNodeHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>CalibrateHandler</u></b>
* <p>
* Command handler implementation to execute command calibrate to quantify LTTng overhead.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class CalibrateHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>ChangeChannelStateHandler</u></b>
* <p>
* Abstract command handler implementation to enable or disabling a trace channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>EnableChannelHandler</u></b>
* <p>
* Base Command handler implementation to enable or disabling a trace channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class ChangeEventStateHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>ChangeSessionStateHandler</u></b>
* <p>
* Abstract command handler implementation to start or stop one or more trace sessions.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class ChangeSessionStateHandler extends BaseControlViewHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * Class containing parameter for the command execution.
+ * Class containing parameter for the command execution.
+ *
+ * @author Bernd Hufmann
*/
public class ChannelCommandParameter extends CommandParameter implements Cloneable {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * Class containing parameter for the command execution.
+ * Class containing parameter for the command execution.
+ *
+ * @author Bernd Hufmann
*/
public class CommandParameter implements Cloneable {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TargetNodeState;
/**
- * <b><u>ConnectHandler</u></b>
* <p>
* Command handler implementation to connect to a target host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ConnectHandler extends BaseNodeHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>CreateSessionHandler</u></b>
* <p>
* Command handler implementation to create a trace session.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class CreateSessionHandler extends BaseControlViewHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent;
/**
- * <b><u>DeleteHandler</u></b>
* <p>
* Command handler implementation to delete a target host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DeleteHandler extends BaseNodeHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>DestroySessionHandler</u></b>
* <p>
* Command handler implementation to destroy one or more trace sessions.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DestroySessionHandler extends BaseControlViewHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
/**
- * <b><u>DisableChannelHandler</u></b>
* <p>
* Command handler implementation to disable one or more trace channels per session and domain.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DisableChannelHandler extends ChangeChannelStateHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceChannelComponent;
/**
- * <b><u>DisableEventHandler</u></b>
* <p>
* Command handler implementation to disable one or more events session, domain and channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DisableEventHandler extends ChangeEventStateHandler {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TargetNodeState;
/**
- * <b><u>DisconnectHandler</u></b>
* <p>
* Command handler implementation to disconnect from a target host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class DisconnectHandler extends BaseNodeHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * Class containing parameter for the command execution.
+ * Class containing parameter for the command execution.
+ *
+ * @author Bernd Hufmann
*/
public class DomainCommandParameter extends CommandParameter {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
/**
- * <b><u>EnableChannelHandler</u></b>
* <p>
* Command handler implementation to enable one or more trace channels per session and domain.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableChannelHandler extends ChangeChannelStateHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>EnableChannelOnDomainHandler</u></b>
* <p>
* Command handler implementation to enable a trace channel for known domain.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableChannelOnDomainHandler extends BaseEnableChannelHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>EnableChannelOnSessionHandler</u></b>
* <p>
* Command handler implementation to enable a trace channel for unknown domain
* (on session level).
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableChannelOnSessionHandler extends BaseEnableChannelHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceChannelComponent;
/**
- * <b><u>EnableEventHandler</u></b>
* <p>
* Command handler implementation to enable one or more events session, domain and channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableEventHandler extends ChangeEventStateHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>EnableEventOnChannelHandler</u></b>
* <p>
* Command handler implementation to enable events for a known channel.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableEventOnChannelHandler extends BaseEnableEventHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>EnableEventOnDomainHandler</u></b>
* <p>
* Command handler implementation to enable events for a known domain and default channel 'channel0'
* (which will be created if doesn't exist).
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableEventOnDomainHandler extends BaseEnableEventHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>EnableEventOnSessionHandler</u></b>
* <p>
* Command handler implementation to enable events for a known session and default channel 'channel0'
* (which will be created if doesn't exist).
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class EnableEventOnSessionHandler extends BaseEnableEventHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * Class containing parameter for a command execution.
+ * Class containing parameter for a command execution.
+ *
+ * @author Bernd Hufmann
*/
public class EventCommandParameter extends CommandParameter {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>ImportHandler</u></b>
* <p>
* Command handler implementation to import traces from a (remote) session to a tracing project.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ImportHandler extends BaseControlViewHandler {
import org.eclipse.ui.PlatformUI;
/**
- * <b><u>NewConnectionHandler</u></b>
* <p>
* Command handler for creation new connection for trace control.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class NewConnectionHandler extends BaseControlViewHandler {
import org.eclipse.ui.IWorkbenchPage;
/**
- * <b><u>RefreshHandler</u></b>
* <p>
* Command handler implementation to refresh node configuration.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class RefreshHandler extends BaseControlViewHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * <b><u>StartHandler</u></b>
* <p>
* Command handler implementation to start one or more trace sessions.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class StartHandler extends ChangeSessionStateHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
/**
- * <b><u>StopHandler</u></b>
* <p>
* Command handler implementation to stop one or more trace sessions.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class StopHandler extends ChangeSessionStateHandler {
import org.eclipse.linuxtools.internal.lttng2.ui.Activator;
/**
- * <b><u>ControlCommandLogger</u></b>
* <p>
* Class to log control commands.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ControlCommandLogger {
// ------------------------------------------------------------------------
// Attributes
// ------------------------------------------------------------------------
+ /**
+ * The bufferd writer reference
+ */
private static BufferedWriter fTraceLog = null;
// ------------------------------------------------------------------------
/*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 201s Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
import org.eclipse.osgi.util.NLS;
/**
- * <b><u>Messages</u></b>
* <p>
* Messages file for the trace control package.
* </p>
+ *
+ * @author Bernd Hufmann
*/
final public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.lttng2.ui.views.control.messages.messages"; //$NON-NLS-1$
import org.eclipse.swt.graphics.Image;
/**
- * <b><u>ITraceControlComponent</u></b>
* <p>
* Interface for trace control components that can be displayed in the
* trace control tree viewer.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ITraceControlComponent extends IAdaptable {
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.model;
/**
- * <b><u>ITraceControlComponentChangedListener</u></b>
* <p>
* Listener interface a class can implement to be notified about changes
* of components
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ITraceControlComponentChangedListener {
/**
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>BaseEventComponent</u></b>
* <p>
* Implementation of the base trace event component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class BaseEventComponent extends TraceControlComponent {
// ------------------------------------------------------------------------
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>KernelProviderComponent</u></b>
* <p>
- * TODO
+ * Implementation of the Kernel provider component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class KernelProviderComponent extends TraceControlComponent {
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>TargetNodeComponent</u></b>
* <p>
* Implementation of the trace node component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TargetNodeComponent extends TraceControlComponent implements ICommunicationsListener {
/**
- * <b><u>TraceChannelComponent</u></b>
* <p>
* Implementation of the trace channel component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceChannelComponent extends TraceControlComponent {
// ------------------------------------------------------------------------
import org.eclipse.swt.graphics.Image;
/**
- * <b><u>TraceControlComponent</u></b>
* <p>
* Base implementation for trace control component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceControlComponent implements ITraceControlComponent {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent;
/**
- * <b><u>TraceControlContentProvider</u></b>
* <p>
* Tree content provider implementation for trace control view.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceControlContentProvider implements ITreeContentProvider {
// ------------------------------------------------------------------------
import org.eclipse.swt.graphics.Image;
/**
- * <b><u>TraceControlLabelProvider</u></b>
* <p>
* Label provider for trace control tree viewer.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceControlLabelProvider extends ColumnLabelProvider {
/**
- * <b><u>TraceControlRoot</u></b>
* <p>
* Root element in trace control tree.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceControlRoot extends TraceControlComponent {
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>TraceDomainComponent</u></b>
* <p>
* Implementation of the trace domain component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceDomainComponent extends TraceControlComponent {
// ------------------------------------------------------------------------
/**
- * <b><u>TraceEventComponent</u></b>
* <p>
* Implementation of the trace channel component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceEventComponent extends TraceControlComponent {
// ------------------------------------------------------------------------
/**
- * <b><u>TraceProbeEventComponent</u></b>
* <p>
* Implementation of the trace channel component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceProbeEventComponent extends TraceEventComponent {
// ------------------------------------------------------------------------
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent;
/**
- * <b><u>TraceProviderGroup</u></b>
* <p>
* Implementation of the trace provider group.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceProviderGroup extends TraceControlComponent {
// ------------------------------------------------------------------------
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>TraceSessionComponent</u></b>
* <p>
* Implementation of the trace session component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceSessionComponent extends TraceControlComponent {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.ITraceControlComponent;
/**
- * <b><u>TraceSessionGroup</u></b>
* <p>
* Implementation of the trace session group.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceSessionGroup extends TraceControlComponent {
// ------------------------------------------------------------------------
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>UstProviderComponent</u></b>
* <p>
* Implementation of the UST provider component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class UstProviderComponent extends TraceControlComponent {
import org.eclipse.jface.preference.IPreferenceStore;
/**
- * <b><u>ControlPreferenceInitializer</u></b>
* <p>
* A class to initialize the preferences.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ControlPreferenceInitializer extends AbstractPreferenceInitializer {
/*
import org.eclipse.ui.IWorkbenchPreferencePage;
/**
- * <b><u>ControlPreferencePage</u></b>
* <p>
* Preference page implementation for configuring LTTng tracer control preferences.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ControlPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.logging.ControlCommandLogger;
/**
- * <b><u>ControlPreference</u></b>
* <p>
* Singleton class to access LTTng tracer control preferences.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class ControlPreferences {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>BaseEventPropertySource</u></b>
* <p>
* Property source implementation for the base event component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class BaseEventPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.IPropertySource;
/**
- * <b><u>BaseEventPropertySource</u></b>
* <p>
* Base property source implementation.
* </p>
+ *
+ * @author Bernd Hufmann
*/
abstract public class BasePropertySource implements IPropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>KernelProviderPropertySource</u></b>
* <p>
* Property source implementation for the kernl provider component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class KernelProviderPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TargetNodePropertySource</u></b>
* <p>
* Property source implementation for the target node component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TargetNodePropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TraceChannelPropertySource</u></b>
* <p>
* Property source implementation for the trace channel component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceChannelPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TraceDomainPropertySource</u></b>
* <p>
* Property source implementation for the trace domain component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceDomainPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TraceEventPropertySource</u></b>
* <p>
* Property source implementation for the trace event component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceEventPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TraceEventPropertySource</u></b>
* <p>
* Property source implementation for the trace probe event component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceProbeEventPropertySource extends TraceEventPropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>TraceSessionPropertySource</u></b>
* <p>
* Property source implementation for the trace session component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class TraceSessionPropertySource extends BasePropertySource {
import org.eclipse.ui.views.properties.TextPropertyDescriptor;
/**
- * <b><u>UstProviderPropertySource</u></b>
* <p>
* Property source implementation for the UST provider component.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class UstProviderPropertySource extends BasePropertySource {
import java.util.Arrays;
/**
- * <b><u>CommandResult</u></b>
* <p>
* Class containing command result of remote command execution.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class CommandResult implements ICommandResult {
import org.eclipse.rse.services.shells.IShellService;
/**
- * <b><u>CommandShell</u></b>
* <p>
* Implementation of remote command execution using RSE's shell service.
* </p>
+ *
+ * @author Patrick Tasse
+ * @author Bernd Hufmann
*/
public class CommandShell implements ICommandShell {
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote;
/**
- * <b><u>IommandResult</u></b>
* <p>
* Interface for providing command execution result.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ICommandResult {
/**
import org.eclipse.core.runtime.IProgressMonitor;
/**
- * <b><u>ICommandShell</u></b>
* <p>
* Interface for a command shell implementation
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface ICommandShell {
import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSystem;
/**
- * <b><u>IRemoteSystemProxy</u></b>
* <p>
* Remote System Proxy interface.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public interface IRemoteSystemProxy {
import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSystem;
/**
- * <b><u>RemoteSystemProxy</u></b>
* <p>
* RemoteSystemProxy implementation.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class RemoteSystemProxy implements IRemoteSystemProxy {
import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceLogLevel;
-/** <b><u>ILttngControlService</u></b>
+/**
* <p>
* Interface for LTTng trace control command service.
* </p>
+*
+* @author Bernd Hufmann
*/
public interface ILttngControlService {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.ICommandShell;
/**
- * <b><u>LTTngControlService</u></b>
* <p>
* Service for sending LTTng trace control commands to remote host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class LTTngControlService implements ILttngControlService {
import java.util.regex.Pattern;
/**
- * <b><u>LTTngControlServiceConstants</u></b>
* <p>
* Constants for LTTng Control Service.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class LTTngControlServiceConstants {
import org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.ICommandShell;
/**
- * <b><u>LTTngControlServiceFactory</u></b>
* <p>
* Factory to create LTTngControlService instances depending on the version of the LTTng Trace Control
* installed on the remote host.
* </p>
+ *
+ * @author Bernd Hufmann
*/
public class LTTngControlServiceFactory {
/**
* Gets the LTTng Control Service implementation based on the version of the
* remote LTTng Tools.
+ *
* @param shell - the shell implementation to pass to the service
* @return - LTTng Control Service implementation
* @throws ExecutionException
}
/**
- * @version 1.0
- *
* Loader for a blank sequence diagram.
*
+ * @version 1.0
*/
public static class BlankUml2SdLoader implements IUml2SDLoader {
/*