|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.core.cdtvariables.StorableCdtVariables
public class StorableCdtVariables
This class represents the set of Build Macros that could be loaded and stored in XML
Field Summary | |
---|---|
static java.lang.String |
MACROS_ELEMENT_NAME
|
Constructor Summary | |
---|---|
StorableCdtVariables(boolean readOnly)
|
|
StorableCdtVariables(ICdtVariable[] vars,
boolean readOnly)
|
|
StorableCdtVariables(org.eclipse.cdt.core.settings.model.ICStorageElement element,
boolean readOnly)
|
|
StorableCdtVariables(StorableCdtVariables base,
boolean readOnly)
|
Method Summary | |
---|---|
ICdtVariable |
checkMacro(java.lang.String name,
int type,
java.lang.String value)
|
ICdtVariable |
checkMacro(java.lang.String name,
int type,
java.lang.String[] value)
|
boolean |
contains(ICdtVariable var)
|
ICdtVariable |
createMacro(ICdtVariable copy)
|
ICdtVariable |
createMacro(java.lang.String name,
int type,
java.lang.String value)
|
ICdtVariable |
createMacro(java.lang.String name,
int type,
java.lang.String[] value)
|
void |
createMacros(ICdtVariable[] macros)
|
boolean |
deleteAll()
|
ICdtVariable |
deleteMacro(java.lang.String name)
|
ICdtVariable |
getMacro(java.lang.String name)
|
ICdtVariable[] |
getMacros()
|
boolean |
isChanged()
Returns the "change" state for this set of macros. |
boolean |
isDirty()
Returns the "dirty" state for this set of macros. |
boolean |
isEmpty()
|
void |
serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
|
void |
setChanged(boolean changed)
sets the "change" state for this set of macros. |
void |
setDirty(boolean dirty)
sets the "dirty" state for this set of macros. |
void |
setMacros(ICdtVariable[] macros)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MACROS_ELEMENT_NAME
Constructor Detail |
---|
public StorableCdtVariables(boolean readOnly)
public StorableCdtVariables(StorableCdtVariables base, boolean readOnly)
public StorableCdtVariables(ICdtVariable[] vars, boolean readOnly)
public StorableCdtVariables(org.eclipse.cdt.core.settings.model.ICStorageElement element, boolean readOnly)
Method Detail |
---|
public void serialize(org.eclipse.cdt.core.settings.model.ICStorageElement element)
public ICdtVariable createMacro(java.lang.String name, int type, java.lang.String value)
public ICdtVariable checkMacro(java.lang.String name, int type, java.lang.String value)
public ICdtVariable checkMacro(java.lang.String name, int type, java.lang.String[] value)
public void setMacros(ICdtVariable[] macros)
public void createMacros(ICdtVariable[] macros)
public boolean isEmpty()
public ICdtVariable createMacro(ICdtVariable copy)
public ICdtVariable createMacro(java.lang.String name, int type, java.lang.String[] value)
public boolean isDirty()
true
, that means that the macros
is out of synch with the repository and the macros need to be serialized.
false
when the macros are serialized
by calling the serialize() method
public void setDirty(boolean dirty)
dirty
- represents the new stateisDirty()
public boolean isChanged()
public void setChanged(boolean changed)
changed
- represents the new "change" stateisChanged()
public ICdtVariable getMacro(java.lang.String name)
public ICdtVariable[] getMacros()
public ICdtVariable deleteMacro(java.lang.String name)
public boolean deleteAll()
public boolean contains(ICdtVariable var)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |