|
||||||||||
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.OptionCategory
public class OptionCategory
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IOptionCategory |
---|
ALL, FILTER_ALL, FILTER_FILE, FILTER_PROJECT, ICON, OWNER, PROJECT |
Fields inherited from interface org.eclipse.cdt.managedbuilder.core.IBuildObject |
---|
ID, NAME |
Constructor Summary | |
---|---|
OptionCategory(IHoldsOptions parent,
org.eclipse.cdt.core.settings.model.ICStorageElement element)
Create an |
|
OptionCategory(IHoldsOptions parent,
IManagedConfigElement element)
This constructor is called to create an option category defined by an extension point in a plugin manifest file, or returned by a dynamic element provider |
|
OptionCategory(IOptionCategory owner)
|
Method Summary | |
---|---|
void |
addChildCategory(OptionCategory category)
|
static java.lang.Object |
findOptionCategoryByMatchName(java.lang.String matchName,
IOptionCategory[] cats)
Finds an option category from an array of categories by comparing against a match name. |
IOptionCategory[] |
getChildCategories()
Returns the list of children of this node in the option category tree |
java.net.URL |
getIconPath()
Get the path name of an alternative icon for the option group. |
java.lang.String |
getManagedBuildRevision()
|
IHoldsOptions |
getOptionHolder()
Returns the holder (parent) of this category. |
java.lang.Object[][] |
getOptions(IConfiguration configuration)
|
java.lang.Object[][] |
getOptions(IConfiguration configuration,
IHoldsOptions optionHolder)
Returns an array of ITool/IOption pairs for the options in this category for a given configuration. |
java.lang.Object[][] |
getOptions(IResourceConfiguration resConfig)
|
java.lang.Object[][] |
getOptions(IResourceInfo resinfo,
IHoldsOptions optionHolder)
Returns an array of ITool/IOption pairs for the options in this category for a given resource configuration. |
IOptionCategory |
getOwner()
Returns the category that owns this category, or null if this is the top category for a tool. |
ITool |
getTool()
Returns the tool that ultimately owns this category. |
org.eclipse.core.runtime.PluginVersionIdentifier |
getVersion()
|
boolean |
isDirty()
Returns true if this element has changes that need to
be saved in the project file, else false . |
boolean |
isExtensionElement()
|
void |
loadFromManifest(IManagedConfigElement element)
|
static java.lang.String |
makeMatchName(IBuildObject catOrTool)
Creates a name that uniquely identifies a category. |
void |
resolveReferences()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
Persist the OptionCategory to the project file. |
void |
setDirty(boolean isDirty)
Sets the element's "dirty" (have I been modified?) |
void |
setVersion(org.eclipse.core.runtime.PluginVersionIdentifier version)
|
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.core.BuildObject |
---|
getBaseId, getId, getName, 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, getName |
Constructor Detail |
---|
public OptionCategory(IOptionCategory owner)
public OptionCategory(IHoldsOptions parent, IManagedConfigElement element)
parent
- The IHoldsOptions parent of this catgeory, or null
if
defined at the top levelelement
- The category definition from the manifest file or a dynamic element
providerpublic OptionCategory(IHoldsOptions parent, org.eclipse.cdt.core.settings.model.ICStorageElement element)
parent
- The IHoldsOptions
object the OptionCategory will be added to.element
- The XML element that contains the OptionCategory settings.Method Detail |
---|
public void loadFromManifest(IManagedConfigElement element)
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
doc
- element
- public IOptionCategory[] getChildCategories()
IOptionCategory
getChildCategories
in interface IOptionCategory
public void addChildCategory(OptionCategory category)
public java.lang.Object[][] getOptions(IConfiguration configuration, IHoldsOptions optionHolder)
IOptionCategory
getOptions
in interface IOptionCategory
public java.lang.Object[][] getOptions(IConfiguration configuration)
getOptions
in interface IOptionCategory
public java.lang.Object[][] getOptions(IResourceInfo resinfo, IHoldsOptions optionHolder)
IOptionCategory
getOptions
in interface IOptionCategory
public java.lang.Object[][] getOptions(IResourceConfiguration resConfig)
getOptions
in interface IOptionCategory
public IOptionCategory getOwner()
IOptionCategory
getOwner
in interface IOptionCategory
public IHoldsOptions getOptionHolder()
IOptionCategory
getOptionHolder
in interface IOptionCategory
public ITool getTool()
IOptionCategory
getTool
in interface IOptionCategory
public java.net.URL getIconPath()
IOptionCategory
getIconPath
in interface IOptionCategory
public boolean isExtensionElement()
public boolean isDirty()
IOptionCategory
true
if this element has changes that need to
be saved in the project file, else false
.
isDirty
in interface IOptionCategory
public void setDirty(boolean isDirty)
IOptionCategory
setDirty
in interface IOptionCategory
public void resolveReferences()
public java.lang.String getManagedBuildRevision()
getManagedBuildRevision
in interface IBuildObject
getManagedBuildRevision
in class BuildObject
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 static java.lang.String makeMatchName(IBuildObject catOrTool)
category
- or tool for which to build the match name
public static java.lang.Object findOptionCategoryByMatchName(java.lang.String matchName, IOptionCategory[] cats)
matchName
- an identifier to searchcategories
- as returned by getChildCategories(), i.e. non-flattened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |