//add handlers to handler service
IHandlerService handlerService = (IHandlerService) getSite().getService(IHandlerService.class);
if (handlerService != null) {
IHandler gotoHandler = new GotoMatchingBracketHandler();
handlerService.activateHandler(ActionDefinitionIds.GOTO_MATCHING_BRACKET, gotoHandler);
fOutlineHandler = new QuickOutlineHandler();
handlerService.activateHandler(ActionDefinitionIds.SHOW_OUTLINE, fOutlineHandler);
IHandler toggleCommentHandler = new ToggleLineCommentHandler();
handlerService.activateHandler(ActionDefinitionIds.TOGGLE_COMMENT, toggleCommentHandler);
IHandler addCommentBlockHandler = new AddBlockCommentHandler();
handlerService.activateHandler(ActionDefinitionIds.ADD_BLOCK_COMMENT, addCommentBlockHandler);
IHandler removeCommentBlockHandler = new RemoveBlockCommentHandler();
handlerService.activateHandler(ActionDefinitionIds.REMOVE_BLOCK_COMMENT, removeCommentBlockHandler);
}
fShowPropertiesAction = new ShowPropertiesAction(getEditorPart(), getSelectionProvider());
fFoldingGroup = new FoldingActionGroup(this, getSourceViewer());