java.lang.Objectcom.ibm.jdg2e.jface.viewers.examples.AbstractViewerExample
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 |
protected static final int TEXT_FIELD_WIDTH
protected org.eclipse.jface.viewers.StructuredViewer viewer
viewer
| Constructor Detail |
public AbstractViewerExample()
| Method Detail |
protected void createDynamicContextMenuActions()
public org.eclipse.swt.widgets.Composite createUI(org.eclipse.swt.widgets.Composite parent)
createViewer method.
parent - composite for creation of user interface.
public abstract void createViewer(org.eclipse.swt.widgets.Composite parent)
parent - the composite to use when adding viewervoid makeActions()