|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.core.ManagedOptionValueHandler
public class ManagedOptionValueHandler
This class implements the default managed option value handler for MBS. It is also be intended to be used as a base class for other value handlers.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IManagedOptionValueHandler |
---|
EVENT_APPLY, EVENT_CLOSE, EVENT_LOAD, EVENT_OPEN, EVENT_SETDEFAULT |
Method Summary | |
---|---|
static ManagedOptionValueHandler |
getManagedOptionValueHandler()
|
boolean |
handleValue(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument,
int event)
Handles transfer between values between UI element and back-end in different circumstances. |
boolean |
isDefaultValue(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument)
Checks whether the value of an option is its default value. |
boolean |
isEnumValueAppropriate(IBuildObject configuration,
IHoldsOptions holder,
IOption option,
java.lang.String extraArgument,
java.lang.String enumValue)
Checks whether an enumeration value of an option is currently a valid choice. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ManagedOptionValueHandler getManagedOptionValueHandler()
public boolean handleValue(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument, int event)
IManagedOptionValueHandler
handleValue
in interface IManagedOptionValueHandler
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handlerevent
- event to be handled
public boolean isDefaultValue(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument)
IManagedOptionValueHandler
isDefaultValue
in interface IManagedOptionValueHandler
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handler
The additional options besides configuration are supplied to
provide enough information for querying the default value from
a potential data storage back-end.
public boolean isEnumValueAppropriate(IBuildObject configuration, IHoldsOptions holder, IOption option, java.lang.String extraArgument, java.lang.String enumValue)
IManagedOptionValueHandler
isEnumValueAppropriate
in interface IManagedOptionValueHandler
configuration
- build configuration of option
(may be IConfiguration or IResourceConfiguration)holder
- contains the holder of the optionoption
- the option that is handledextraArgument
- extra argument for handlerenumValue
- enumeration value that is to be checked
The additional options besides configuration are supplied to
provide enough information for querying information from a
a potential data storage back-end.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |