org.eclipse.datatools.sqltools.result.internal.ui.viewer
Class TextResultViewer
java.lang.Object
   org.eclipse.datatools.sqltools.result.internal.ui.viewer.TextResultViewer
org.eclipse.datatools.sqltools.result.internal.ui.viewer.TextResultViewer
- public class TextResultViewer 
- extends java.lang.Object
This is a text widget with some common context menu items:CUT,COPY, PASTE,
 etc. that is used to display SQL results in text mode. User can also hook
 user-defined items.
- Author:
- Dafan Yang
 
| Constructor Summary | 
| TextResultViewer(org.eclipse.swt.widgets.Composite parent,
                 int style,
                 java.util.ArrayList hookedActions)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TextResultViewer
public TextResultViewer(org.eclipse.swt.widgets.Composite parent,
                        int style,
                        java.util.ArrayList hookedActions)
- Parameters:
- parent-
- style-
- hookedActions-
initializeCommonActions
public void initializeCommonActions()
- get all global actions
 
- 
 
configureViewer
public void configureViewer()
- configure the source viewer
 
- 
 
getViewer
public org.eclipse.jface.text.source.SourceViewer getViewer()
- 
 
resetUndoMgr
public void resetUndoMgr()
- 
 
addHookedContextMenuItems
public void addHookedContextMenuItems()
- hook some menu item to the context menu
 
-