blob: 724ccf35a5ddd87c522f7e24fffe00b714143f83 [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.core.resources.IMarker;
import org.eclipse.ui.views.markers.FiltersContributionParameters;
/**
* SelectedWarningsParameters is the parameters for warnings.
*
* @since 3.4
*
*/
public class SelectedWarningsParameters extends FiltersContributionParameters {
private static Map<String, Integer> warningsMap;
static {
warningsMap = new HashMap<>();
warningsMap.put(IMarker.SEVERITY, new Integer(SeverityAndDescriptionFieldFilter.SEVERITY_WARNING));
}
/**
* Create a new instance of the receiver.
*/
public SelectedWarningsParameters() {
super();
}
@Override
public Map<String, Integer> getParameterValues() {
return warningsMap;
}
}