01: /*******************************************************************************
02: * Copyright (c) 2006 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.views.markers.internal;
11:
12: import org.eclipse.core.runtime.IConfigurationElement;
13:
14: /**
15: * AttributeMarkerGrouping is the configuration element for the
16: * markerAttributeGrouping extension.
17: *
18: * @since 3.2
19: *
20: */
21: public class AttributeMarkerGrouping {
22:
23: private String attribute;
24:
25: private String markerType;
26:
27: private String defaultGroupingEntry;
28:
29: private IConfigurationElement element;
30:
31: /**
32: * Create a new instance of the receiver for the given attribute on the
33: * markerType with an optional default grouping.
34: *
35: * @param attributeId
36: * @param markerId
37: * @param defaultEntry
38: * @param configElement
39: */
40: public AttributeMarkerGrouping(String attributeId, String markerId,
41: String defaultEntry, IConfigurationElement configElement) {
42: attribute = attributeId;
43: markerType = markerId;
44: defaultGroupingEntry = defaultEntry;
45: element = configElement;
46:
47: }
48:
49: /**
50: * Return the id of the default grouping.
51: * @return String or <code>null</code> if it is not defined.
52: */
53: public String getDefaultGroupingEntry() {
54: return defaultGroupingEntry;
55: }
56:
57: /**
58: * Return the id of the marker type for this type.
59: * @return String
60: */
61: public String getMarkerType() {
62: return markerType;
63: }
64:
65: /**
66: * Return the name of the attribute for the receiver.
67: * @return String
68: */
69: public String getAttribute() {
70: return attribute;
71: }
72:
73: /**
74: * Return the IConfigurationElement for the receiver.
75: * @return IConfigurationElement
76: */
77: public IConfigurationElement getElement() {
78: return element;
79: }
80:
81: }
|