public class ConfigurationElement extends java.lang.Object implements IConfigurationElement
| Constructor and Description |
|---|
ConfigurationElement(java.lang.String name,
java.lang.String description)
Constructor for a configuration element.
|
ConfigurationElement(java.lang.String name,
java.lang.String description,
ImageDescriptor icon)
Constructor for a configuration element
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IConfigurationElement child)
Add a child configuration element to this configuration element.
|
int |
compareTo(IConfigurationElement o) |
java.lang.String |
getBuffer()
Returns the buffer (if there is one) associated with this configuration element.
|
IConfigurationElement[] |
getChildren()
Returns the children of this element.
|
IConfigurationExtension |
getConfigurationExtension()
Gets the associated configuration extension
|
java.lang.String |
getDescription()
Returns the description for this configuration element
|
java.io.File |
getFile()
Returns the file (if there is one) associated with this configuration element.
|
java.io.File |
getFileToReplace()
Gets the workspace file that should be replaced as part of an import.
|
ImageDescriptor |
getImage()
Returns the image descriptor associated with this configuration element
|
java.lang.String |
getName()
Returns the name for this configuration element
|
IConfigurationElement |
getParent()
Gets the parent configuration element of this element.
|
java.lang.String |
getProperty(java.lang.String key)
Gets a property that is associated with this configuration element
|
boolean |
hasChildren()
Returns whether this element has children or not.
|
boolean |
isConflicting()
Indicates whether this new configuration conflicts with the original.
|
boolean |
isDifferent()
Indicates whether this new configuration is different from the original.
|
boolean |
isSetToExport()
Determine whether this configuration element should be exported.
|
void |
setBuffer(java.lang.String buffer)
Sets the buffer (if there is one) associated with this configuration element.
|
void |
setConfigurationExtension(IConfigurationExtension extension)
Sets the associated configuration extension
|
void |
setConflicting(boolean flag)
Indicates whether the new configuration conflicts with the original.
|
void |
setDescription(java.lang.String description)
Returns the description for this configuration element
|
void |
setDifferent(boolean flag)
Set whether the new configuration is different from the original.
|
void |
setFile(java.io.File file)
Sets the file (if there is one) associated with this configuration element.
|
void |
setFileToReplace(java.io.File file)
Sets the workspace file that should be replaced as part of an import.
|
void |
setImage(ImageDescriptor icon)
Sets the image descriptor for this configuration element
|
void |
setParent(IConfigurationElement parent)
Sets the parent configuration element of this element.
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property associated with this configuration element
|
void |
setToExport(boolean flag)
Sets whether this configuration element should be exported.
|
java.lang.String |
toString()
For debugging purposes
|
public ConfigurationElement(java.lang.String name,
java.lang.String description,
ImageDescriptor icon)
name - the name of the configurationdescription - the description of the configurationicon - the image descriptor for the configurationpublic ConfigurationElement(java.lang.String name,
java.lang.String description)
name - the name of the configurationdescription - the description of the configurationpublic java.lang.String getName()
getName in interface IConfigurationElementpublic java.lang.String getDescription()
getDescription in interface IConfigurationElementpublic ImageDescriptor getImage()
getImage in interface IConfigurationElementpublic void setConfigurationExtension(IConfigurationExtension extension)
setConfigurationExtension in interface IConfigurationElementextension - the configuration extensionpublic IConfigurationExtension getConfigurationExtension()
getConfigurationExtension in interface IConfigurationElementpublic void setDescription(java.lang.String description)
public void setImage(ImageDescriptor icon)
icon - the image descriptorpublic void add(IConfigurationElement child)
add in interface IConfigurationElementchild - the child to addpublic boolean hasChildren()
hasChildren in interface IConfigurationElementpublic IConfigurationElement[] getChildren()
getChildren in interface IConfigurationElementpublic void setParent(IConfigurationElement parent)
setParent in interface IConfigurationElementparent - the parent configuration elementpublic IConfigurationElement getParent()
getParent in interface IConfigurationElementpublic void setToExport(boolean flag)
setToExport in interface IConfigurationElementflag - whether or not this configuration element should be exported.public boolean isSetToExport()
isSetToExport in interface IConfigurationElementpublic void setFile(java.io.File file)
setFile in interface IConfigurationElementfile - the associated filepublic java.io.File getFile()
getFile in interface IConfigurationElementpublic void setBuffer(java.lang.String buffer)
setBuffer in interface IConfigurationElementbuffer - the associated bufferpublic java.lang.String getBuffer()
getBuffer in interface IConfigurationElementpublic void setDifferent(boolean flag)
setDifferent in interface IConfigurationElementflag - true if the new configuration is different from the original,public boolean isDifferent()
isDifferent in interface IConfigurationElementpublic void setConflicting(boolean flag)
setConflicting in interface IConfigurationElementflag - true if the the new configuration is different from the original.public boolean isConflicting()
isConflicting in interface IConfigurationElementpublic java.io.File getFileToReplace()
getFileToReplace in interface IConfigurationElementpublic void setFileToReplace(java.io.File file)
setFileToReplace in interface IConfigurationElementfile - the file to replacepublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(IConfigurationElement o)
compareTo in interface java.lang.Comparable<IConfigurationElement>public void setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface IConfigurationElementkey - the key for the propertyvalue - the value for the propertypublic java.lang.String getProperty(java.lang.String key)
getProperty in interface IConfigurationElementkey - the key for the property