* Contributes the common global actions.
* @param part WorkbenchPart such as a view or editor
* @param bars Actionbar used to register global actions
*/
public void contributeGlobalActions( IWorkbenchPart part, IActionBars bars ) {
IKeyBindingService service = part.getSite().getKeyBindingService();
bars.setGlobalActionHandler(ActionFactory.BACK.getId(), getBACKWARD_HISTORYAction());
bars.setGlobalActionHandler(ActionFactory.FORWARD.getId(), getFORWARD_HISTORYAction());
bars.setGlobalActionHandler(ActionFactory.UNDO.getId(), getUNDOAction());
bars.setGlobalActionHandler(ActionFactory.REDO.getId(), getREDOAction());
bars.setGlobalActionHandler(ActionFactory.CUT.getId(), getCUTAction(part));
bars.setGlobalActionHandler(ActionFactory.COPY.getId(), getCOPYAction(part));
bars.setGlobalActionHandler(ActionFactory.PASTE.getId(), getPASTEAction(part));
bars.setGlobalActionHandler(ActionFactory.DELETE.getId(), getDELETEAction());
ISelectionProvider selection = part.getSite().getSelectionProvider();
if( selection != null ){
bars.setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), getPropertiesAction(part,selection));
}
if(actionCLOSE == null)
actionCLOSE = ActionFactory.CLOSE.create(part.getSite().getWorkbenchWindow());
service.registerAction(actionCLOSE);
bars.setGlobalActionHandler(ActionFactory.CLOSE.getId(), actionCLOSE);
if(actionSAVE == null)
actionSAVE = ActionFactory.SAVE.create(part.getSite().getWorkbenchWindow());
service.registerAction(actionSAVE);
bars.setGlobalActionHandler(ActionFactory.SAVE.getId(), actionSAVE);
if(actionCLOSE_ALL == null)
actionCLOSE_ALL = ActionFactory.CLOSE_ALL.create(part.getSite().getWorkbenchWindow());
bars.setGlobalActionHandler(ActionFactory.CLOSE_ALL.getId(), actionCLOSE_ALL);