KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > markers > internal > AttributeMarkerGrouping


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.ui.views.markers.internal;
13
14 import org.eclipse.core.runtime.IConfigurationElement;
15
16 /**
17  * AttributeMarkerGrouping is the configuration element for the
18  * markerAttributeGrouping extension.
19  *
20  * @since 3.2
21  *
22  */

23 public class AttributeMarkerGrouping {
24
25     private String JavaDoc attribute;
26
27     private String JavaDoc markerType;
28
29     private String JavaDoc defaultGroupingEntry;
30
31     private IConfigurationElement element;
32
33     /**
34      * Create a new instance of the receiver for the given attribute on the
35      * markerType with an optional default grouping.
36      *
37      * @param attributeId
38      * @param markerId
39      * @param defaultEntry
40      * @param configElement
41      */

42     public AttributeMarkerGrouping(String JavaDoc attributeId, String JavaDoc markerId,
43             String JavaDoc defaultEntry, IConfigurationElement configElement) {
44         attribute = attributeId;
45         markerType = markerId;
46         defaultGroupingEntry = defaultEntry;
47         element = configElement;
48
49     }
50
51     /**
52      * Return the id of the default grouping.
53      * @return String or <code>null</code> if it is not defined.
54      */

55     public String JavaDoc getDefaultGroupingEntry() {
56         return defaultGroupingEntry;
57     }
58
59     /**
60      * Return the id of the marker type for this type.
61      * @return String
62      */

63     public String JavaDoc getMarkerType() {
64         return markerType;
65     }
66
67     /**
68      * Return the name of the attribute for the receiver.
69      * @return String
70      */

71     public String JavaDoc getAttribute() {
72         return attribute;
73     }
74
75     /**
76      * Return the IConfigurationElement for the receiver.
77      * @return IConfigurationElement
78      */

79     public IConfigurationElement getElement() {
80         return element;
81     }
82
83 }
84
Popular Tags