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: * AllErrorsParameters is the parameters for the error severity type.
20: *
21: * @since 3.4
22: *
23: */
24: public class AllErrorsParameters extends FiltersContributionParameters {
25:
26: private static Map errorsMap;
27: static {
28: errorsMap = new HashMap();
29: errorsMap.put(IMarker.SEVERITY, new Integer(
30: SeverityAndDescriptionFieldFilter.SEVERITY_ERROR));
31: }
32:
33: /**
34: * Create a new instance of the reciever.
35: */
36: public AllErrorsParameters() {
37: super ();
38: }
39:
40: /*
41: * (non-Javadoc)
42: *
43: * @see org.eclipse.ui.internal.provisional.views.markers.FiltersContributionParameters#getParameterValues()
44: */
45: public Map getParameterValues() {
46: return errorsMap;
47: }
48:
49: }
|