|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.internal.core.BuildObject
org.eclipse.cdt.managedbuilder.internal.core.TargetPlatform
public class TargetPlatform
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.ITargetPlatform |
---|
ARCH_LIST, BINARY_PARSER, OS_LIST, TARGET_PLATFORM_ELEMENT_NAME |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
TargetPlatform(IToolChain parent,
org.eclipse.cdt.core.settings.model.ICStorageElement element,
java.lang.String managedBuildRevision)
Create a TargetPlatform based on the specification stored in the
project file (.cdtbuild). |
|
TargetPlatform(IToolChain parent,
IManagedConfigElement element,
java.lang.String managedBuildRevision)
This constructor is called to create a TargetPlatform defined by an extension point in a plugin manifest file, or returned by a dynamic element provider |
|
TargetPlatform(IToolChain parent,
java.lang.String Id,
java.lang.String name,
TargetPlatform targetPlatform)
Create a TargetPlatform based upon an existing TargetPlatform. |
|
TargetPlatform(ToolChain parent,
ITargetPlatform superClass,
java.lang.String Id,
java.lang.String name,
boolean isExtensionElement)
This constructor is called to create a TargetPlatform whose attributes and children will be added by separate calls. |
Method Summary | |
---|---|
java.lang.String[] |
getArchList()
Returns an array of architectures this target platform represents. |
java.lang.String |
getBinaryParserId()
Returns the unique ID of the binary parser associated with the target platform. |
java.lang.String[] |
getBinaryParserList()
Returns the unique IDs of the binary parsers associated with the target platform. |
java.lang.String |
getName()
|
java.lang.String[] |
getOSList()
Returns an array of operating systems this target platform represents. |
IToolChain |
getParent()
Returns the tool-chain that is the parent of this target platform. |
ITargetPlatform |
getSuperClass()
Returns the ITargetPlatform that is the superclass of this
target platform, or null if the attribute was not specified. |
org.eclipse.cdt.core.settings.model.extension.CTargetPlatformData |
getTargetPlatformData()
|
java.lang.String |
getUnusedChildren()
Returns a semi-colon delimited list of child Ids of the superclass' children that should not be automatically inherited by this element. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
isAbstract()
Returns whether this element is abstract. |
boolean |
isDirty()
Returns true if this element has changes that need to
be saved in the project file, else false . |
boolean |
isExtensionElement()
Returns true if this target platform was loaded from a manifest file,
and false if it was loaded from a project (.cdtbuild) file. |
void |
resolveReferences()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist the target platform to the project file. |
void |
setArchList(java.lang.String[] archs)
Sets the architecture list. |
void |
setBinaryParserId(java.lang.String id)
Sets the string id of the binary parser for this target platform. |
void |
setBinaryParserList(java.lang.String[] ids)
Sets the string ids of the binary parsers for this target platform. |
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
void |
setIsAbstract(boolean b)
Sets the isAbstract attribute of the target paltform. |
void |
setOSList(java.lang.String[] OSs)
Sets the OS list. |
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getManagedBuildRevision, getVersionFromId, setId, setManagedBuildRevision, setName, toString, updateManagedBuildRevision |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
getBaseId, getId, getManagedBuildRevision |
Constructor Detail |
---|
public TargetPlatform(IToolChain parent, IManagedConfigElement element, java.lang.String managedBuildRevision)
parent
- The IToolChain parent of this TargetPlatform, or null
if
defined at the top levelelement
- The TargetPlatform definition from the manifest file or a dynamic element
providermanagedBuildRevision
- the fileVersion of Managed Build Systempublic TargetPlatform(ToolChain parent, ITargetPlatform superClass, java.lang.String Id, java.lang.String name, boolean isExtensionElement)
ToolChain
- The parent of the builder, if anyTargetPlatform
- The superClass, if anyString
- The id for the new tool chainString
- The name for the new tool chainboolean
- Indicates whether this is an extension element or a managed project elementpublic TargetPlatform(IToolChain parent, org.eclipse.cdt.core.settings.model.ICStorageElement element, java.lang.String managedBuildRevision)
TargetPlatform
based on the specification stored in the
project file (.cdtbuild).
parent
- The IToolChain
the TargetPlatform will be added to.element
- The XML element that contains the TargetPlatform settings.managedBuildRevision
- the fileVersion of Managed Build Systempublic TargetPlatform(IToolChain parent, java.lang.String Id, java.lang.String name, TargetPlatform targetPlatform)
TargetPlatform
based upon an existing TargetPlatform.
parent
- The IToolChain
the TargetPlatform will be added to.builder
- The existing TargetPlatform to clone.Method Detail |
---|
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
doc
- element
- public IToolChain getParent()
ITargetPlatform
getParent
in interface ITargetPlatform
public ITargetPlatform getSuperClass()
ITargetPlatform
ITargetPlatform
that is the superclass of this
target platform, or null
if the attribute was not specified.
getSuperClass
in interface ITargetPlatform
public java.lang.String getName()
getName
in interface IBuildObject
getName
in class BuildObject
public boolean isAbstract()
ITargetPlatform
false
if the attribute was not specified.
isAbstract
in interface ITargetPlatform
public java.lang.String getUnusedChildren()
ITargetPlatform
getUnusedChildren
in interface ITargetPlatform
public java.lang.String getBinaryParserId()
ITargetPlatform
getBinaryParserId
in interface ITargetPlatform
public java.lang.String[] getBinaryParserList()
ITargetPlatform
getBinaryParserList
in interface ITargetPlatform
public java.lang.String[] getArchList()
ITargetPlatform
getArchList
in interface ITargetPlatform
public java.lang.String[] getOSList()
ITargetPlatform
getOSList
in interface ITargetPlatform
public void setBinaryParserId(java.lang.String id)
ITargetPlatform
setBinaryParserId
in interface ITargetPlatform
public void setBinaryParserList(java.lang.String[] ids)
ITargetPlatform
setBinaryParserList
in interface ITargetPlatform
public void setIsAbstract(boolean b)
ITargetPlatform
setIsAbstract
in interface ITargetPlatform
public void setOSList(java.lang.String[] OSs)
ITargetPlatform
setOSList
in interface ITargetPlatform
public void setArchList(java.lang.String[] archs)
ITargetPlatform
setArchList
in interface ITargetPlatform
public boolean isExtensionElement()
ITargetPlatform
true
if this target platform was loaded from a manifest file,
and false
if it was loaded from a project (.cdtbuild) file.
isExtensionElement
in interface ITargetPlatform
public boolean isDirty()
ITargetPlatform
true
if this element has changes that need to
be saved in the project file, else false
.
isDirty
in interface ITargetPlatform
public void setDirty(boolean isDirty)
ITargetPlatform
setDirty
in interface ITargetPlatform
public void resolveReferences()
public org.eclipse.core.runtime.PluginVersionIdentifier getVersion()
getVersion
in interface IBuildObject
getVersion
in class BuildObject
public void setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
setVersion
in interface IBuildObject
setVersion
in class BuildObject
version
- The version to set.public org.eclipse.cdt.core.settings.model.extension.CTargetPlatformData getTargetPlatformData()
getTargetPlatformData
in interface ITargetPlatform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |