lttng ui: Fix minor sonar warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / dialogs / TraceControlDialogFactory.java
index 8ef9e7c261c06292e760977ee44fa5eb0bd5a48d..d871c78ffcad8370d7938bac98a09e27e2ed6eea 100644 (file)
@@ -1,9 +1,28 @@
+/**********************************************************************
+ * 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;
 
-
-final public class TraceControlDialogFactory {
+/**
+ * <p>
+ * Factory for generating dialog boxes. It allows to overwrite the dialog implementation.
+ * Useful also for testing purposes.
+ * </p>
+ *
+ * @author Bernd Hufmann
+ *
+ */
+public final class TraceControlDialogFactory {
 
     // ------------------------------------------------------------------------
     // Members
@@ -18,42 +37,42 @@ final public class TraceControlDialogFactory {
      * The new connection dialog reference.
      */
     private INewConnectionDialog fNewConnectionDialog;
-    
+
     /**
      * The enable channel dialog
      */
     private IEnableChannelDialog fEnableChannelDialog;
-    
+
     /**
      * The create session dialog.
      */
     private ICreateSessionDialog fCreateSessionDialog;
-    
+
     /**
      * The enable events dialog.
      */
     private IEnableEventsDialog fEnableEventsDialog;
-    
+
     /**
      * The get event info dialog.
      */
     private IGetEventInfoDialog fGetEventInfoDialog;
-    
+
     /**
      * The confirmation dialog implementation.
      */
     private IConfirmDialog fConfirmDialog;
-    
+
     /**
      * The add context dialog implementation.
      */
     private IAddContextDialog fAddContextDialog;
-    
+
     /**
      * The import dialog implementation.
      */
     private IImportDialog fImportDialog;
-    
+
     /**
      * The import confirmation dialog.
      */
@@ -100,7 +119,7 @@ final public class TraceControlDialogFactory {
     public void setNewConnectionDialog(INewConnectionDialog newConnectionDialog) {
         fNewConnectionDialog = newConnectionDialog;
     }
-    
+
     /**
      * @return enable channel dialog
      */
@@ -118,7 +137,7 @@ final public class TraceControlDialogFactory {
     public void setEnableChannelDialog(IEnableChannelDialog createEnableDialog) {
         fEnableChannelDialog = createEnableDialog;
     }
-    
+
     /**
      * @return create session dialog implementation
      */
@@ -172,7 +191,7 @@ final public class TraceControlDialogFactory {
     public void setGetEventInfoDialog(IGetEventInfoDialog getEventInfoDialog) {
         fGetEventInfoDialog = getEventInfoDialog;
     }
-    
+
     /**
      * @return the confirmation dialog implementation
      */
@@ -182,7 +201,7 @@ final public class TraceControlDialogFactory {
         }
         return fConfirmDialog;
     }
-    
+
     /**
      * Sets the confirmation dialog implementation
      * @param confirmDialog - a confirmation dialog implementation
@@ -190,7 +209,7 @@ final public class TraceControlDialogFactory {
     public void setConfirmDialog(IConfirmDialog confirmDialog) {
         fConfirmDialog = confirmDialog;
     }
-    
+
     /**
      * @return the add context dialog implementation
      */
@@ -200,7 +219,7 @@ final public class TraceControlDialogFactory {
         }
         return fAddContextDialog;
     }
-    
+
     /**
      * Sets the add context dialog information
      * @param addContextDialog - a add context dialog implementation
@@ -208,7 +227,7 @@ final public class TraceControlDialogFactory {
     public void setAddContextDialog(IAddContextDialog addContextDialog) {
         fAddContextDialog = addContextDialog;
     }
-    
+
     /**
      * @return the import dialog implementation
      */
@@ -218,7 +237,7 @@ final public class TraceControlDialogFactory {
         }
         return fImportDialog;
     }
-    
+
     /**
      * Sets the import dialog implementation.
      * @param importDialog - a import dialog implementation
@@ -226,7 +245,7 @@ final public class TraceControlDialogFactory {
     public void setImportDialog(IImportDialog importDialog) {
         fImportDialog = importDialog;
     }
-    
+
     /**
      * @return the import confirmation dialog implementation.
      */
@@ -236,10 +255,10 @@ final public class TraceControlDialogFactory {
         }
         return fImportConfirmationDialog;
     }
-    
+
     /**
      * Sets the import confirmation dialog implementation.
-     * @param confirmDialog - a import confirmation dialog implementation. 
+     * @param confirmDialog - a import confirmation dialog implementation.
      */
     public void setImportConfirmationDialog(IImportConfirmationDialog confirmDialog) {
         fImportConfirmationDialog = confirmDialog;
This page took 0.026813 seconds and 5 git commands to generate.