

Classes | |
| class | NumConsumersLabelProvider |
| class | NumSuppliersLabelProvider |
| class | ServiceNameLabelProvider |
| class | ServiceViewerComparator |
| class | ViewContentProvider |
Public Member Functions | |
| ServiceSummaryView () | |
| void | createPartControl (Composite parent) |
| void | setFocus () |
| void | startMonitoring () |
Static Public Attributes | |
| static final String | ID = "alma.acs.eventbrowser.views.servicesummary" |
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 | |
| TableViewer | viewer |
| Action | refresh |
| Action | startMonitoringAction |
| Action | doubleClickAction |
| EventModel | em |
| long | howOften = 10000l |
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.
| alma::acs::eventbrowser::views::ServiceSummaryView::ServiceSummaryView | ( | ) | [inline] |
The constructor.
| void alma::acs::eventbrowser::views::ServiceSummaryView::contributeToActionBars | ( | ) | [inline, private] |
References fillLocalPullDown(), and fillLocalToolBar().
Referenced by createPartControl().
| void alma::acs::eventbrowser::views::ServiceSummaryView::createPartControl | ( | Composite | parent | ) | [inline] |
This is a callback that will allow us to create the viewer and initialize it.
References contributeToActionBars(), em, alma::acs::eventbrowser::model::EventModel::getInstance(), hookContextMenu(), hookDoubleClickAction(), makeActions(), startMonitoring(), startMonitoringAction, and viewer.
| void alma::acs::eventbrowser::views::ServiceSummaryView::fillContextMenu | ( | IMenuManager | manager | ) | [inline, private] |
References refresh, and startMonitoringAction.
| void alma::acs::eventbrowser::views::ServiceSummaryView::fillLocalPullDown | ( | IMenuManager | manager | ) | [inline, private] |
References refresh, and startMonitoringAction.
Referenced by contributeToActionBars().
| void alma::acs::eventbrowser::views::ServiceSummaryView::fillLocalToolBar | ( | IToolBarManager | manager | ) | [inline, private] |
References refresh, and startMonitoringAction.
Referenced by contributeToActionBars().
| void alma::acs::eventbrowser::views::ServiceSummaryView::hookContextMenu | ( | ) | [inline, private] |
References viewer.
Referenced by createPartControl().
| void alma::acs::eventbrowser::views::ServiceSummaryView::hookDoubleClickAction | ( | ) | [inline, private] |
References doubleClickAction, and viewer.
Referenced by createPartControl().
| void alma::acs::eventbrowser::views::ServiceSummaryView::makeActions | ( | ) | [inline, private] |
References doubleClickAction, refresh, showMessage(), startMonitoring(), startMonitoringAction, and viewer.
Referenced by createPartControl().
| void alma::acs::eventbrowser::views::ServiceSummaryView::setFocus | ( | ) | [inline] |
Passing the focus request to the viewer's control.
References viewer.
| void alma::acs::eventbrowser::views::ServiceSummaryView::showMessage | ( | String | message | ) | [inline, private] |
References viewer.
Referenced by makeActions().
| void alma::acs::eventbrowser::views::ServiceSummaryView::startMonitoring | ( | ) | [inline] |
References howOften, startMonitoringAction, and viewer.
Referenced by createPartControl(), and makeActions().
Referenced by hookDoubleClickAction(), and makeActions().
long alma::acs::eventbrowser::views::ServiceSummaryView::howOften = 10000l [private] |
Referenced by startMonitoring().
final String alma::acs::eventbrowser::views::ServiceSummaryView::ID = "alma.acs.eventbrowser.views.servicesummary" [static] |
Action alma::acs::eventbrowser::views::ServiceSummaryView::refresh [private] |
Referenced by fillContextMenu(), fillLocalPullDown(), fillLocalToolBar(), and makeActions().
Referenced by createPartControl(), fillContextMenu(), fillLocalPullDown(), fillLocalToolBar(), makeActions(), and startMonitoring().
TableViewer alma::acs::eventbrowser::views::ServiceSummaryView::viewer [private] |
Referenced by createPartControl(), hookContextMenu(), hookDoubleClickAction(), makeActions(), setFocus(), showMessage(), and startMonitoring().
1.6.2