Package org.eclipse.ui.navigator
Class Priority
- java.lang.Object
-
- org.eclipse.ui.navigator.Priority
-
public final class Priority extends java.lang.ObjectEnumeration of the Priority values supported by the Common Navigator.
- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static Priority[]ENUM_ARRAYThe ordered array of possible enumeration values (0=> Highest, length-1=>Lowest)static PriorityHIGHIndicates High priority as a Priority enumeration.static java.lang.StringHIGH_PRIORITY_LITERALIndicates High priority as a String.static intHIGH_PRIORITY_VALUEIndicates High priority as an int.static PriorityHIGHERIndicates Higher priority as a Priority enumeration.static java.lang.StringHIGHER_PRIORITY_LITERALIndicates Higher priority as a String.static intHIGHER_PRIORITY_VALUEIndicates Higher priority as an int.static PriorityHIGHESTIndicates Highest priority as a Priority enumeration.static java.lang.StringHIGHEST_PRIORITY_LITERALIndicates Highest priority as a String.static intHIGHEST_PRIORITY_VALUEIndicates Highest priority as an int.static PriorityLOWIndicates Low priority as a Priority enumeration.static java.lang.StringLOW_PRIORITY_LITERALIndicates Low priority as a String.static intLOW_PRIORITY_VALUEIndicates Low priority as an int.static PriorityLOWERIndicates Lower priority as a Priority enumeration.static java.lang.StringLOWER_PRIORITY_LITERALIndicates Lower priority as a String.static intLOWER_PRIORITY_VALUEIndicates Lower priority as an int.static PriorityLOWESTIndicates Lowest priority as a Priority enumeration.static java.lang.StringLOWEST_PRIORITY_LITERALIndicates Lowest priority as a String.static intLOWEST_PRIORITY_VALUEIndicates Lowest priority as an int.static PriorityNORMALIndicates Normal priority as a Priority enumeration.static java.lang.StringNORMAL_PRIORITY_LITERALIndicates Normal priority as a String.static intNORMAL_PRIORITY_VALUEIndicates Normal priority as an int.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPriority(int aValue, java.lang.String aLiteral)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Priorityget(int aValue)Returns the correct instance of the Priority ENUM for aValue.static Priorityget(java.lang.String aLiteral)Returns the correct instance of the Priority ENUM for aLiteral.java.lang.StringgetLiteral()intgetValue()0 is the lowest priority; 7 is the highest.java.lang.StringtoString()
-
-
-
Field Detail
-
HIGHEST_PRIORITY_VALUE
public static final int HIGHEST_PRIORITY_VALUE
Indicates Highest priority as an int.- See Also:
- Constant Field Values
-
HIGHER_PRIORITY_VALUE
public static final int HIGHER_PRIORITY_VALUE
Indicates Higher priority as an int.- See Also:
- Constant Field Values
-
HIGH_PRIORITY_VALUE
public static final int HIGH_PRIORITY_VALUE
Indicates High priority as an int.- See Also:
- Constant Field Values
-
NORMAL_PRIORITY_VALUE
public static final int NORMAL_PRIORITY_VALUE
Indicates Normal priority as an int.- See Also:
- Constant Field Values
-
LOW_PRIORITY_VALUE
public static final int LOW_PRIORITY_VALUE
Indicates Low priority as an int.- See Also:
- Constant Field Values
-
LOWER_PRIORITY_VALUE
public static final int LOWER_PRIORITY_VALUE
Indicates Lower priority as an int.- See Also:
- Constant Field Values
-
LOWEST_PRIORITY_VALUE
public static final int LOWEST_PRIORITY_VALUE
Indicates Lowest priority as an int.- See Also:
- Constant Field Values
-
HIGHEST_PRIORITY_LITERAL
public static final java.lang.String HIGHEST_PRIORITY_LITERAL
Indicates Highest priority as a String.- See Also:
- Constant Field Values
-
HIGHER_PRIORITY_LITERAL
public static final java.lang.String HIGHER_PRIORITY_LITERAL
Indicates Higher priority as a String.- See Also:
- Constant Field Values
-
HIGH_PRIORITY_LITERAL
public static final java.lang.String HIGH_PRIORITY_LITERAL
Indicates High priority as a String.- See Also:
- Constant Field Values
-
NORMAL_PRIORITY_LITERAL
public static final java.lang.String NORMAL_PRIORITY_LITERAL
Indicates Normal priority as a String.- See Also:
- Constant Field Values
-
LOW_PRIORITY_LITERAL
public static final java.lang.String LOW_PRIORITY_LITERAL
Indicates Low priority as a String.- See Also:
- Constant Field Values
-
LOWER_PRIORITY_LITERAL
public static final java.lang.String LOWER_PRIORITY_LITERAL
Indicates Lower priority as a String.- See Also:
- Constant Field Values
-
LOWEST_PRIORITY_LITERAL
public static final java.lang.String LOWEST_PRIORITY_LITERAL
Indicates Lowest priority as a String.- See Also:
- Constant Field Values
-
HIGHEST
public static final Priority HIGHEST
Indicates Highest priority as a Priority enumeration.
-
HIGHER
public static final Priority HIGHER
Indicates Higher priority as a Priority enumeration.
-
HIGH
public static final Priority HIGH
Indicates High priority as a Priority enumeration.
-
NORMAL
public static final Priority NORMAL
Indicates Normal priority as a Priority enumeration.
-
LOW
public static final Priority LOW
Indicates Low priority as a Priority enumeration.
-
LOWER
public static final Priority LOWER
Indicates Lower priority as a Priority enumeration.
-
LOWEST
public static final Priority LOWEST
Indicates Lowest priority as a Priority enumeration.
-
ENUM_ARRAY
public static final Priority[] ENUM_ARRAY
The ordered array of possible enumeration values (0=> Highest, length-1=>Lowest)
-
-
Method Detail
-
get
public static Priority get(java.lang.String aLiteral)
Returns the correct instance of the Priority ENUM for aLiteral.This method will return NORMAL if the supplied value of aLiteral is invalid.
- Parameters:
aLiteral- One of the defined *_LITERAL constants of this class- Returns:
- The corresponding Priority Enum or NORMAL if aLiteral is invalid
-
get
public static Priority get(int aValue)
Returns the correct instance of the Priority ENUM for aValue.This method will return NORMAL if the supplied value of aValue is invalid.
- Parameters:
aValue- One of the defined *_VALUE constants of this class- Returns:
- The corresponding Priority Enum or NORMAL if aValue is invalid
-
getLiteral
public java.lang.String getLiteral()
- Returns:
- The literal string for this specific Priority.
-
getValue
public int getValue()
0 is the lowest priority; 7 is the highest.- Returns:
- The integer value for this specific Priority.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-