blob: 371f79c0e156a00ac2b9233125044856b0ab5a70 [file] [log] [blame]
/**
* Copyright (c) 2015 Codetrails GmbH.
* 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
*/
package org.eclipse.epp.logging.aeri.core.filters;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.epp.logging.aeri.core.SystemControl;
import org.eclipse.jdt.annotation.Nullable;
import com.google.common.base.Predicate;
public class SystemEnabledFilter implements Predicate<IStatus> {
@Override
public boolean apply(@Nullable IStatus input) {
return SystemControl.isActive();
}
}