|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.gla.bisb.structure.Category
org.gla.bisb.structure.WorkspaceScope
public class WorkspaceScope
Project hierarchy representation of the workspace. This class wraps IWorkspace resource providing ProjectScope objects for the projects. It attaches workspace change listener, which refreshes the whole project structure when something is changed. It also performs a callback for registered listeners (in our case that is ProjectBrowser view which has to be updated once the changes occur).
Constructor Summary | |
---|---|
WorkspaceScope()
The default constructor. |
Method Summary | |
---|---|
void |
addUpdateListener(org.eclipse.core.resources.IResourceChangeListener listener)
Allows attaching a listener to project structure changes. |
java.lang.Object[] |
getChildren()
Returns the array of ProjectScope s |
java.lang.String |
getName()
Returns null, as the workspace does not have a name. |
java.lang.Object |
getParent()
Returns this class. |
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 |
---|
public WorkspaceScope()
ProjectScope
objects. It also attaches a listener
to workspace's ResoureChanged
callback.
Method Detail |
---|
public void addUpdateListener(org.eclipse.core.resources.IResourceChangeListener listener)
listener
- A listener class of IResourceChangeListener typepublic java.lang.Object[] getChildren()
ProjectScope
s
getChildren
in class Category
Category.getChildren()
,
ProjectScope
public java.lang.Object getParent()
getParent
in class Category
Category.getParent()
public java.lang.String getName()
getName
in class Category
Category.getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |