g-Eclipse
Release 1.0.0

eu.geclipse.core.jobs
Class RemoteFilesContainer

java.lang.Object
  extended by PlatformObject
      extended by eu.geclipse.core.model.impl.AbstractGridElement
          extended by eu.geclipse.core.model.impl.AbstractGridContainer
              extended by eu.geclipse.core.model.impl.ResourceGridContainer
                  extended by eu.geclipse.core.jobs.RemoteFilesContainer
All Implemented Interfaces:
IGridContainer, IGridElement

public class RemoteFilesContainer
extends ResourceGridContainer

This is container connected with local IFolder, which contains links to remote files.
This container force calling fetchInfo() for all GEclipseFileStore children during fetching it content (listing folder).
Typically is used for Job folders "Input/Output Files".


Constructor Summary
RemoteFilesContainer(IResource resource)
           
 
Method Summary
 boolean canContain(IGridElement element)
          Determines if this may contain the specified element.
 boolean isLazy()
          Determines if this container is using a lazy loading mechanism to manage its children.
 
Methods inherited from class eu.geclipse.core.model.impl.ResourceGridContainer
getFileStore, getName, getParent, getPath, getResource, isLocal
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridContainer
contains, create, delete, deleteAll, dispose, findChild, findChildWithResource, getChildCount, getChildren, hasChildren, isDirty, refresh, setDirty
 
Methods inherited from class eu.geclipse.core.model.impl.AbstractGridElement
getAdapter, getProject, isHidden, isVirtual
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.geclipse.core.model.IGridElement
getProject, isHidden, isVirtual
 

Constructor Detail

RemoteFilesContainer

public RemoteFilesContainer(IResource resource)
Parameters:
resource - folder containing links to remote files
Method Detail

isLazy

public boolean isLazy()
Description copied from interface: IGridContainer
Determines if this container is using a lazy loading mechanism to manage its children. In that case the children are not loaded when the container is constructed but when the IGridContainer.getChildren(IProgressMonitor monitor) methode is called the first time. On subsequent calls of IGridContainer.getChildren(IProgressMonitor monitor) the formerly loaded children are returned unless the IGridContainer.setDirty() method was called. In that case a call to IGridContainer.getChildren(IProgressMonitor monitor) will cause a reload of this containers children. Lazy containers always have to return true if they are asked if they contain any children with IGridContainer.hasChildren().

Specified by:
isLazy in interface IGridContainer
Overrides:
isLazy in class ResourceGridContainer
Returns:
True if this container uses lazy loading.

canContain

public boolean canContain(IGridElement element)
Description copied from interface: IGridContainer
Determines if this may contain the specified element. This method works type specific, i.e. a container may or may not contain elements of a specified type.

Specified by:
canContain in interface IGridContainer
Overrides:
canContain in class AbstractGridContainer
Parameters:
element - The element that may be contained in this container.
Returns:
If this container may contain the specified element.

g-Eclipse
Release 1.0.0