g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IDefaultGridElementManager

All Superinterfaces:
IGridContainer, IGridElement, IGridElementManager, IGridModelNotifier
All Known Subinterfaces:
IVoManager

public interface IDefaultGridElementManager
extends IGridElementManager

An IGridElementManager that supports the management of a default element. A default element is an element contained in the manager that represents a default choice whenever the user is asked to make a choice.


Method Summary
 IGridElement getDefault()
          The current default element of this manager.
 void setDefault(IGridElement defaultElement)
          Sets this manager default element.
 
Methods inherited from interface eu.geclipse.core.model.IGridElementManager
addElement, canManage, removeElement
 
Methods inherited from interface eu.geclipse.core.model.IGridContainer
canContain, contains, create, delete, deleteAll, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, isLazy, refresh, setDirty
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
dispose, getFileStore, getName, getParent, getPath, getProject, getResource, isHidden, isLocal, isVirtual
 
Methods inherited from interface eu.geclipse.core.model.IGridModelNotifier
addGridModelListener, removeGridModelListener
 

Method Detail

setDefault

void setDefault(IGridElement defaultElement)
                throws ProblemException
Sets this manager default element.

Parameters:
defaultElement - The element that should be set as default. If the element is not yet contained in the manager it will be added to the managers children.
Throws:
ProblemException - If this manager can not handle the specified element.
See Also:
IGridElementManager.canManage(IGridElement)

getDefault

IGridElement getDefault()
The current default element of this manager.

Returns:
The default element.

g-Eclipse
Release 1.0.0