/******************************************************************************* * Copyright (c) 2007, 2016 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 * Mickael Istria (Red Hat Inc.) - Bug 486901 *******************************************************************************/ 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, SeverityAndDescriptionFieldFilter.SEVERITY_WARNING); } /** * Create a new instance of the receiver. */ public SelectedWarningsParameters() { super(); } @Override public Map<String, Integer> getParameterValues() { return warningsMap; } }