tmf: lttngControl: mi: basic listing support
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / service / LTTngControlService.java
index bcce1d163c6b0d0b5d1fdfb318b63cdffea93231..6e1083cd2c268d73ca76441219f22f138dc515d1 100644 (file)
@@ -91,13 +91,18 @@ public class LTTngControlService implements ILttngControlService {
     // ------------------------------------------------------------------------
 
     @Override
-    public String getVersion() {
+    public String getVersionString() {
         if (fVersion == null) {
             return "Unknown"; //$NON-NLS-1$
         }
         return fVersion.toString();
     }
 
+    @Override
+    public LttngVersion getVersion() {
+        return fVersion;
+    }
+
     /**
      * Sets the version of the LTTng 2.0 control service.
      * @param version - a version to set
@@ -106,6 +111,14 @@ public class LTTngControlService implements ILttngControlService {
         fVersion = new LttngVersion(version);
     }
 
+    /**
+     * Sets the version of the LTTng 2.x control service.
+     * @param version - a version to set
+     */
+    public void setVersion(LttngVersion version) {
+        fVersion = version;
+    }
+
     @Override
     public boolean isVersionSupported(String version) {
         LttngVersion tmp = new LttngVersion(version);
This page took 0.024176 seconds and 5 git commands to generate.