01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.ui.internal.provisional.views.markers;
11:
12: import java.util.HashMap;
13: import java.util.Map;
14:
15: import org.eclipse.core.resources.IMarker;
16: import org.eclipse.ui.internal.provisional.views.markers.api.FiltersContributionParameters;
17:
18: /**
19: * SelectedWarningsParameters is the parameters for warnings.
20: *
21: * @since 3.4
22: *
23: */
24: public class SelectedWarningsParameters extends
25: FiltersContributionParameters {
26:
27: private static Map warningsMap;
28: static {
29: warningsMap = new HashMap();
30: warningsMap.put(IMarker.SEVERITY, new Integer(
31: SeverityAndDescriptionFieldFilter.SEVERITY_WARNING));
32: }
33:
34: /**
35: * Create a new instance of the receiver.
36: */
37: public SelectedWarningsParameters() {
38: super ();
39: }
40:
41: /*
42: * (non-Javadoc)
43: *
44: * @see org.eclipse.ui.internal.provisional.views.markers.FiltersContributionParameters#getParameterValues()
45: */
46: public Map getParameterValues() {
47: return warningsMap;
48: }
49:
50: }
|