org.eclipse.cdt.debug.internal.core
Class CGlobalVariableManager

java.lang.Object
  extended by org.eclipse.cdt.debug.internal.core.CGlobalVariableManager
All Implemented Interfaces:
ICGlobalVariableManager

public class CGlobalVariableManager
extends java.lang.Object
implements ICGlobalVariableManager

Manages all global variables registered with a debug target.


Constructor Summary
CGlobalVariableManager(CDebugTarget target)
          Constructor for CGlobalVariableManager.
 
Method Summary
 void addGlobals(IGlobalVariableDescriptor[] descriptors)
          Registers with this manager the global variables specified by given descriptors.
 void dispose()
           
 IGlobalVariableDescriptor[] getDescriptors()
          Returns the array of descriptors of global varibales added to this manager.
 ICGlobalVariable[] getGlobals()
           
 java.lang.String getMemento()
           
 void removeAllGlobals()
          Removes all global variables from this manager.
 void removeGlobals(ICGlobalVariable[] globals)
          Removes specified global variables from this manager.
 void save()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CGlobalVariableManager

public CGlobalVariableManager(CDebugTarget target)
Constructor for CGlobalVariableManager.

Method Detail

getGlobals

public ICGlobalVariable[] getGlobals()

addGlobals

public void addGlobals(IGlobalVariableDescriptor[] descriptors)
                throws org.eclipse.debug.core.DebugException
Description copied from interface: ICGlobalVariableManager
Registers with this manager the global variables specified by given descriptors.

Specified by:
addGlobals in interface ICGlobalVariableManager
Parameters:
descriptors - the descriptors of global variables to register with this manager
Throws:
org.eclipse.debug.core.DebugException

removeGlobals

public void removeGlobals(ICGlobalVariable[] globals)
Description copied from interface: ICGlobalVariableManager
Removes specified global variables from this manager.

Specified by:
removeGlobals in interface ICGlobalVariableManager
Parameters:
globals - global variables to remove

removeAllGlobals

public void removeAllGlobals()
Description copied from interface: ICGlobalVariableManager
Removes all global variables from this manager.

Specified by:
removeAllGlobals in interface ICGlobalVariableManager

dispose

public void dispose()

getMemento

public java.lang.String getMemento()

save

public void save()

getDescriptors

public IGlobalVariableDescriptor[] getDescriptors()
Description copied from interface: ICGlobalVariableManager
Returns the array of descriptors of global varibales added to this manager.

Specified by:
getDescriptors in interface ICGlobalVariableManager
Returns:
the array of descriptors