public void updateStructuralEditingModeStatusField() {
if (this.statusLineHandler == null) {
return;
}
StatusLineContributionItem field = this.statusLineHandler.getEditingModeStatusContributionItem();
if (field != null) {
field.setText((isStructuralEditingEnabled() ? "strict/paredit" : "unrestricted")
+ " edit mode" + (inEscapeSequence ? " ESC" : ""));
field.setToolTipText(
(isStructuralEditingEnabled()
? "strict/paredit edit mode:\neditor does its best to prevent you from breaking the structure of the code (requires you to know shortcut commands well)."
: "unrestricted edit mode:\nhelps you with edition, but does not get in your way."));
}
}