Package org.eclipse.jdt.ui.cleanup
Class CleanUpOptions
java.lang.Object
org.eclipse.jdt.core.manipulation.CleanUpOptionsCore
org.eclipse.jdt.ui.cleanup.CleanUpOptions
Allows to set and retrieve clean up settings for given options keys.
Originally from org.eclipse.jdt.ui 3.5
- Since:
- 1.21
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new instance.protectedCleanUpOptions(Map<String, String> options) Creates a new CleanUpOptions instance with the given options. -
Method Summary
Modifier and TypeMethodDescriptiongetKeys()Returns an unmodifiable set of all known keys.Returns the value for the given key.booleanTells whether the option with the givenkeyis enabled.voidSets the option for the given key to the given value.
-
Field Details
-
TRUE
True value- See Also:
-
FALSE
False value- See Also:
-
-
Constructor Details
-
CleanUpOptions
Creates a new CleanUpOptions instance with the given options.- Parameters:
options- map that maps clean ups keys (String) to a non-nullstring value
-
CleanUpOptions
public CleanUpOptions()Creates a new instance.
-
-
Method Details
-
getKeys
Description copied from class:CleanUpOptionsCoreReturns an unmodifiable set of all known keys.- Overrides:
getKeysin classCleanUpOptionsCore- Returns:
- an unmodifiable set of all keys
-
setOption
Description copied from class:CleanUpOptionsCoreSets the option for the given key to the given value.- Overrides:
setOptionin classCleanUpOptionsCore- Parameters:
key- the name of the option to setvalue- the value of the option- See Also:
-
getValue
Description copied from class:CleanUpOptionsCoreReturns the value for the given key.- Overrides:
getValuein classCleanUpOptionsCore- Parameters:
key- the key of the value- Returns:
- the value associated with the key
-
isEnabled
Description copied from class:CleanUpOptionsCoreTells whether the option with the givenkeyis enabled.- Overrides:
isEnabledin classCleanUpOptionsCore- Parameters:
key- the name of the option- Returns:
trueif enabled,falseif not enabled or unknown key- See Also:
-