com.ibm.jdg2e.jface.viewers.examples
Class AbstractViewerExample

java.lang.Object
  extended bycom.ibm.jdg2e.jface.viewers.examples.AbstractViewerExample
Direct Known Subclasses:
ListViewerExample, TableColumnViewerExample, TableTreeViewerExample, TableViewerExample, TreeViewerExample

public abstract class AbstractViewerExample
extends java.lang.Object

Base class for all viewer examples.


Field Summary
protected static int TEXT_FIELD_WIDTH
          Used to set layout width in dialog
protected  org.eclipse.jface.viewers.StructuredViewer viewer
          Comment for viewer
 
Constructor Summary
AbstractViewerExample()
           
 
Method Summary
protected  void createDynamicContextMenuActions()
          Create common context menu used by all viewers.
 org.eclipse.swt.widgets.Composite createUI(org.eclipse.swt.widgets.Composite parent)
          Create basic user interface structure.
abstract  void createViewer(org.eclipse.swt.widgets.Composite parent)
          Used to customize the content of the user interface.
(package private)  void makeActions()
          Create actions that can be used for any viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_FIELD_WIDTH

protected static final int TEXT_FIELD_WIDTH
Used to set layout width in dialog

See Also:
Constant Field Values

viewer

protected org.eclipse.jface.viewers.StructuredViewer viewer
Comment for viewer

Constructor Detail

AbstractViewerExample

public AbstractViewerExample()
Method Detail

createDynamicContextMenuActions

protected void createDynamicContextMenuActions()
Create common context menu used by all viewers.


createUI

public org.eclipse.swt.widgets.Composite createUI(org.eclipse.swt.widgets.Composite parent)
Create basic user interface structure. Customization is performed in the createViewer method.

Parameters:
parent - composite for creation of user interface.
Returns:
composite used to create user interface.

createViewer

public abstract void createViewer(org.eclipse.swt.widgets.Composite parent)
Used to customize the content of the user interface.

Parameters:
parent - the composite to use when adding viewer

makeActions

void makeActions()
Create actions that can be used for any viewer.