net.sf.jbatchengine.monitor.views
Class BatchMonitorView

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 net.sf.jbatchengine.monitor.views.BatchMonitorView
All Implemented Interfaces:
IAdaptable, IExecutableExtension, IPersistable, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPartOrientation

public class BatchMonitorView
extends ViewPart

The Monitor View

Version:
$Revision: 1.1 $, $Date: 2006/10/20 11:30:57 $
Author:
$Author: simas_ch $

Field Summary
private  Action cancel
           
private  TableColumn columnCreatedAt
           
private  TableColumn columnCreatedUser
           
private  TableColumn columnEndedAt
           
private  TableColumn columnId
           
private  TableColumn columnName
           
private  String[] columnNames
           
private  TableColumn columnParam
           
private  TableColumn columnQueue
           
private  TableColumn columnStartedAt
           
private  TableColumn columnStatus
           
private  TableColumn columnTyp
           
private  int[] columnWidths
           
private  Action filterStatusAction
           
static String ID
           
private  Action refresh
           
private  ViewerFilter statusFilter
           
private  Table table
           
private  TableViewer viewer
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
BatchMonitorView()
          The constructor.
 
Method Summary
private  void contributeToActionBars()
           
 void createPartControl(Composite parent)
          This is a callback that will allow us to create the viewer and initialize it.
private  void createTable(Composite parent)
          Create the Table
private  void createTableViewer()
          Create the TableViewer
private  void fillContextMenu(IMenuManager manager)
           
private  void fillLocalPullDown(IMenuManager manager)
           
private  void fillLocalToolBar(IToolBarManager manager)
           
private  void hookContextMenu()
           
private  void makeActions()
           
 void setFocus()
          Passing the focus request to the viewer's control.
protected  void updateStatusFilter()
           
 
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
addPropertyListener, dispose, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, 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, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

viewer

private TableViewer viewer

table

private Table table

refresh

private Action refresh

cancel

private Action cancel

filterStatusAction

private Action filterStatusAction

statusFilter

private ViewerFilter statusFilter

columnNames

private final String[] columnNames

columnWidths

private final int[] columnWidths

columnId

private TableColumn columnId

columnTyp

private TableColumn columnTyp

columnName

private TableColumn columnName

columnParam

private TableColumn columnParam

columnQueue

private TableColumn columnQueue

columnCreatedAt

private TableColumn columnCreatedAt

columnCreatedUser

private TableColumn columnCreatedUser

columnStartedAt

private TableColumn columnStartedAt

columnEndedAt

private TableColumn columnEndedAt

columnStatus

private TableColumn columnStatus
Constructor Detail

BatchMonitorView

public BatchMonitorView()
The constructor.

Method Detail

createPartControl

public void createPartControl(Composite parent)
This is a callback that will allow us to create the viewer and initialize it.

Specified by:
createPartControl in interface IWorkbenchPart
Specified by:
createPartControl in class WorkbenchPart

hookContextMenu

private void hookContextMenu()

contributeToActionBars

private void contributeToActionBars()

fillLocalPullDown

private void fillLocalPullDown(IMenuManager manager)

fillContextMenu

private void fillContextMenu(IMenuManager manager)

fillLocalToolBar

private void fillLocalToolBar(IToolBarManager manager)

makeActions

private void makeActions()

updateStatusFilter

protected void updateStatusFilter()

setFocus

public void setFocus()
Passing the focus request to the viewer's control.

Specified by:
setFocus in interface IWorkbenchPart
Specified by:
setFocus in class WorkbenchPart

createTableViewer

private void createTableViewer()
Create the TableViewer


createTable

private void createTable(Composite parent)
Create the Table

Parameters:
parent -