blob: 83633ea9dd6f86742223f4354fcb87837573fa9d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 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.resources.ui;
import org.eclipse.core.resources.IResource;
/**
* @author Shawn Minto
*/
public interface IResourceExclusionStrategy {
void init();
void dispose();
/**
* Called to indicate that the strategy should refresh its state
*/
void update();
/**
* If an implementation returns <code>true</code> for an IFolder, all children (files and folders) will be excluded
* from the context as well
*
* @return true if the resource should not be added to the active task context
*/
boolean isExcluded(IResource resource);
}