Package org.esa.snap.rcp
Enum SnapApp.SelectionSourceHint
- java.lang.Object
-
- java.lang.Enum<SnapApp.SelectionSourceHint>
-
- org.esa.snap.rcp.SnapApp.SelectionSourceHint
-
- All Implemented Interfaces:
Serializable
,Comparable<SnapApp.SelectionSourceHint>
- Enclosing class:
- SnapApp
public static enum SnapApp.SelectionSourceHint extends Enum<SnapApp.SelectionSourceHint>
Provides a hint toSnapApp.getSelectedProduct(SelectionSourceHint)
} which selection provider should be used as primary selection source
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SnapApp.SelectionSourceHint
valueOf(String name)
Returns the enum constant of this type with the specified name.static SnapApp.SelectionSourceHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEW
public static final SnapApp.SelectionSourceHint VIEW
The scene view shall be preferred as selection source.
-
EXPLORER
public static final SnapApp.SelectionSourceHint EXPLORER
The product explorer shall be preferred as selection source.
-
AUTO
public static final SnapApp.SelectionSourceHint AUTO
The primary selection source is automatically detected.
-
-
Method Detail
-
values
public static SnapApp.SelectionSourceHint[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SnapApp.SelectionSourceHint c : SnapApp.SelectionSourceHint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SnapApp.SelectionSourceHint valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-