Class FieldCategory
java.lang.Object
org.eclipse.ui.views.markers.internal.AbstractField
org.eclipse.ui.views.markers.internal.FieldCategory
- All Implemented Interfaces:
IField
FieldCategory is the field for showing categories of markers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Get the default direction for the receiver.int
Get the preferred width of the receiver.Methods inherited from class org.eclipse.ui.views.markers.internal.AbstractField
isShowing, setShowing
-
Constructor Details
-
FieldCategory
public FieldCategory()
-
-
Method Details
-
getDescription
- Returns:
- String the description of the field.
-
getDescriptionImage
- Returns:
- the image associated with the description of the field or
null
.
-
getColumnHeaderText
- Returns:
- The text to be displayed in the column header for this field.
-
getColumnHeaderImage
- Returns:
- The image to be displayed in the column header for this field or
null
.
-
getValue
- Returns:
- The String value of the object for this particular field to be displayed to the user.
-
getImage
- Returns:
- The image value of the object for this particular field to be displayed to the user
or
null
.
-
compare
- Returns:
- Either:
- a negative number if the value of obj1 is less than the value of obj2 for this field.
0
if the value of obj1 and the value of obj2 are equal for this field.- a positive number if the value of obj1 is greater than the value of obj2 for this field.
-
getDefaultDirection
public int getDefaultDirection()Description copied from interface:IField
Get the default direction for the receiver. Return eitherTableComparator.ASCENDING
orTableComparator.DESCENDING
- Returns:
- int
-
getPreferredWidth
public int getPreferredWidth()Description copied from interface:IField
Get the preferred width of the receiver.- Returns:
- int
-