blob: edf55a90d4d0abbf243ab098a1e3c2f91635a127 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2008 Tasktop Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.context.ui.actions;
import org.eclipse.mylyn.context.core.ContextCore;
import org.eclipse.ui.IActionFilter;
/**
* @author Mik Kersten
*/
public class ContextActiveActionFilter implements IActionFilter {
public boolean testAttribute(Object target, String name, String value) {
return ContextCore.getContextManager().isContextActive();
}
}