org.topbraidcomposer.sparql.view
Class SPARQLView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.topbraidcomposer.ui.views.AbstractView
                  extended by org.topbraidcomposer.sparql.view.SPARQLView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation, IModelSelectionListener, IResourceSelectionListener, ISPARQLProvider, IStatusUpdater

public class SPARQLView
extends AbstractView
implements IModelSelectionListener, IResourceSelectionListener, ISPARQLProvider, IStatusUpdater


Field Summary
static int QUERY_TEXT_PROPERTY_ID
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
SPARQLView()
           
 
Method Summary
 void assertConstruct(java.lang.String title)
           
protected  void createMainControls(org.eclipse.swt.widgets.Composite parent)
           
 void displayResultSet(com.hp.hpl.jena.query.ResultSet rs)
           
 void displayStatements(java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> ss)
           
 void dispose()
           
 void executeQuery()
           
 void executeQuery(ISPARQLHandler handler)
           
 void executeQuery(java.lang.Runnable andThen)
           
 void executeQuery(java.lang.String query)
           
static SPARQLView get()
           
 java.lang.String getErrorMessage()
           
 java.lang.String getQueryString()
           
 ResultsTableViewer getResultsTableViewer()
           
 java.lang.String getSPARQLExpression()
           
 void inferConstruct(java.lang.String title)
           
 java.util.Iterator listConstructedStatements()
           
 void modelSelectionChanged()
          Called by the ModelSelection singleton after the currently selected model has changed.
 void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
          Called when the resource selection has changed.
 void setFocus()
           
 void toggleLayout()
           
 void updateStatus()
           
 
Methods inherited from class org.topbraidcomposer.ui.views.AbstractView
asyncExec, close, createPartControl, focusResourceEditor
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

QUERY_TEXT_PROPERTY_ID

public static final int QUERY_TEXT_PROPERTY_ID
See Also:
Constant Field Values
Constructor Detail

SPARQLView

public SPARQLView()
Method Detail

assertConstruct

public void assertConstruct(java.lang.String title)

createMainControls

protected void createMainControls(org.eclipse.swt.widgets.Composite parent)
Specified by:
createMainControls in class AbstractView

displayResultSet

public void displayResultSet(com.hp.hpl.jena.query.ResultSet rs)

displayStatements

public void displayStatements(java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> ss)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart

executeQuery

public void executeQuery()

executeQuery

public void executeQuery(java.lang.Runnable andThen)

executeQuery

public void executeQuery(ISPARQLHandler handler)

executeQuery

public void executeQuery(java.lang.String query)

get

public static SPARQLView get()

getErrorMessage

public java.lang.String getErrorMessage()

getQueryString

public java.lang.String getQueryString()

getSPARQLExpression

public java.lang.String getSPARQLExpression()
Specified by:
getSPARQLExpression in interface ISPARQLProvider

getResultsTableViewer

public ResultsTableViewer getResultsTableViewer()

inferConstruct

public void inferConstruct(java.lang.String title)

listConstructedStatements

public java.util.Iterator listConstructedStatements()

modelSelectionChanged

public void modelSelectionChanged()
Description copied from interface: IModelSelectionListener
Called by the ModelSelection singleton after the currently selected model has changed.

Specified by:
modelSelectionChanged in interface IModelSelectionListener

resourceSelected

public void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
Description copied from interface: IResourceSelectionListener
Called when the resource selection has changed. This method is called as a side effect by the ResourceSelection class.

Specified by:
resourceSelected in interface IResourceSelectionListener
Parameters:
resource - the new selection

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

toggleLayout

public void toggleLayout()

updateStatus

public void updateStatus()
Specified by:
updateStatus in interface IStatusUpdater