org.gla.bisb.structure
Class ProjectScope

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.gla.bisb.structure.Category
          extended by org.gla.bisb.structure.ProjectScope
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class ProjectScope
extends Category

Project hierarchy representation of a projecr. This class wraps IProject resource providing Category-derived objects for categories of project objects. It creates the following categories: models

Author:
Vladislav Vyshemirsky

Constructor Summary
ProjectScope(org.eclipse.core.resources.IProject project, WorkspaceScope workspace)
          The constructor.
 
Method Summary
 java.lang.Object[] getChildren()
          Returns project children.
 java.lang.String getName()
          Returns the name of the orijinal IProject resource.
 java.lang.Object getParent()
          Returns the WorkspaceScope as project's parent.
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectScope

public ProjectScope(org.eclipse.core.resources.IProject project,
                    WorkspaceScope workspace)
The constructor. It uses IProject resource to read the information from.

Parameters:
project - Original IProject resource to read the data from.
workspace - A reference to the WorkspaceScope which is the parent for this object.
Method Detail

getChildren

public java.lang.Object[] getChildren()
Returns project children. The children are an array of the categories.

Specified by:
getChildren in class Category
Returns:
An array of children.
See Also:
Category.getChildren()

getParent

public java.lang.Object getParent()
Returns the WorkspaceScope as project's parent.

Specified by:
getParent in class Category
Returns:
The parent node.
See Also:
Category.getParent()

getName

public java.lang.String getName()
Returns the name of the orijinal IProject resource.

Specified by:
getName in class Category
Returns:
the name
See Also:
Category.getName()