|
Eclipse JDT Kepler |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.ui.cleanup.CleanUpOptions
public class CleanUpOptions
Allows to set and retrieve clean up settings for given options keys.
Field Summary | |
---|---|
static java.lang.String |
FALSE
False value |
static java.lang.String |
TRUE
True value |
Constructor Summary | |
---|---|
|
CleanUpOptions()
Creates a new instance. |
protected |
CleanUpOptions(java.util.Map<java.lang.String,java.lang.String> options)
Creates a new CleanUpOptions instance with the given options. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getKeys()
Returns an unmodifiable set of all known keys. |
java.lang.String |
getValue(java.lang.String key)
Returns the value for the given key. |
boolean |
isEnabled(java.lang.String key)
Tells whether the option with the given key is enabled. |
void |
setOption(java.lang.String key,
java.lang.String value)
Sets the option for the given key to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRUE
public static final java.lang.String FALSE
Constructor Detail |
---|
protected CleanUpOptions(java.util.Map<java.lang.String,java.lang.String> options)
options
- map that maps clean ups keys (String
) to a non-null
string valuepublic CleanUpOptions()
Method Detail |
---|
public boolean isEnabled(java.lang.String key)
key
is enabled.
key
- the name of the option
true
if enabled, false
if not enabled or unknown key
java.lang.IllegalArgumentException
- if the key is null
CleanUpConstants
public java.lang.String getValue(java.lang.String key)
key
- the key of the value
java.lang.IllegalArgumentException
- if the key is null or unknownpublic void setOption(java.lang.String key, java.lang.String value)
key
- the name of the option to setvalue
- the value of the option
java.lang.IllegalArgumentException
- if the key is null
TRUE
,
FALSE
public java.util.Set<java.lang.String> getKeys()
|
Eclipse JDT Kepler |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2012 IBM Corporation and others. All rights reserved.