smartAnnotateAction.setText("Annotate");
setAction(SmartAnnotateAction.ID, smartAnnotateAction);
getSite().getSelectionProvider().addSelectionChangedListener(smartAnnotateAction);
// create delete action
DeleteFeatureStructureAction deleteAnnotationAction = new DeleteFeatureStructureAction(
this);
deleteAnnotationAction.setText("Delete Annotation");
getSite().getSelectionProvider().addSelectionChangedListener(deleteAnnotationAction);
deleteAnnotationAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.DELETE);
setAction(IWorkbenchActionDefinitionIds.DELETE, deleteAnnotationAction);
setActionActivationCode(IWorkbenchActionDefinitionIds.DELETE, (char) 0, SWT.CR, SWT.NONE);
// create show annotation context editing action