return getSourceViewer().getTextWidget().getSelectionCount() != 0;
}
private void setProjectEditorStatus() {
// TODO: do not replace if equal ... check this
EditorAnnotationStatus status = new EditorAnnotationStatus(getAnnotationMode().getName(),
mShowAnnotationsMenu.getSelectedTypes());
getDocument().getProject().setEditorAnnotationStatus(status);
}