g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridProject

All Superinterfaces:
IGridContainer, IGridElement

public interface IGridProject
extends IGridContainer

Grid element for projects in the grid model. These projects have not necessarily to be Grid projects but can also be any other type of project located in the workspace. If this is really a grid project, i.e. if hasGridNature() returns true, it contains a number of standard folders.


Method Summary
 IGridContainer getProjectFolder(java.lang.Class<? extends IGridElement> elementType)
          Get the project folder that is used by default by this project to store elements of the specified type.
 IGridContainer getProjectFolder(IGridElement element)
          Get the project folder that is used by default by this project to store elements of the specified type.
 java.lang.String getProjectFolderID(IGridContainer folder)
          Get the project folder ID of the specified IGridContainer or return null if the specified container is not a project folder.
 IVirtualOrganization getVO()
          Get the virtual organization that is associated with this project.
 boolean hasGridNature()
          Returns true of this is a project with GridNature and false if it is any other type of project.
 boolean isOpen()
          Determine if this project is currently open.
 
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
 

Method Detail

getProjectFolder

IGridContainer getProjectFolder(java.lang.Class<? extends IGridElement> elementType)
Get the project folder that is used by default by this project to store elements of the specified type. If no such folder is defined for this project the project itself is returned.

Parameters:
elementType - The type of the element to be stored.
Returns:
The folder that is used by default to store elements of the specified type or the project itself if no such folder is defined for this project.

getProjectFolder

IGridContainer getProjectFolder(IGridElement element)
Get the project folder that is used by default by this project to store elements of the specified type. If no such folder is defined for this project the project itself is returned.

Parameters:
element - The element to be stored.
Returns:
The folder that is used by default to store elements of the specified type or the project itself if no such folder is defined for this project.
See Also:
getProjectFolder(Class)

getProjectFolderID

java.lang.String getProjectFolderID(IGridContainer folder)
Get the project folder ID of the specified IGridContainer or return null if the specified container is not a project folder.

Parameters:
folder - The folder for which to return the ID.
Returns:
Either the ID or null.

getVO

IVirtualOrganization getVO()
Get the virtual organization that is associated with this project.

Returns:
The associated IVirtualOrganization.

hasGridNature

boolean hasGridNature()
Returns true of this is a project with GridNature and false if it is any other type of project.

Returns:
True if this is really a Grid project.

isOpen

boolean isOpen()
Determine if this project is currently open.

Returns:
True if this project is open, false otherwise.

g-Eclipse
Release 1.0.0