/**********************************************************************
- * 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;
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 {
// ------------------------------------------------------------------------
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
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;
public int open() {
return 0;
}
+
+ @Override
+ public String getFilterExpression() {
+ return fFilter;
+ }
+
}
\ No newline at end of file