lttng: Fix more Sonar warnings in LTTng Tracer Control
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Wed, 29 May 2013 15:44:15 +0000 (11:44 -0400)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Thu, 30 May 2013 17:03:05 +0000 (13:03 -0400)
Change-Id: Id605ea90f7714e3662c207d2c2ad83dbbd29c5fc
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/13343
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
14 files changed:
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/AddContextDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/EnableChannelDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/GetEventInfoDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ImportConfirmationDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/ImportDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/NewConnectionDialog.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/TraceControlDialogFactory.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/ChangeChannelStateHandler.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/ChangeSessionStateHandler.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/logging/ControlCommandLogger.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/remote/IRemoteSystemProxy.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/service/ILttngControlService.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/service/LTTngControlService.java
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/service/LTTngControlServiceConstants.java

index cc7f698b58401a621e0eba044a057e51960dc909..662efbdc5ef8c159843d60f3ab59fe894d5fd3c2 100644 (file)
@@ -56,11 +56,6 @@ public class AddContextDialog extends Dialog implements IAddContextDialog  {
     // Attributes
     // ------------------------------------------------------------------------
 
-    /**
-     * The dialog composite.
-     */
-    private Composite fDialogComposite;
-
     /**
      * A tree viewer for displaying and selection of available contexts.
      */
@@ -120,13 +115,13 @@ public class AddContextDialog extends Dialog implements IAddContextDialog  {
     protected Control createDialogArea(Composite parent) {
 
         // Main dialog panel
-        fDialogComposite = new Composite(parent, SWT.NONE);
+        Composite dialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(1, true);
-        fDialogComposite.setLayout(layout);
-        fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+        dialogComposite.setLayout(layout);
+        dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
 
         // Contexts list
-        Group contextGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+        Group contextGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
         contextGroup.setText(Messages.TraceControl_AddContextAvailableContextsLabel);
         layout = new GridLayout(1, true);
         contextGroup.setLayout(layout);
@@ -143,7 +138,7 @@ public class AddContextDialog extends Dialog implements IAddContextDialog  {
 
         getShell().setMinimumSize(new Point(500, 450));
 
-        return fDialogComposite;
+        return dialogComposite;
     }
 
     @Override
@@ -405,21 +400,21 @@ public class AddContextDialog extends Dialog implements IAddContextDialog  {
         /**
          * @return The name of this component
          */
-        public String getName();
+        String getName();
 
         /**
          * @return The parent component
          */
-        public Object getParent();
+        Object getParent();
 
         /**
          * @return The array of children of this component
          */
-        public Object[] getChildren();
+        Object[] getChildren();
 
         /**
          * @return If this component has children or not
          */
-        public boolean hasChildren();
+        boolean hasChildren();
     }
 }
index 56ce8758727fe7324767aa0691b34eba24ba214e..ae92efb5c79f12cf677b37410d7a0e12545fbec7 100644 (file)
@@ -52,10 +52,6 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
-    /**
-     * The dialog composite.
-     */
-    private Composite fDialogComposite = null;
     /**
      * The text widget for the channel name
      */
@@ -84,10 +80,6 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
      * The read timer interval of the channel.
      */
     private Text fReadTimerText = null;
-    /**
-     * Group composite for domain selection.
-     */
-    private Group fDomainGroup = null;
     /**
      * Radio button for selecting kernel domain.
      */
@@ -191,40 +183,40 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
     protected Control createDialogArea(Composite parent) {
 
         // Main dialog panel
-        fDialogComposite = new Composite(parent, SWT.NONE);
+        Composite dialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(3, true);
-        fDialogComposite.setLayout(layout);
+        dialogComposite.setLayout(layout);
 
-        Label channelNameLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label channelNameLabel = new Label(dialogComposite, SWT.RIGHT);
         channelNameLabel.setText(Messages.TraceControl_EnableChannelNameLabel);
-        fChannelNameText = new Text(fDialogComposite, SWT.NONE);
+        fChannelNameText = new Text(dialogComposite, SWT.NONE);
         fChannelNameText.setToolTipText(Messages.TraceControl_EnableChannelNameTooltip);
 
-        Label subBufferSizeLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label subBufferSizeLabel = new Label(dialogComposite, SWT.RIGHT);
         subBufferSizeLabel.setText(Messages.TraceControl_SubBufferSizePropertyName);
-        fSubBufferSizeText = new Text(fDialogComposite, SWT.NONE);
+        fSubBufferSizeText = new Text(dialogComposite, SWT.NONE);
         fSubBufferSizeText.setToolTipText(Messages.TraceControl_EnableChannelSubBufferSizeTooltip);
         fSubBufferSizeText.addVerifyListener(fVerifyListener);
 
-        Label numSubBufferLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label numSubBufferLabel = new Label(dialogComposite, SWT.RIGHT);
         numSubBufferLabel.setText(Messages.TraceControl_NbSubBuffersPropertyName);
-        fNumberOfSubBuffersText = new Text(fDialogComposite, SWT.NONE);
+        fNumberOfSubBuffersText = new Text(dialogComposite, SWT.NONE);
         fNumberOfSubBuffersText.setToolTipText(Messages.TraceControl_EnableChannelNbSubBuffersTooltip);
         fNumberOfSubBuffersText.addVerifyListener(fVerifyListener);
 
-        Label switchTimerLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label switchTimerLabel = new Label(dialogComposite, SWT.RIGHT);
         switchTimerLabel.setText(Messages.TraceControl_SwitchTimerPropertyName);
-        fSwitchTimerText = new Text(fDialogComposite, SWT.NONE);
+        fSwitchTimerText = new Text(dialogComposite, SWT.NONE);
         fSwitchTimerText.setToolTipText(Messages.TraceControl_EnableChannelSwitchTimerTooltip);
         fSwitchTimerText.addVerifyListener(fVerifyListener);
 
-        Label readTimerLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label readTimerLabel = new Label(dialogComposite, SWT.RIGHT);
         readTimerLabel.setText(Messages.TraceControl_ReadTimerPropertyName);
-        fReadTimerText = new Text(fDialogComposite, SWT.NONE);
+        fReadTimerText = new Text(dialogComposite, SWT.NONE);
         fReadTimerText.setToolTipText(Messages.TraceControl_EnableChannelReadTimerTooltip);
         fReadTimerText.addVerifyListener(fVerifyListener);
 
-        Group discardModeGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+        Group discardModeGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
         discardModeGroup.setText(Messages.TraceControl_EnableChannelDiscardModeGroupName);
         layout = new GridLayout(2, true);
         discardModeGroup.setLayout(layout);
@@ -239,15 +231,15 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
         fOverwriteModeButton.setToolTipText(Messages.TraceControl_EnableChannelOverwriteModeTooltip);
         fOverwriteModeButton.setSelection(false);
 
-        fDomainGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
-        fDomainGroup.setText(Messages.TraceControl_DomainDisplayName);
+        Group domainGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+        domainGroup.setText(Messages.TraceControl_DomainDisplayName);
         layout = new GridLayout(2, true);
-        fDomainGroup.setLayout(layout);
+        domainGroup.setLayout(layout);
 
-        fKernelButton = new Button(fDomainGroup, SWT.RADIO);
+        fKernelButton = new Button(domainGroup, SWT.RADIO);
         fKernelButton.setText(Messages.TraceControl_KernelDomainDisplayName);
         fKernelButton.setSelection(fIsKernel);
-        fUstButton = new Button(fDomainGroup, SWT.RADIO);
+        fUstButton = new Button(domainGroup, SWT.RADIO);
         fUstButton.setText(Messages.TraceControl_UstDisplayName);
         fUstButton.setSelection(!fIsKernel);
 
@@ -265,7 +257,7 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
         fOverwriteModeButton.setLayoutData(data);
 
         data = new GridData(GridData.FILL, GridData.CENTER, false, false, 3, 1);
-        fDomainGroup.setLayoutData(data);
+        domainGroup.setLayoutData(data);
 
         data = new GridData(SWT.BEGINNING, SWT.BEGINNING, true, true);
         fKernelButton.setLayoutData(data);
@@ -283,7 +275,7 @@ public class EnableChannelDialog extends Dialog implements IEnableChannelDialog
 
         setDefaults();
 
-        return fDialogComposite;
+        return dialogComposite;
     }
 
     @Override
index e71ce19ab3bf58a9aa79525d45fb56299e13abbc..28ebd7fb4ca70cb00dc9f543a936ddf0009fc999 100644 (file)
@@ -55,18 +55,6 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
-    /**
-     * The dialog composite.
-     */
-    private Composite fDialogComposite = null;
-    /**
-     * The Group for the session combo box.
-     */
-    private Group fSessionsGroup = null;
-    /**
-     * The Group for the channel combo box.
-     */
-    private Group fChannelsGroup = null;
     /**
      * The session combo box.
      */
@@ -160,19 +148,19 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
     protected Control createDialogArea(Composite parent) {
 
         // Main dialog panel
-        fDialogComposite = new Composite(parent, SWT.NONE);
+        Composite dialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(1, true);
-        fDialogComposite.setLayout(layout);
-        fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+        dialogComposite.setLayout(layout);
+        dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
 
-        fSessionsGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
-        fSessionsGroup.setText(Messages.TraceControl_EnableEventsSessionGroupName);
+        Group sessionsGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+        sessionsGroup.setText(Messages.TraceControl_EnableEventsSessionGroupName);
         layout = new GridLayout(1, true);
-        fSessionsGroup.setLayout(layout);
+        sessionsGroup.setLayout(layout);
         GridData data = new GridData(GridData.FILL_HORIZONTAL);
-        fSessionsGroup.setLayoutData(data);
+        sessionsGroup.setLayoutData(data);
 
-        fSessionsCombo = new CCombo(fSessionsGroup, SWT.READ_ONLY);
+        fSessionsCombo = new CCombo(sessionsGroup, SWT.READ_ONLY);
         fSessionsCombo.setToolTipText(Messages.TraceControl_EnableEventsSessionsTooltip);
         fSessionsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
 
@@ -184,14 +172,14 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
         fSessionsCombo.setItems(items);
         fSessionsCombo.setEnabled(fSessions.length > 0);
 
-        fChannelsGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
-        fChannelsGroup.setText(Messages.TraceControl_EnableEventsChannelGroupName);
+        Group channelsGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+        channelsGroup.setText(Messages.TraceControl_EnableEventsChannelGroupName);
         layout = new GridLayout(1, true);
-        fChannelsGroup.setLayout(layout);
+        channelsGroup.setLayout(layout);
         data = new GridData(GridData.FILL_HORIZONTAL);
-        fChannelsGroup.setLayoutData(data);
+        channelsGroup.setLayoutData(data);
 
-        fChannelsCombo = new CCombo(fChannelsGroup, SWT.READ_ONLY);
+        fChannelsCombo = new CCombo(channelsGroup, SWT.READ_ONLY);
         fChannelsCombo.setToolTipText(Messages.TraceControl_EnableEventsChannelsTooltip);
         fChannelsCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
         fChannelsCombo.setEnabled(false);
@@ -236,7 +224,7 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
 
         // take first session to test whether events filtering is supported or not
         if (fSessions[0].isEventFilteringSupported() && !fIsKernel) {
-            Group filterMainGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+            Group filterMainGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
             filterMainGroup.setText(Messages.TraceControl_EnableEventsFilterGroupName);
             layout = new GridLayout(2, false);
             filterMainGroup.setLayout(layout);
@@ -251,7 +239,7 @@ public class GetEventInfoDialog extends Dialog implements IGetEventInfoDialog {
 
         getShell().setMinimumSize(new Point(300, 200));
 
-        return fDialogComposite;
+        return dialogComposite;
     }
 
     @Override
index 2f53cc2e94b56fe400a531355015681f775f4304..df24ddcea501c42d806ddc6dd04532b35e6cf7e3 100644 (file)
@@ -49,10 +49,6 @@ public class ImportConfirmationDialog extends Dialog implements IImportConfirmat
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
-    /**
-     * The dialog composite.
-     */
-    private Composite fDialogComposite = null;
     /**
      * The radio button for selecting the overwrite action
      */
@@ -124,15 +120,15 @@ public class ImportConfirmationDialog extends Dialog implements IImportConfirmat
     protected Control createDialogArea(Composite parent) {
 
         // Main dialog panel
-        fDialogComposite = new Composite(parent, SWT.NONE);
+       Composite dialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(1, true);
-        fDialogComposite.setLayout(layout);
-        fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+        dialogComposite.setLayout(layout);
+        dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
 
-        Label sessionNameLabel = new Label(fDialogComposite, SWT.RIGHT);
+        Label sessionNameLabel = new Label(dialogComposite, SWT.RIGHT);
         sessionNameLabel.setText(Messages.TraceControl_ImportDialogTraceAlreadyExistError + ": " + fTraceName); //$NON-NLS-1$
 
-        fOverwriteButton = new Button(fDialogComposite, SWT.RADIO);
+        fOverwriteButton = new Button(dialogComposite, SWT.RADIO);
         fOverwriteButton.setText(Messages.TraceControl_ImportDialogConfirmationOverwriteLabel);
 
         fOverwriteButton.addSelectionListener(new SelectionAdapter() {
@@ -143,7 +139,7 @@ public class ImportConfirmationDialog extends Dialog implements IImportConfirmat
             }
         });
 
-        fRenameButton = new Button(fDialogComposite, SWT.RADIO);
+        fRenameButton = new Button(dialogComposite, SWT.RADIO);
         fRenameButton.setText(Messages.TraceControl_ImportDialogConfirmationRenameLabel);
 
         fRenameButton.addSelectionListener(new SelectionAdapter() {
@@ -153,7 +149,7 @@ public class ImportConfirmationDialog extends Dialog implements IImportConfirmat
             }
         });
 
-        fNewTraceNameText = new Text(fDialogComposite, SWT.NONE);
+        fNewTraceNameText = new Text(dialogComposite, SWT.NONE);
         fNewTraceNameText.setToolTipText(Messages.TraceControl_ImportDialogConfirmationNewNameLabel);
         fNewTraceNameText.setText(fTraceName);
 
@@ -169,7 +165,7 @@ public class ImportConfirmationDialog extends Dialog implements IImportConfirmat
 
         getShell().setMinimumSize(new Point(300, 150));
 
-        return fDialogComposite;
+        return dialogComposite;
     }
 
     @Override
index e413ec4b06ac4b2db4c2e5e7aa67d436081d7c84..7afd124f3d3ce8fc7295feeb0f44794338aa097d 100644 (file)
@@ -92,10 +92,6 @@ public class ImportDialog extends Dialog implements IImportDialog {
      * The overwrite button
      */
     private Button fOverwriteButton;
-    /**
-     * The button to open import wizard for import locally.
-     */
-    private Button fImportLocallyButton;
     /**
      * List of available LTTng 2.0 projects
      */
@@ -189,9 +185,9 @@ public class ImportDialog extends Dialog implements IImportDialog {
     @Override
     protected void createButtonsForButtonBar(Composite parent) {
         createButton(parent, IDialogConstants.CANCEL_ID, "&Cancel", true); //$NON-NLS-1$
-        fImportLocallyButton = createButton(parent, IDialogConstants.OK_ID, "&Ok", true); //$NON-NLS-1$
+        Button importLocallyButton = createButton(parent, IDialogConstants.OK_ID, "&Ok", true); //$NON-NLS-1$
         if (fSession.isStreamedTrace()) {
-            fImportLocallyButton.setText("&Next..."); //$NON-NLS-1$
+            importLocallyButton.setText("&Next..."); //$NON-NLS-1$
         }
     }
 
index 5eec5a93d5377823182515a51bcef1c92c735810..6b4404727b482610ac9d55b35ee09151147108fa 100644 (file)
@@ -58,18 +58,6 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
     // ------------------------------------------------------------------------
     // Attributes
     // ------------------------------------------------------------------------
-    /**
-     * The dialog composite.
-     */
-    private Composite fDialogComposite = null;
-    /**
-     * The Group for the host combo box.
-     */
-    private Group fComboGroup = null;
-    /**
-     * The Group for the text input.
-     */
-    private Group fTextGroup = null;
     /**
      * The host combo box.
      */
@@ -176,20 +164,20 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
     protected Control createDialogArea(Composite parent) {
 
         // Main dialog panel
-        fDialogComposite = new Composite(parent, SWT.NONE);
+        Composite dialogComposite = new Composite(parent, SWT.NONE);
         GridLayout layout = new GridLayout(1, true);
-        fDialogComposite.setLayout(layout);
-        fDialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
+        dialogComposite.setLayout(layout);
+        dialogComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
 
         // Existing connections group
-        fComboGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
-        fComboGroup.setText(Messages.TraceControl_NewNodeExistingConnectionGroupName);
+        Group comboGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
+        comboGroup.setText(Messages.TraceControl_NewNodeExistingConnectionGroupName);
         layout = new GridLayout(2, true);
-        fComboGroup.setLayout(layout);
+        comboGroup.setLayout(layout);
         GridData data = new GridData(GridData.FILL_HORIZONTAL);
-        fComboGroup.setLayoutData(data);
+        comboGroup.setLayoutData(data);
 
-        fExistingHostsCombo = new CCombo(fComboGroup, SWT.READ_ONLY);
+        fExistingHostsCombo = new CCombo(comboGroup, SWT.READ_ONLY);
         fExistingHostsCombo.setToolTipText(Messages.TraceControl_NewNodeComboToolTip);
         fExistingHostsCombo.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 2, 1));
 
@@ -202,32 +190,32 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
         fExistingHostsCombo.setEnabled(fExistingHosts.length > 0);
 
         // Node information grop
-        fTextGroup = new Group(fDialogComposite, SWT.SHADOW_NONE);
+        Group textGroup = new Group(dialogComposite, SWT.SHADOW_NONE);
         layout = new GridLayout(3, true);
-        fTextGroup.setLayout(layout);
+        textGroup.setLayout(layout);
         data = new GridData(GridData.FILL_HORIZONTAL);
-        fTextGroup.setLayoutData(data);
+        textGroup.setLayoutData(data);
 
-        fButton = new Button(fTextGroup, SWT.CHECK);
+        fButton = new Button(textGroup, SWT.CHECK);
         fButton.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false, 3, 1));
         fButton.setText(Messages.TraceControl_NewNodeEditButtonName);
         fButton.setEnabled(fExistingHosts.length > 0);
 
-        Label connectionNameLabel = new Label(fTextGroup, SWT.RIGHT);
+        Label connectionNameLabel = new Label(textGroup, SWT.RIGHT);
         connectionNameLabel.setText(Messages.TraceControl_NewNodeConnectionNameLabel);
-        fConnectionNameText = new Text(fTextGroup, SWT.NONE);
+        fConnectionNameText = new Text(textGroup, SWT.NONE);
         fConnectionNameText.setToolTipText(Messages.TraceControl_NewNodeConnectionNameTooltip);
         fConnectionNameText.setEnabled(fExistingHosts.length == 0);
 
-        Label hostNameLabel = new Label(fTextGroup, SWT.RIGHT);
+        Label hostNameLabel = new Label(textGroup, SWT.RIGHT);
         hostNameLabel.setText(Messages.TraceControl_NewNodeHostNameLabel);
-        fHostNameText = new Text(fTextGroup, SWT.NONE);
+        fHostNameText = new Text(textGroup, SWT.NONE);
         fHostNameText.setToolTipText(Messages.TraceControl_NewNodeHostNameTooltip);
         fHostNameText.setEnabled(fExistingHosts.length == 0);
 
-        Label portLabel = new Label(fTextGroup, SWT.RIGHT);
+        Label portLabel = new Label(textGroup, SWT.RIGHT);
         portLabel.setText(Messages.TraceControl_NewNodePortLabel);
-        fPortText = new Text(fTextGroup, SWT.NONE);
+        fPortText = new Text(textGroup, SWT.NONE);
         fPortText.setToolTipText(Messages.TraceControl_NewNodePortTooltip);
         fPortText.setEnabled(fExistingHosts.length == 0);
         fPortText.addVerifyListener(new VerifyListener() {
@@ -295,7 +283,7 @@ public class NewConnectionDialog extends Dialog implements INewConnectionDialog
 
         fHostNameText.setText(""); //$NON-NLS-1$
 
-        return fDialogComposite;
+        return dialogComposite;
     }
 
     @Override
index d871c78ffcad8370d7938bac98a09e27e2ed6eea..9fc1abb5cbda8e677c8c08eec8fe40b96fcdc1e6 100644 (file)
@@ -95,7 +95,7 @@ public final class TraceControlDialogFactory {
     /**
      * @return TraceControlDialogFactory instance
      */
-    public synchronized static TraceControlDialogFactory getInstance() {
+    public static synchronized TraceControlDialogFactory getInstance() {
         if (fInstance == null) {
             fInstance = new TraceControlDialogFactory();
         }
index 35a63dcd8803f8e775568dfd7303310a9b101a94..0696653c09f2dfe438312530beb00e0fa4c30343 100644 (file)
@@ -41,7 +41,7 @@ import org.eclipse.ui.PlatformUI;
  *
  * @author Bernd Hufmann
  */
-abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
+public abstract class ChangeChannelStateHandler extends BaseControlViewHandler {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -57,7 +57,7 @@ abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
     /**
      * @return the new state to set
      */
-    abstract protected TraceEnablement getNewState();
+    protected abstract TraceEnablement getNewState();
 
     // ------------------------------------------------------------------------
     // Operations
@@ -69,7 +69,7 @@ abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
      * @param monitor - a progress monitor
      * @throws ExecutionException If the command fails
      */
-    abstract protected void changeState(TraceDomainComponent domain, List<String> channelNames, IProgressMonitor monitor) throws ExecutionException;
+    protected abstract void changeState(TraceDomainComponent domain, List<String> channelNames, IProgressMonitor monitor) throws ExecutionException;
 
     @Override
     public Object execute(ExecutionEvent event) throws ExecutionException {
@@ -230,23 +230,23 @@ abstract public class ChangeChannelStateHandler extends BaseControlViewHandler {
     /**
      *  Class containing parameter for the command execution.
      */
-    static protected class Parameter {
+    protected static class Parameter {
         /**
          * Kernel domain component reference.
          */
-        final protected TraceDomainComponent fKernelDomain;
+        protected final TraceDomainComponent fKernelDomain;
         /**
          * UST domain component reference.
          */
-        final protected TraceDomainComponent fUstDomain;
+        protected final TraceDomainComponent fUstDomain;
         /**
          * The list of kernel channel components the command is to be executed on.
          */
-        final protected List<TraceChannelComponent> fKernelChannels;
+        protected final List<TraceChannelComponent> fKernelChannels;
         /**
          * The list of UST channel components the command is to be executed on.
          */
-        final protected List<TraceChannelComponent> fUstChannels;
+        protected final List<TraceChannelComponent> fUstChannels;
 
         /**
          * Constructor
index 9cac43fdd6643069305c0f963596720d39ba2d00..74d846fe815f771df88e4660668f2ba09b2694ad 100644 (file)
@@ -39,7 +39,7 @@ import org.eclipse.ui.PlatformUI;
  *
  * @author Bernd Hufmann
  */
-abstract public class ChangeSessionStateHandler extends BaseControlViewHandler {
+public abstract class ChangeSessionStateHandler extends BaseControlViewHandler {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -56,7 +56,7 @@ abstract public class ChangeSessionStateHandler extends BaseControlViewHandler {
     /**
      * @return new required state.
      */
-    abstract TraceSessionState getNewState();
+    public abstract TraceSessionState getNewState();
 
     // ------------------------------------------------------------------------
     // Operations
index ec0a4ac26bbe8cba26b956ca5f282628ee0a59ba..ad62843fc68ddcb4061ebc78ca6e9d8a2468611d 100644 (file)
@@ -24,7 +24,7 @@ import org.eclipse.linuxtools.internal.lttng2.ui.Activator;
  *
  * @author Bernd Hufmann
  */
-public class ControlCommandLogger {
+final public class ControlCommandLogger {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -38,7 +38,6 @@ public class ControlCommandLogger {
     // Constructor
     // ------------------------------------------------------------------------
     private ControlCommandLogger() {
-
     }
 
     // ------------------------------------------------------------------------
index 295a5cdf877a88d0e3692e29ebd55d5632375227..2f9646b127a182c8696af753cee3acbd8d5400de 100644 (file)
@@ -34,7 +34,7 @@ public interface IRemoteSystemProxy {
     /**
      * Invalid port number for IP based connections.
      */
-    public final static int INVALID_PORT_NUMBER = -1;
+    static final int INVALID_PORT_NUMBER = -1;
 
     // ------------------------------------------------------------------------
     // Operations
index cecee4fd6d1457012e1c369f617a179388ba2555..96c41965601ad39a6d1327a4a2a970a292bd8c0b 100644 (file)
@@ -36,7 +36,7 @@ public interface ILttngControlService {
     /**
      * @return the version string.
      */
-    public String getVersion();
+    String getVersion();
 
     /**
      * Checks if given version is supported by this ILTTngControlService implementation.
@@ -44,7 +44,7 @@ public interface ILttngControlService {
      * @param version The version to check
      * @return <code>true</code> if version is supported else <code>false</code>
      */
-    public boolean isVersionSupported(String version);
+    boolean isVersionSupported(String version);
 
     /**
      * Retrieves the existing sessions names from the node.
@@ -55,7 +55,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public String[] getSessionNames(IProgressMonitor monitor)
+    String[] getSessionNames(IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -69,7 +69,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public ISessionInfo getSession(String sessionName, IProgressMonitor monitor)
+    ISessionInfo getSession(String sessionName, IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -81,7 +81,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor)
+    List<IBaseEventInfo> getKernelProvider(IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -102,7 +102,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor)
+    List<IUstProviderInfo> getUstProvider(IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -118,7 +118,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public ISessionInfo createSession(String sessionName, String sessionPath, IProgressMonitor monitor) throws ExecutionException;
+    ISessionInfo createSession(String sessionName, String sessionPath, IProgressMonitor monitor) throws ExecutionException;
 
     /**
      * Creates a session with given session name and location.
@@ -138,7 +138,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public ISessionInfo createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl, IProgressMonitor monitor) throws ExecutionException;
+    ISessionInfo createSession(String sessionName, String networkUrl, String controlUrl, String dataUrl, IProgressMonitor monitor) throws ExecutionException;
 
     /**
      * Destroys a session with given session name.
@@ -150,7 +150,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void destroySession(String sessionName, IProgressMonitor monitor)
+    void destroySession(String sessionName, IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -163,7 +163,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void startSession(String sessionName, IProgressMonitor monitor)
+    void startSession(String sessionName, IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -176,7 +176,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void stopSession(String sessionName, IProgressMonitor monitor)
+    void stopSession(String sessionName, IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -198,7 +198,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void enableChannels(String sessionName, List<String> channelNames,
+    void enableChannels(String sessionName, List<String> channelNames,
             boolean isKernel, IChannelInfo info, IProgressMonitor monitor)
             throws ExecutionException;
 
@@ -218,7 +218,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void disableChannels(String sessionName, List<String> channelNames,
+    void disableChannels(String sessionName, List<String> channelNames,
             boolean isKernel, IProgressMonitor monitor)
             throws ExecutionException;
 
@@ -241,7 +241,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void enableEvents(String sessionName, String channelName,
+    void enableEvents(String sessionName, String channelName,
             List<String> eventNames, boolean isKernel, String filterExpression,
             IProgressMonitor monitor)
             throws ExecutionException;
@@ -259,7 +259,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void enableSyscalls(String sessionName, String channelName,
+    void enableSyscalls(String sessionName, String channelName,
             IProgressMonitor monitor) throws ExecutionException;
 
     /**
@@ -280,7 +280,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void enableProbe(String sessionName, String channelName,
+    void enableProbe(String sessionName, String channelName,
             String eventName, boolean isFunction, String probe,
             IProgressMonitor monitor) throws ExecutionException;
 
@@ -304,7 +304,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void enableLogLevel(String sessionName, String channelName,
+    void enableLogLevel(String sessionName, String channelName,
             String eventName, LogLevelType logLevelType, TraceLogLevel level,
             String filterExpression,
             IProgressMonitor monitor) throws ExecutionException;
@@ -325,7 +325,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void disableEvent(String sessionName, String channelName,
+    void disableEvent(String sessionName, String channelName,
             List<String> eventNames, boolean isKernel, IProgressMonitor monitor)
             throws ExecutionException;
 
@@ -338,7 +338,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public List<String> getContextList(IProgressMonitor monitor)
+    List<String> getContextList(IProgressMonitor monitor)
             throws ExecutionException;
 
     /**
@@ -359,7 +359,7 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void addContexts(String sessionName, String channelName,
+    void addContexts(String sessionName, String channelName,
             String eventName, boolean isKernel, List<String> contexts,
             IProgressMonitor monitor) throws ExecutionException;
 
@@ -373,6 +373,6 @@ public interface ILttngControlService {
      * @throws ExecutionException
      *             If the command fails
      */
-    public void calibrate(boolean isKernel, IProgressMonitor monitor)
+    void calibrate(boolean isKernel, IProgressMonitor monitor)
             throws ExecutionException;
 }
index d660dcfdbbff742c2168f9c317bed84cbf8a9840..2eb8fba79d46e6db36f8c4c9155ac90afc1d71bc 100644 (file)
@@ -926,7 +926,7 @@ public class LTTngControlService implements ILttngControlService {
         ret.append(result.getResult());
         ret.append("\n"); //$NON-NLS-1$
         for (int i = 0; i < output.length; i++) {
-            ret.append(output[i] + "\n"); //$NON-NLS-1$
+            ret.append(output[i]).append("\n"); //$NON-NLS-1$
         }
         return ret.toString();
     }
index ee54d7b6df57e93bb41511f97867dfa1be3f2cbf..bc3216fa2d17053d10a486fcf7ca2702773bd2b2 100644 (file)
@@ -21,7 +21,7 @@ import java.util.regex.Pattern;
  *
  * @author Bernd Hufmann
  */
-interface LTTngControlServiceConstants {
+public interface LTTngControlServiceConstants {
 
     // ------------------------------------------------------------------------
     // Version constants
@@ -29,7 +29,7 @@ interface LTTngControlServiceConstants {
     /**
      * Pattern to match the LTTng toolchain version 2.x.y.
      */
-    public static final Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
+    static final Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
 
     // ------------------------------------------------------------------------
     // Command constants
@@ -37,63 +37,63 @@ interface LTTngControlServiceConstants {
     /**
      * The lttng tools command.
      */
-    public static final String CONTROL_COMMAND = "lttng"; //$NON-NLS-1$
+    static final String CONTROL_COMMAND = "lttng"; //$NON-NLS-1$
     /**
      * Command: lttng version.
      */
-    public static final String COMMAND_VERSION = " version "; //$NON-NLS-1$
+    static final String COMMAND_VERSION = " version "; //$NON-NLS-1$
     /**
      * Command: lttng list.
      */
-    public static final String COMMAND_LIST = " list "; //$NON-NLS-1$
+    static final String COMMAND_LIST = " list "; //$NON-NLS-1$
     /**
      * Command to list kernel tracer information.
      */
-    public static final String COMMAND_LIST_KERNEL = COMMAND_LIST + "-k"; //$NON-NLS-1$
+    static final String COMMAND_LIST_KERNEL = COMMAND_LIST + "-k"; //$NON-NLS-1$
     /**
      * Command to list user space trace information.
      */
-    public static final String COMMAND_LIST_UST = COMMAND_LIST + "-u";  //$NON-NLS-1$
+    static final String COMMAND_LIST_UST = COMMAND_LIST + "-u";  //$NON-NLS-1$
     /**
      * Command to create a session.
      */
-    public static final String COMMAND_CREATE_SESSION = " create "; //$NON-NLS-1$
+    static final String COMMAND_CREATE_SESSION = " create "; //$NON-NLS-1$
     /**
      * Command to destroy a session.
      */
-    public static final String COMMAND_DESTROY_SESSION = " destroy "; //$NON-NLS-1$
+    static final String COMMAND_DESTROY_SESSION = " destroy "; //$NON-NLS-1$
     /**
      * Command to destroy a session.
      */
-    public static final String COMMAND_START_SESSION = " start "; //$NON-NLS-1$
+    static final String COMMAND_START_SESSION = " start "; //$NON-NLS-1$
     /**
      * Command to destroy a session.
      */
-    public static final String COMMAND_STOP_SESSION = " stop "; //$NON-NLS-1$
+    static final String COMMAND_STOP_SESSION = " stop "; //$NON-NLS-1$
     /**
      * Command to enable a channel.
      */
-    public static final String COMMAND_ENABLE_CHANNEL = " enable-channel "; //$NON-NLS-1$
+    static final String COMMAND_ENABLE_CHANNEL = " enable-channel "; //$NON-NLS-1$
     /**
      * Command to disable a channel.
      */
-    public static final String COMMAND_DISABLE_CHANNEL = " disable-channel "; //$NON-NLS-1$
+    static final String COMMAND_DISABLE_CHANNEL = " disable-channel "; //$NON-NLS-1$
     /**
      * Command to enable a event.
      */
-    public static final String COMMAND_ENABLE_EVENT = " enable-event "; //$NON-NLS-1$
+    static final String COMMAND_ENABLE_EVENT = " enable-event "; //$NON-NLS-1$
     /**
      * Command to disable a event.
      */
-    public static final String COMMAND_DISABLE_EVENT = " disable-event "; //$NON-NLS-1$
+    static final String COMMAND_DISABLE_EVENT = " disable-event "; //$NON-NLS-1$
     /**
      * Command to add a context to channels and/or events
      */
-    public static final String COMMAND_ADD_CONTEXT = " add-context "; //$NON-NLS-1$
+    static final String COMMAND_ADD_CONTEXT = " add-context "; //$NON-NLS-1$
     /**
      * Command to execute calibrate command to quantify LTTng overhead
      */
-    public static final String COMMAND_CALIBRATE = " calibrate "; //$NON-NLS-1$
+    static final String COMMAND_CALIBRATE = " calibrate "; //$NON-NLS-1$
 
     // ------------------------------------------------------------------------
     // Command line options constants
@@ -101,119 +101,119 @@ interface LTTngControlServiceConstants {
     /**
      * Command line option to add tracing group of user.
      */
-    public static final String OPTION_TRACING_GROUP = " -g ";  //$NON-NLS-1$
+    static final String OPTION_TRACING_GROUP = " -g ";  //$NON-NLS-1$
     /**
      * Command line option for verbose output.
      */
-    public static final String OPTION_VERBOSE = " -v ";  //$NON-NLS-1$
+    static final String OPTION_VERBOSE = " -v ";  //$NON-NLS-1$
     /**
      * Command line option for verbose output.
      */
-    public static final String OPTION_VERY_VERBOSE = " -vv ";  //$NON-NLS-1$
+    static final String OPTION_VERY_VERBOSE = " -vv ";  //$NON-NLS-1$
     /**
      * Command line option for verbose output.
      */
-    public static final String OPTION_VERY_VERY_VERBOSE = " -vvv ";  //$NON-NLS-1$
+    static final String OPTION_VERY_VERY_VERBOSE = " -vvv ";  //$NON-NLS-1$
     /**
      * Command line option for output path.
      */
-    public static final String OPTION_OUTPUT_PATH = " -o "; //$NON-NLS-1$
+    static final String OPTION_OUTPUT_PATH = " -o "; //$NON-NLS-1$
     /**
      * Command line option for kernel tracer.
      */
-    public static final String OPTION_KERNEL = " -k "; //$NON-NLS-1$
+    static final String OPTION_KERNEL = " -k "; //$NON-NLS-1$
     /**
      * Command line option for UST tracer.
      */
-    public static final String OPTION_UST = " -u "; //$NON-NLS-1$
+    static final String OPTION_UST = " -u "; //$NON-NLS-1$
     /**
      * Command line option for specifying a session.
      */
-    public static final String OPTION_SESSION = " -s ";  //$NON-NLS-1$
+    static final String OPTION_SESSION = " -s ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a channel.
      */
-    public static final String OPTION_CHANNEL = " -c ";  //$NON-NLS-1$
+    static final String OPTION_CHANNEL = " -c ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a event.
      */
-    public static final String OPTION_EVENT = " -e ";  //$NON-NLS-1$
+    static final String OPTION_EVENT = " -e ";  //$NON-NLS-1$
     /**
      * Command line option for specifying all events.
      */
-    public static final String OPTION_ALL = " -a ";  //$NON-NLS-1$
+    static final String OPTION_ALL = " -a ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a context.
      */
-    public static final String OPTION_CONTEXT_TYPE = " -t ";  //$NON-NLS-1$
+    static final String OPTION_CONTEXT_TYPE = " -t ";  //$NON-NLS-1$
     /**
      * Command line option for specifying tracepoint events.
      */
-    public static final String OPTION_TRACEPOINT = " --tracepoint ";  //$NON-NLS-1$
+    static final String OPTION_TRACEPOINT = " --tracepoint ";  //$NON-NLS-1$
     /**
      * Command line option for specifying syscall events.
      */
-    public static final String OPTION_SYSCALL = " --syscall ";  //$NON-NLS-1$
+    static final String OPTION_SYSCALL = " --syscall ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a dynamic probe.
      */
-    public static final String OPTION_PROBE = " --probe ";  //$NON-NLS-1$
+    static final String OPTION_PROBE = " --probe ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a dynamic function entry/return probe.
      */
-    public static final String OPTION_FUNCTION_PROBE = " --function ";  //$NON-NLS-1$
+    static final String OPTION_FUNCTION_PROBE = " --function ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a log level range.
      */
-    public static final String OPTION_LOGLEVEL = " --loglevel ";  //$NON-NLS-1$
+    static final String OPTION_LOGLEVEL = " --loglevel ";  //$NON-NLS-1$
     /**
      * Command line option for specifying a specific log level.
      */
-    public static final String OPTION_LOGLEVEL_ONLY = " --loglevel-only ";  //$NON-NLS-1$
+    static final String OPTION_LOGLEVEL_ONLY = " --loglevel-only ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's overwrite mode.
      */
-    public static final String OPTION_OVERWRITE = " --overwrite ";  //$NON-NLS-1$
+    static final String OPTION_OVERWRITE = " --overwrite ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's number of sub buffers.
      */
-    public static final String OPTION_NUM_SUB_BUFFERS = " --num-subbuf ";  //$NON-NLS-1$
+    static final String OPTION_NUM_SUB_BUFFERS = " --num-subbuf ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's sub buffer size.
      */
-    public static final String OPTION_SUB_BUFFER_SIZE = " --subbuf-size ";  //$NON-NLS-1$
+    static final String OPTION_SUB_BUFFER_SIZE = " --subbuf-size ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's switch timer interval.
      */
-    public static final String OPTION_SWITCH_TIMER = " --switch-timer ";  //$NON-NLS-1$
+    static final String OPTION_SWITCH_TIMER = " --switch-timer ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's read timer interval.
      */
-    public static final String OPTION_READ_TIMER = " --read-timer ";  //$NON-NLS-1$
+    static final String OPTION_READ_TIMER = " --read-timer ";  //$NON-NLS-1$
     /**
      * Command line option for printing the help of a specif command
      */
-    public static final String OPTION_HELP = " -h ";  //$NON-NLS-1$
+    static final String OPTION_HELP = " -h ";  //$NON-NLS-1$
     /**
      * Command line option for listing the fields of UST tracepoints
      */
-    public static final String OPTION_FIELDS = " -f "; //$NON-NLS-1$
+    static final String OPTION_FIELDS = " -f "; //$NON-NLS-1$
     /**
      * Command line option for configuring event's filter
      */
-    public static final String OPTION_FILTER = " --filter "; //$NON-NLS-1$
+    static final String OPTION_FILTER = " --filter "; //$NON-NLS-1$
     /**
      * Command line option for configuring the streaming network URL (common for control and data channel).
      */
-    public static final String OPTION_NETWORK_URL = " -U "; //$NON-NLS-1$
+    static final String OPTION_NETWORK_URL = " -U "; //$NON-NLS-1$
     /**
      * Command line option for configuring the streaming control URL.
      */
-    public static final String OPTION_CONTROL_URL = " -C "; //$NON-NLS-1$
+    static final String OPTION_CONTROL_URL = " -C "; //$NON-NLS-1$
     /**
      * Command line option for configuring the streaming data URL.
      */
-    public static final String OPTION_DATA_URL = " -D "; //$NON-NLS-1$
+    static final String OPTION_DATA_URL = " -D "; //$NON-NLS-1$
 
     // ------------------------------------------------------------------------
     // Parsing constants
@@ -221,146 +221,146 @@ interface LTTngControlServiceConstants {
     /**
      * Pattern to match the version.
      */
-    public static final Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
+    static final Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
     /**
      * Pattern to match for error output
      */
-    public static final Pattern ERROR_PATTERN = Pattern.compile("\\s*Error\\:.*"); //$NON-NLS-1$
+    static final Pattern ERROR_PATTERN = Pattern.compile("\\s*Error\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for session information (lttng list)
      */
-    public static final Pattern SESSION_PATTERN = Pattern.compile("\\s+(\\d+)\\)\\s+(.*)\\s+\\((.*)\\)\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
+    static final Pattern SESSION_PATTERN = Pattern.compile("\\s+(\\d+)\\)\\s+(.*)\\s+\\((.*)\\)\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
     /**
      * Pattern to match for session information (lttng list <session>)
      */
-    public static final Pattern TRACE_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
+    static final Pattern TRACE_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
     /**
      * Pattern to match for session path information (lttng list <session>)
      */
-    public static final Pattern TRACE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(.*)"); //$NON-NLS-1$
+    static final Pattern TRACE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(.*)"); //$NON-NLS-1$
     /**
      * Pattern to match session path for network tracing (lttng list <session>)
      * Note: file for protocol is not considered as network trace since local consumer will be used.
      */
-    public static final Pattern TRACE_NETWORK_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(net|net6|tcp|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
+    static final Pattern TRACE_NETWORK_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(net|net6|tcp|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
     /**
      * Sub-pattern to pattern TRACE_NETWORK_PATH_PATTERN to match file protocol
      */
-    public static final Pattern TRACE_FILE_PROTOCOL_PATTERN = Pattern.compile("(file)\\:\\/\\/(.*)"); //$NON-NLS-1$
+    static final Pattern TRACE_FILE_PROTOCOL_PATTERN = Pattern.compile("(file)\\:\\/\\/(.*)"); //$NON-NLS-1$
     /**
      * Pattern to match for kernel domain information (lttng list <session>)
      */
-    public static final Pattern DOMAIN_KERNEL_PATTERN = Pattern.compile("=== Domain: Kernel ==="); //$NON-NLS-1$
+    static final Pattern DOMAIN_KERNEL_PATTERN = Pattern.compile("=== Domain: Kernel ==="); //$NON-NLS-1$
     /**
      * Pattern to match for ust domain information (lttng list <session>)
      */
-    public static final Pattern DOMAIN_UST_GLOBAL_PATTERN = Pattern.compile("=== Domain: UST global ==="); //$NON-NLS-1$
+    static final Pattern DOMAIN_UST_GLOBAL_PATTERN = Pattern.compile("=== Domain: UST global ==="); //$NON-NLS-1$
     /**
      * Pattern to match for matching warning about no kernel channel
      */
-    public static final Pattern DOMAIN_NO_KERNEL_CHANNEL_PATTERN = Pattern.compile("\\s*Warning\\:\\s+No kernel\\s+channel.*"); //$NON-NLS-1$
+    static final Pattern DOMAIN_NO_KERNEL_CHANNEL_PATTERN = Pattern.compile("\\s*Warning\\:\\s+No kernel\\s+channel.*"); //$NON-NLS-1$
     /**
      * Pattern to match for matching warning about no UST channel
      */
-    public static final Pattern DOMAIN_NO_UST_CHANNEL_PATTERN = Pattern.compile("\\s*Error\\:\\s+UST\\s+channel\\s+not\\s+found.*"); //$NON-NLS-1$
+    static final Pattern DOMAIN_NO_UST_CHANNEL_PATTERN = Pattern.compile("\\s*Error\\:\\s+UST\\s+channel\\s+not\\s+found.*"); //$NON-NLS-1$
     /**
      * Pattern to match for channels section (lttng list <session>)
      */
-    public static final Pattern CHANNELS_SECTION_PATTERN = Pattern.compile("\\s*Channels\\:"); //$NON-NLS-1$
+    static final Pattern CHANNELS_SECTION_PATTERN = Pattern.compile("\\s*Channels\\:"); //$NON-NLS-1$
     /**
      * Pattern to match for channel information (lttng list <session>)
      */
-    public static final Pattern CHANNEL_PATTERN = Pattern.compile("\\s*-\\s+(.*)\\:\\s+\\[(enabled|disabled)\\]"); //$NON-NLS-1$
+    static final Pattern CHANNEL_PATTERN = Pattern.compile("\\s*-\\s+(.*)\\:\\s+\\[(enabled|disabled)\\]"); //$NON-NLS-1$
     /**
      * Pattern to match for events section information (lttng list <session>)
      */
-    public static final Pattern EVENT_SECTION_PATTERN = Pattern.compile("\\s*Events\\:"); //$NON-NLS-1$
+    static final Pattern EVENT_SECTION_PATTERN = Pattern.compile("\\s*Events\\:"); //$NON-NLS-1$
     /**
      * Pattern to match for event information (lttng list <session>)
      */
-    public static final Pattern EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
+    static final Pattern EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
     /**
      * Pattern to match a wildcarded event information (lttng list <session>)
      */
-    public static final Pattern WILDCARD_EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
+    static final Pattern WILDCARD_EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
     /**
      * Pattern to match a probe address information (lttng list <session>)
      */
-    public static final Pattern PROBE_ADDRESS_PATTERN = Pattern.compile("\\s+(addr)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
+    static final Pattern PROBE_ADDRESS_PATTERN = Pattern.compile("\\s+(addr)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
     /**
      * Pattern to match a probe OFFSET information (lttng list <session>)
      */
-    public static final Pattern PROBE_OFFSET_PATTERN = Pattern.compile("\\s+(offset)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
+    static final Pattern PROBE_OFFSET_PATTERN = Pattern.compile("\\s+(offset)\\:\\s+(0x[0-9a-fA-F]{1,8})"); //$NON-NLS-1$
     /**
      * Pattern to match a probe SYMBOL information (lttng list <session>)
      */
-    public static final Pattern PROBE_SYMBOL_PATTERN = Pattern.compile("\\s+(symbol)\\:\\s+(.+)"); //$NON-NLS-1$
+    static final Pattern PROBE_SYMBOL_PATTERN = Pattern.compile("\\s+(symbol)\\:\\s+(.+)"); //$NON-NLS-1$
     /**
      * Pattern to match for channel (overwite mode) information (lttng list <session>)
      */
-    public static final Pattern OVERWRITE_MODE_ATTRIBUTE = Pattern.compile("\\s+overwrite\\s+mode\\:.*"); //$NON-NLS-1$
+    static final Pattern OVERWRITE_MODE_ATTRIBUTE = Pattern.compile("\\s+overwrite\\s+mode\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match indicating false for overwrite mode
      */
-    public static final String OVERWRITE_MODE_ATTRIBUTE_FALSE = "0"; //$NON-NLS-1$
+    static final String OVERWRITE_MODE_ATTRIBUTE_FALSE = "0"; //$NON-NLS-1$
     /**
      * Pattern to match for channel (sub-buffer size) information (lttng list <session>)
      */
-    public static final Pattern SUBBUFFER_SIZE_ATTRIBUTE = Pattern.compile("\\s+subbufers\\s+size\\:.*"); //$NON-NLS-1$
+    static final Pattern SUBBUFFER_SIZE_ATTRIBUTE = Pattern.compile("\\s+subbufers\\s+size\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for channel (number of sub-buffers) information (lttng list <session>)
      */
-    public static final Pattern NUM_SUBBUFFERS_ATTRIBUTE = Pattern.compile("\\s+number\\s+of\\s+subbufers\\:.*"); //$NON-NLS-1$
+    static final Pattern NUM_SUBBUFFERS_ATTRIBUTE = Pattern.compile("\\s+number\\s+of\\s+subbufers\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for channel (switch timer) information (lttng list <session>)
      */
-    public static final Pattern SWITCH_TIMER_ATTRIBUTE = Pattern.compile("\\s+switch\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
+    static final Pattern SWITCH_TIMER_ATTRIBUTE = Pattern.compile("\\s+switch\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for channel (read timer) information (lttng list <session>)
      */
-    public static final Pattern READ_TIMER_ATTRIBUTE = Pattern.compile("\\s+read\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
+    static final Pattern READ_TIMER_ATTRIBUTE = Pattern.compile("\\s+read\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for channel (output type) information (lttng list <session>)
      */
-    public static final Pattern OUTPUT_ATTRIBUTE = Pattern.compile("\\s+output\\:.*"); //$NON-NLS-1$
+    static final Pattern OUTPUT_ATTRIBUTE = Pattern.compile("\\s+output\\:.*"); //$NON-NLS-1$
     /**
      * Pattern to match for provider information (lttng list -k/-u)
      */
-    public static final Pattern PROVIDER_EVENT_PATTERN = Pattern.compile("\\s*(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)"); //$NON-NLS-1$
+    static final Pattern PROVIDER_EVENT_PATTERN = Pattern.compile("\\s*(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)"); //$NON-NLS-1$
     /**
      * Pattern to match event fields
      */
-    public static final Pattern EVENT_FIELD_PATTERN = Pattern.compile("\\s*(field:)\\s+(.*)\\s+\\((.*)\\)"); //$NON-NLS-1$
+    static final Pattern EVENT_FIELD_PATTERN = Pattern.compile("\\s*(field:)\\s+(.*)\\s+\\((.*)\\)"); //$NON-NLS-1$
     /**
      * Pattern to match for UST provider information (lttng list -u)
      */
-    public static final Pattern UST_PROVIDER_PATTERN = Pattern.compile("\\s*PID\\:\\s+(\\d+)\\s+-\\s+Name\\:\\s+(.*)"); //$NON-NLS-1$
+    static final Pattern UST_PROVIDER_PATTERN = Pattern.compile("\\s*PID\\:\\s+(\\d+)\\s+-\\s+Name\\:\\s+(.*)"); //$NON-NLS-1$
     /**
      * Pattern to match for session information (lttng create <session name>)
      */
-    public static final Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
+    static final Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
     /**
      * Pattern to match for session path information (lttng create <session name>)
      */
-    public static final Pattern CREATE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Traces\\s+will\\s+be\\s+written\\s+in\\s+(.*).*"); //$NON-NLS-1$
+    static final Pattern CREATE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Traces\\s+will\\s+be\\s+written\\s+in\\s+(.*).*"); //$NON-NLS-1$
     /**
      * Pattern to match for session command output for "session name not found".
      */
-    public static final Pattern SESSION_NOT_FOUND_ERROR_PATTERN = Pattern.compile("\\s*Error:\\s+Session\\s+name\\s+not\\s+found"); //$NON-NLS-1$
+    static final Pattern SESSION_NOT_FOUND_ERROR_PATTERN = Pattern.compile("\\s*Error:\\s+Session\\s+name\\s+not\\s+found"); //$NON-NLS-1$
     /**
      * Pattern to match introduction line of context list.
      */
-    public static final Pattern ADD_CONTEXT_HELP_CONTEXTS_INTRO = Pattern.compile("\\s*TYPE can\\s+be\\s+one\\s+of\\s+the\\s+strings\\s+below.*"); //$NON-NLS-1$
+    static final Pattern ADD_CONTEXT_HELP_CONTEXTS_INTRO = Pattern.compile("\\s*TYPE can\\s+be\\s+one\\s+of\\s+the\\s+strings\\s+below.*"); //$NON-NLS-1$
     /**
      * Pattern to match introduction line of context list.
      */
-    public static final Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
+    static final Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
     /**
      * Pattern to match error line if no kernel tracer is available or installed.
      */
-    public static final Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
+    static final Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
     /**
      * Pattern to match error line if no ust tracer is available or installed.
      */
-    public static final Pattern LIST_UST_NO_UST_PROVIDER_PATTERN = Pattern.compile(".*Unable\\s*to\\s*list\\s*UST\\s*event.*"); //$NON-NLS-1$;
+    static final Pattern LIST_UST_NO_UST_PROVIDER_PATTERN = Pattern.compile(".*Unable\\s*to\\s*list\\s*UST\\s*event.*"); //$NON-NLS-1$;
 }
This page took 0.053583 seconds and 5 git commands to generate.