lttng: Move to Java 7 and fix warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui.tests / stubs / org / eclipse / linuxtools / internal / lttng2 / stubs / dialogs / EnableEventsDialogStub.java
index 91715ce90ffad5e81b960091ede72663d7ab592a..f7ca85f79ed5412e03830881e59b5d1b7ee29b1e 100644 (file)
@@ -1,12 +1,12 @@
 /**********************************************************************
- * Copyright (c) 2012 Ericsson
- * 
+ * Copyright (c) 2012, 2013 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: 
+ *
+ * Contributors:
  *   Bernd Hufmann - Initial API and implementation
  **********************************************************************/
 package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs;
@@ -14,15 +14,16 @@ package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs;
 import java.util.ArrayList;
 import java.util.List;
 
+import org.eclipse.linuxtools.internal.lttng2.core.control.model.LogLevelType;
+import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceLogLevel;
 import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.IEnableEventsDialog;
-import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.LogLevelType;
-import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.TraceLogLevel;
 import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceDomainComponent;
 import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceProviderGroup;
 
 /**
- * Enable events dialog stub implementation. 
+ * Enable events dialog stub implementation.
  */
+@SuppressWarnings("javadoc")
 public class EnableEventsDialogStub implements IEnableEventsDialog {
 
     // ------------------------------------------------------------------------
@@ -44,7 +45,8 @@ public class EnableEventsDialogStub implements IEnableEventsDialog {
     private String fLogLevelEventName;
     private TraceLogLevel fLogLevel;
     private LogLevelType fLogLevelType;
-    List<String> fNames = new ArrayList<String>();
+    private String fFilter;
+    private List<String> fNames = new ArrayList<>();
 
     // ------------------------------------------------------------------------
     // Accessors
@@ -112,11 +114,15 @@ public class EnableEventsDialogStub implements IEnableEventsDialog {
     public void setLogLevelType(LogLevelType logLevelType) {
         fLogLevelType = logLevelType;
     }
-    
+
     public void setNames(List<String> names) {
         fNames = names;
     }
 
+    public void setFilterExpression(String filter) {
+        fFilter = filter;
+    }
+
     @Override
     public boolean isTracepoints() {
         return fIsTracePoints;
@@ -219,4 +225,10 @@ public class EnableEventsDialogStub implements IEnableEventsDialog {
     public int open() {
         return 0;
     }
+
+    @Override
+    public String getFilterExpression() {
+        return fFilter;
+    }
+
 }
\ No newline at end of file
This page took 0.02546 seconds and 5 git commands to generate.