org.topbraidcomposer.navigation.instances
Class InstancesView

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.ui.views.AbstractStructuredViewerView
                      extended by org.topbraidcomposer.navigation.instances.InstancesView
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, IChangeEngineListener, IModelSelectionListener, IResourceSelectionListener, IOtherSelectingView, IRefreshableWorkbenchPart, IResourceSelector

public class InstancesView
extends AbstractStructuredViewerView
implements IOtherSelectingView, IChangeEngineListener, IModelSelectionListener, IResourceSelectionListener


Field Summary
static java.lang.String ID
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
InstancesView()
           
 
Method Summary
 void changeOperationPerformed(ChangeOperation operation, boolean undone)
          Notifies the receiver that changes to one or more Graphs have been performed.
protected  org.eclipse.jface.viewers.StructuredViewer createStructuredViewer(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
static InstancesView get(org.eclipse.ui.IWorkbenchPage page)
           
 InstancesTableColumns getColumns()
           
 com.hp.hpl.jena.rdf.model.Resource getSelectedType()
           
 org.eclipse.jface.viewers.TableViewer getTableViewer()
           
 void graphChangePerformed()
          Notifies the receiver that a global change to the current model has been performed.
 void graphDirty(com.hp.hpl.jena.graph.Graph graph)
          Called when a Graph has been set to dirty.
 void modelSelectionChanged()
          Called by the ModelSelection singleton after the currently selected model has changed.
 void refreshColumns()
           
 void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
          Called when the resource selection has changed.
 com.hp.hpl.jena.rdf.model.Resource selectOther(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> deletedResources)
          Selects a Resource different from any of the given resources.
 void setFocus()
           
protected  void setupDragAndDrop()
           
 
Methods inherited from class org.topbraidcomposer.ui.views.AbstractStructuredViewerView
addDragSupport, addDropSupport, createDoubleClickAction, createMainControls, fillContextMenu, getDragSource, getSelectedResources, getSelection, getStructuredViewer, hookContextMenu, initUnselector, recreateViewer, refreshWorkbenchPart
 
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

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

InstancesView

public InstancesView()
Method Detail

changeOperationPerformed

public void changeOperationPerformed(ChangeOperation operation,
                                     boolean undone)
Description copied from interface: IChangeEngineListener
Notifies the receiver that changes to one or more Graphs have been performed.

Specified by:
changeOperationPerformed in interface IChangeEngineListener
Parameters:
operation - the ModelOperation that was executed, redone or undone
undone - true if the operation has been undone

createStructuredViewer

protected org.eclipse.jface.viewers.StructuredViewer createStructuredViewer(org.eclipse.swt.widgets.Composite parent)
Specified by:
createStructuredViewer in class AbstractStructuredViewerView

dispose

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

get

public static InstancesView get(org.eclipse.ui.IWorkbenchPage page)

getColumns

public InstancesTableColumns getColumns()

getSelectedType

public com.hp.hpl.jena.rdf.model.Resource getSelectedType()

graphChangePerformed

public void graphChangePerformed()
Description copied from interface: IChangeEngineListener
Notifies the receiver that a global change to the current model has been performed. This is typically called when new sub-Graphs have been added or removed, allowing the receiver to do a complete refresh.

Specified by:
graphChangePerformed in interface IChangeEngineListener

graphDirty

public void graphDirty(com.hp.hpl.jena.graph.Graph graph)
Description copied from interface: IChangeEngineListener
Called when a Graph has been set to dirty.

Specified by:
graphDirty in interface IChangeEngineListener
Parameters:
graph - the Graph that has changed

getTableViewer

public org.eclipse.jface.viewers.TableViewer getTableViewer()

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

refreshColumns

public void refreshColumns()

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

selectOther

public com.hp.hpl.jena.rdf.model.Resource selectOther(java.util.Set<com.hp.hpl.jena.rdf.model.Resource> deletedResources)
Description copied from interface: IOtherSelectingView
Selects a Resource different from any of the given resources. The selection should be applied to the view itself, while the calling method will care for the global selection.

Specified by:
selectOther in interface IOtherSelectingView
Parameters:
deletedResources - the Resources that have been deleted
Returns:
the newly selected resource

setFocus

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

setupDragAndDrop

protected void setupDragAndDrop()
Overrides:
setupDragAndDrop in class AbstractStructuredViewerView