blob: ef2efab3e8a453e29477b914cdd55395dc1ac316 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2015 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.views.markers;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.ui.views.markers.FiltersContributionParameters;
import org.eclipse.ui.views.markers.MarkerSupportConstants;
/**
* TodoFiltersContributionParameters is the filter to just show TODOs.
* @since 3.4
*
*/
public class TodoFiltersContributionParameters extends FiltersContributionParameters {
private static Map<String, String> todoMap;
static {
todoMap = new HashMap<>();
todoMap.put(MarkerSupportConstants.CONTAINS_KEY, "TODO"); //$NON-NLS-1$
}
/**
* Return a new instance of the receiver.
*/
public TodoFiltersContributionParameters() {
super();
}
@Override
public Map<String, String> getParameterValues() {
return todoMap;
}
}