com.bbn.swede.view.uriexplorer.core
Class URIExplorerContentProvider

java.lang.Object
  extended bycom.bbn.swede.view.uriexplorer.core.URIExplorerContentProvider

public class URIExplorerContentProvider
extends Object

Builds the Semantic Web view of the Eclipse workspace for display in URI Explorer. Much of the structure returned by this class is taken directly from the OWLModel for a document. Resources that are not included in the model are returned as well, as instances of IFile, IFolder, and IProject.


Constructor Summary
URIExplorerContentProvider()
           
 
Method Summary
 void dispose()
           
 Object[] getChildren(Object parent)
           
 Object[] getElements(Object parent)
           
protected  Object[] getNonOWLFiles(IOWLElement elem)
          Builds a list of files that are parented to a specified element and are not in the OWL model.
protected  Object[] getNonOWLFolders(IOWLElement elem)
          Builds a list of folders that are parented to a specific element but not in the OWL model.
protected  Object[] getNonOWLProjects()
          Builds a list of projects that do not have the semantic web nature.
 Object getParent(Object element)
           
 boolean hasChildren(Object element)
           
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIExplorerContentProvider

public URIExplorerContentProvider()
Method Detail

getChildren

public Object[] getChildren(Object parent)

getParent

public Object getParent(Object element)

hasChildren

public boolean hasChildren(Object element)

getElements

public Object[] getElements(Object parent)

dispose

public void dispose()

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)

getNonOWLFolders

protected Object[] getNonOWLFolders(IOWLElement elem)
Builds a list of folders that are parented to a specific element but not in the OWL model.

Parameters:
elem - The element to check for non-OWL subfolders
Returns:
An array containing all child resources of elem that are folders and are not in the OWL model. This may be an empty array.

getNonOWLProjects

protected Object[] getNonOWLProjects()
Builds a list of projects that do not have the semantic web nature.

Returns:
An array of all project resources in the Eclipse worksapce that do not have the semantic web nature.

getNonOWLFiles

protected Object[] getNonOWLFiles(IOWLElement elem)
Builds a list of files that are parented to a specified element and are not in the OWL model.

Parameters:
elem - The element to check for non-OWL files
Returns:
An array containing all child resources of elem that are files and are not in the OWL model. This may be an empty array.


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.