lttng.control: add possibility to run a list of lttng commands
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / dialogs / TraceControlDialogFactory.java
index fb87a70a2f02f8c865b20ab5b3f30a1f17e44605..58364d2471af92fdcd6f419cfac12586c755fa73 100644 (file)
@@ -48,6 +48,11 @@ public final class TraceControlDialogFactory {
      */
     private ICreateSessionDialog fCreateSessionDialog;
 
+    /**
+     * The command script selection dialog.
+     */
+    private ISelectCommandScriptDialog fCommandScriptDialog;
+
     /**
      * The enable events dialog.
      */
@@ -148,6 +153,16 @@ public final class TraceControlDialogFactory {
         return fCreateSessionDialog;
     }
 
+    /**
+     * @return command script selection dialog implementation
+     */
+    public ISelectCommandScriptDialog getCommandScriptDialog() {
+        if (fCommandScriptDialog == null) {
+            fCommandScriptDialog = new OpenCommandScriptDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
+        }
+        return fCommandScriptDialog;
+    }
+
     /**
      * Sets a create session dialog implementation.
      * @param createSessionDialog - a create session implementation.
This page took 0.027601 seconds and 5 git commands to generate.