org.eclipse.cdt.managedbuilder.internal.macros
Class OptionContextData
java.lang.Object
org.eclipse.cdt.managedbuilder.internal.macros.OptionContextData
- All Implemented Interfaces:
- IOptionContextData
public class OptionContextData
- extends java.lang.Object
- implements IOptionContextData
This is a trivial implementation of the IOptionContextData used internaly by the MBS
- Since:
- 3.0
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionContextData
public OptionContextData(IOption option,
IBuildObject parent)
getOption
public IOption getOption()
- Description copied from interface:
IOptionContextData
- Returns an option
- Specified by:
getOption
in interface IOptionContextData
- Returns:
- IOption
getParent
public IBuildObject getParent()
- Description copied from interface:
IOptionContextData
- Returns IBuildObject that represents the option holder.
For the backward compatibility MBS will also support the cases
when this method returns either an IToolChain or IResourceConfiguration.
In this case MBS will try to obtain the option holder automatically,
but it might fail in case the tool-chain/resource configuration contains
more than one tools with the same super-class
- Specified by:
getParent
in interface IOptionContextData
- Returns:
- IBuildObject
getHolder
public static IHoldsOptions getHolder(IOptionContextData data)