org.eclipse.cdt.managedbuilder.internal.core
Class InputOrder

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.core.InputOrder
All Implemented Interfaces:
IInputOrder

public class InputOrder
extends java.lang.Object
implements IInputOrder


Field Summary
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IInputOrder
EXCLUDED, INPUT_ORDER_ELEMENT_NAME, ORDER, PATH
 
Constructor Summary
InputOrder(IInputType parent, org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Create an InputOrder based on the specification stored in the project file (.cdtbuild).
InputOrder(IInputType parent, IManagedConfigElement element)
          This constructor is called to create an InputOrder defined by an extension point in a plugin manifest file, or returned by a dynamic element provider
InputOrder(IInputType parent, InputOrder inputOrder)
          Create an InputOrder based upon an existing InputOrder.
InputOrder(InputType parent, boolean isExtensionElement)
          This constructor is called to create an InputOrder whose attributes and children will be added by separate calls.
 
Method Summary
 boolean getExcluded()
          Returns true if this resource is not used as an input for the tool.
 java.lang.String getOrder()
          Returns a comma-separated list of integer values that specify the order of this resource.
 IInputType getParent()
          Returns the InputType parent of this InputOrder.
 java.lang.String getPath()
          Returns the relative or absolute path of the resource to which this element applies.
 boolean isDirty()
          Returns true if this element has changes that need to be saved in the project file, else false.
 boolean isExtensionElement()
           
 boolean needsRebuild()
           
 void resolveReferences()
           
 void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
          Persist the InputOrder to the project file.
 void setDirty(boolean isDirty)
          Sets the element's "dirty" (have I been modified?)
 void setExcluded(boolean b)
          Sets whether this resource is not used as an input for the tool.
 void setOrder(java.lang.String newOrder)
          Sets the comma-separated list of integer values that specify the order of this resource.
 void setPath(java.lang.String newPath)
          Sets the relative or absolute path of the resource to which this element applies.
 void setRebuildState(boolean rebuild)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputOrder

public InputOrder(IInputType parent,
                  IManagedConfigElement element)
This constructor is called to create an InputOrder defined by an extension point in a plugin manifest file, or returned by a dynamic element provider

Parameters:
parent - The IInputType parent of this InputOrder
element - The InputOrder definition from the manifest file or a dynamic element provider

InputOrder

public InputOrder(InputType parent,
                  boolean isExtensionElement)
This constructor is called to create an InputOrder whose attributes and children will be added by separate calls.

Parameters:
InputType - The parent of the an InputOrder
boolean - Indicates whether this is an extension element or a managed project element

InputOrder

public InputOrder(IInputType parent,
                  org.eclipse.cdt.core.settings.model.ICStorageElement element)
Create an InputOrder based on the specification stored in the project file (.cdtbuild).

Parameters:
parent - The ITool the InputOrder will be added to.
element - The XML element that contains the InputOrder settings.

InputOrder

public InputOrder(IInputType parent,
                  InputOrder inputOrder)
Create an InputOrder based upon an existing InputOrder.

Parameters:
parent - The IInputType the InputOrder will be added to.
inputOrder - The existing InputOrder to clone.
Method Detail

serialize

public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist the InputOrder to the project file.

Parameters:
doc -
element -

getParent

public IInputType getParent()
Description copied from interface: IInputOrder
Returns the InputType parent of this InputOrder.

Specified by:
getParent in interface IInputOrder
Returns:
IInputType

getPath

public java.lang.String getPath()
Description copied from interface: IInputOrder
Returns the relative or absolute path of the resource to which this element applies. The resource must be a member of the project, or the output from another tool in the tool-chain.

Specified by:
getPath in interface IInputOrder
Returns:
String

setPath

public void setPath(java.lang.String newPath)
Description copied from interface: IInputOrder
Sets the relative or absolute path of the resource to which this element applies.

Specified by:
setPath in interface IInputOrder

getOrder

public java.lang.String getOrder()
Description copied from interface: IInputOrder
Returns a comma-separated list of integer values that specify the order of this resource. In most cases, only a single integer value will be specified. A list is supported for the case where a single input file needs to be specified multiple times on the command line. The order numbers begin at 1. Not all values need to be specified. Unordered resources will fill the first "gap". For example: - To specify the first input file, use 1. - To specify the last input file, without specifying an order for any other input file, use 2. - To specify only the first two input files and last input file, use 1, 2 & 4.

Specified by:
getOrder in interface IInputOrder
Returns:
String

setOrder

public void setOrder(java.lang.String newOrder)
Description copied from interface: IInputOrder
Sets the comma-separated list of integer values that specify the order of this resource.

Specified by:
setOrder in interface IInputOrder

getExcluded

public boolean getExcluded()
Description copied from interface: IInputOrder
Returns true if this resource is not used as an input for the tool.

Specified by:
getExcluded in interface IInputOrder
Returns:
boolean

setExcluded

public void setExcluded(boolean b)
Description copied from interface: IInputOrder
Sets whether this resource is not used as an input for the tool.

Specified by:
setExcluded in interface IInputOrder

isExtensionElement

public boolean isExtensionElement()

isDirty

public boolean isDirty()
Description copied from interface: IInputOrder
Returns true if this element has changes that need to be saved in the project file, else false.

Specified by:
isDirty in interface IInputOrder
Returns:
boolean

setDirty

public void setDirty(boolean isDirty)
Description copied from interface: IInputOrder
Sets the element's "dirty" (have I been modified?) flag.

Specified by:
setDirty in interface IInputOrder

resolveReferences

public void resolveReferences()

needsRebuild

public boolean needsRebuild()

setRebuildState

public void setRebuildState(boolean rebuild)