pl.edu.agh.cast.ui
Class AbstractTableView

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 pl.edu.agh.cast.ui.AbstractConfigurableView
                  extended by pl.edu.agh.cast.ui.AbstractTableView
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

public abstract class AbstractTableView
extends AbstractConfigurableView

This class is base class for all viewes which implement the IConfigurableView and have TableViewer as visual model.

Author:
Aleksander Pohl apohllo[at]o2.pl

Field Summary
protected  org.eclipse.jface.viewers.TableViewer _viewer
          Tree viewer which is used by this view.
 
Fields inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
_configuration, log
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AbstractTableView()
           
 
Method Summary
protected  void createControl(org.eclipse.swt.widgets.Composite parent)
          This method creats the tree control, it is intendet to be changed in subclasses which need some more sophisticated control.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This method initializes the part control, i.e.
 void dispose()
           
 java.lang.Object getInput()
           
protected  org.eclipse.jface.viewers.TableViewer getViewer()
           
 void setFocus()
          This method sets the focus on the tree viewer.
 void setInput(java.lang.Object object)
          Sets the input for the viewer.
 
Methods inherited from class pl.edu.agh.cast.ui.AbstractConfigurableView
activate, contributeToActionBars, getConfiguration, hookContextMenu, hookDoubleClickAction, init, makeActions, saveState
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, 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

_viewer

protected org.eclipse.jface.viewers.TableViewer _viewer
Tree viewer which is used by this view.

Constructor Detail

AbstractTableView

public AbstractTableView()
Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This method initializes the part control, i.e. the TableViewer.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

createControl

protected void createControl(org.eclipse.swt.widgets.Composite parent)
This method creats the tree control, it is intendet to be changed in subclasses which need some more sophisticated control.

Parameters:
parent -

setInput

public void setInput(java.lang.Object object)
Sets the input for the viewer. This default implementation sends the object to the viewer without checking its type, etc. This should be done in the content provider associated with the viewer.


getInput

public java.lang.Object getInput()
Returns:
the input of the view.

setFocus

public void setFocus()
This method sets the focus on the tree viewer.

Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

dispose

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

getViewer

protected org.eclipse.jface.viewers.TableViewer getViewer()


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.