JIVE Platform
Release 0.3.1

edu.buffalo.cse.jive.ui
Interface IJiveView

All Superinterfaces:
IAdaptable, IPersistable, IViewPart, IWorkbenchPart
All Known Subinterfaces:
IGraphicalJiveView, IStructuredJiveView
All Known Implementing Classes:
AbstractGraphicalJiveView, AbstractJiveView, AbstractStructuredJiveView

public interface IJiveView
extends IViewPart

A view part capable of presenting an IJiveDebugTarget. Typically, a target is presented in terms of one of its underlying models (e.g. the event log, contour model, or sequence model).


Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Method Summary
 void display(IJiveDebugTarget target)
          Changes the view to present the supplied IJiveDebugTarget, making it the new active target.
 IJiveDebugTarget getDisplayed()
          Returns the IJiveDebugTarget that is currently being presented by the view.
 
Methods inherited from interface org.eclipse.ui.IViewPart
getViewSite, init, init, saveState
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getDisplayed

IJiveDebugTarget getDisplayed()
Returns the IJiveDebugTarget that is currently being presented by the view. If there isn't an active target, then null is returned.

Returns:
the active target of the view or null if there isn't one

display

void display(IJiveDebugTarget target)
Changes the view to present the supplied IJiveDebugTarget, making it the new active target. Implementers may determine if the target should actually be presented.

This method should only be called on the UI thread. In order for non-UI threads to invoke this method, the following can be done.

     IJiveView view = ... ;
     IJiveDebugTarget target = ... ;
     
     Display display = JiveUITools.getStandardDisplay();
     display.syncExec(new Runnable() {
         public void run() {
             view.display(target);
         }
     });
 

Parameters:
target - the target to display in the view
See Also:
JiveUITools.getStandardDisplay(), Display#asyncExec(Runnable), Display#syncExec(Runnable)

JIVE Platform
Release 0.3.1