alma::acs::eventbrowser::views::ChannelTreeView Class Reference

Inheritance diagram for alma::acs::eventbrowser::views::ChannelTreeView:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::eventbrowser::views::ChannelTreeView:
Collaboration graph
[legend]

List of all members.

Classes

class  NameSorter
class  TreeObject
class  TreeParent
class  ViewContentProvider
class  ViewLabelProvider

Public Member Functions

 ChannelTreeView ()
void createPartControl (Composite parent)
TreeViewer getViewer ()
void setFocus ()
void startMonitoring ()

Static Public Attributes

static final String ID = "alma.acs.eventbrowser.views.channeltree"

Private Member Functions

void hookContextMenu ()
void contributeToActionBars ()
void fillLocalPullDown (IMenuManager manager)
void fillContextMenu (IMenuManager manager)
void fillLocalToolBar (IToolBarManager manager)
void makeActions ()
void hookDoubleClickAction ()
void showMessage (String message)

Private Attributes

TreeViewer viewer
DrillDownAdapter drillDownAdapter
Action refreshAction
Action startMonitoringAction
Action doubleClickAction
ViewContentProvider vcp
IViewSite vs
Thread monitorThread
EventModel em
long howOften = 10000l

Detailed Description

This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content provider.

The view uses a label provider to define how model objects should be presented in the view. Each view can present the same model objects using different labels and icons, if needed. Alternatively, a single label provider can be shared between views in order to ensure that objects of the same type are presented in the same way everywhere.


Constructor & Destructor Documentation

alma::acs::eventbrowser::views::ChannelTreeView::ChannelTreeView (  )  [inline]

The constructor.


Member Function Documentation

void alma::acs::eventbrowser::views::ChannelTreeView::contributeToActionBars (  )  [inline, private]
void alma::acs::eventbrowser::views::ChannelTreeView::createPartControl ( Composite  parent  )  [inline]

This is a callback that will allow us to create the viewer and initialize it.

References contributeToActionBars(), drillDownAdapter, hookContextMenu(), hookDoubleClickAction(), makeActions(), startMonitoring(), startMonitoringAction, vcp, viewer, and vs.

void alma::acs::eventbrowser::views::ChannelTreeView::fillContextMenu ( IMenuManager  manager  )  [inline, private]
void alma::acs::eventbrowser::views::ChannelTreeView::fillLocalPullDown ( IMenuManager  manager  )  [inline, private]
void alma::acs::eventbrowser::views::ChannelTreeView::fillLocalToolBar ( IToolBarManager  manager  )  [inline, private]
TreeViewer alma::acs::eventbrowser::views::ChannelTreeView::getViewer (  )  [inline]

References viewer.

void alma::acs::eventbrowser::views::ChannelTreeView::hookContextMenu (  )  [inline, private]

References viewer.

Referenced by createPartControl().

void alma::acs::eventbrowser::views::ChannelTreeView::hookDoubleClickAction (  )  [inline, private]

References doubleClickAction, and viewer.

Referenced by createPartControl().

void alma::acs::eventbrowser::views::ChannelTreeView::makeActions (  )  [inline, private]
void alma::acs::eventbrowser::views::ChannelTreeView::setFocus (  )  [inline]

Passing the focus request to the viewer's control.

References viewer.

void alma::acs::eventbrowser::views::ChannelTreeView::showMessage ( String  message  )  [inline, private]

References viewer.

Referenced by makeActions().

void alma::acs::eventbrowser::views::ChannelTreeView::startMonitoring (  )  [inline]

Member Data Documentation

Referenced by startMonitoring().

final String alma::acs::eventbrowser::views::ChannelTreeView::ID = "alma.acs.eventbrowser.views.channeltree" [static]

Referenced by createPartControl().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2