de.kupzog.ktable
Class KTableActionHandler

java.lang.Object
  extended by de.kupzog.ktable.KTableActionHandler

public class KTableActionHandler
extends java.lang.Object

Author:
Lorenz Maierhofer

Field Summary
 de.kupzog.ktable.KTableActionHandler.KTableCopyAction m_CopyAction
           
 de.kupzog.ktable.KTableActionHandler.KTableCopyAllAction m_CopyAllAction
           
 de.kupzog.ktable.KTableActionHandler.KTableCutAction m_CutAction
           
 de.kupzog.ktable.KTableActionHandler.KTablePasteAction m_PasteAction
           
 de.kupzog.ktable.KTableActionHandler.KTableSelectAllAction m_SelectAllAction
           
 
Constructor Summary
KTableActionHandler(KTable table)
           
 
Method Summary
 org.eclipse.jface.action.MenuManager getMenuManager()
           
 void registerGlobalActions(org.eclipse.ui.IActionBars actionBar)
          Registers the cut, copy, paste and select_all actions for global use at the IActionBar given.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_CopyAction

public de.kupzog.ktable.KTableActionHandler.KTableCopyAction m_CopyAction

m_CopyAllAction

public de.kupzog.ktable.KTableActionHandler.KTableCopyAllAction m_CopyAllAction

m_CutAction

public de.kupzog.ktable.KTableActionHandler.KTableCutAction m_CutAction

m_PasteAction

public de.kupzog.ktable.KTableActionHandler.KTablePasteAction m_PasteAction

m_SelectAllAction

public de.kupzog.ktable.KTableActionHandler.KTableSelectAllAction m_SelectAllAction
Constructor Detail

KTableActionHandler

public KTableActionHandler(KTable table)
Method Detail

getMenuManager

public org.eclipse.jface.action.MenuManager getMenuManager()
Returns:
Returns the menu manager used to build the context menu of the table.

The purpose for this is normally the registering of context menus in the workbench.

See Also:
IWorkbenchPartSite.registerContextMenu(org.eclipse.jface.action.MenuManager, org.eclipse.jface.viewers.ISelectionProvider)

registerGlobalActions

public void registerGlobalActions(org.eclipse.ui.IActionBars actionBar)
Registers the cut, copy, paste and select_all actions for global use at the IActionBar given.

Currently does not set up the UNDO and REDO actions because they will be implemented in another way.

Parameters:
actionBar - The IActionBars that allows global action registration. Normally you can get that with getViewerSite().getActionBars() or getEditorSite().getActionBars().