提交 dcae91fb 编写于 作者: S Serge Rider

Value view panel : plaint text formatting fix

上级 f787956d
......@@ -134,7 +134,9 @@ public abstract class AbstractTextPanelEditor<EDITOR extends BaseTextEditor> imp
BaseTextEditor textEditor = getTextEditor();
if (textEditor != null && ValueViewerPanel.getPanelSettings().getBoolean(PREF_TEXT_EDITOR_AUTO_FORMAT)) {
try {
textEditor.getViewer().doOperation(ISourceViewer.FORMAT);
if (textEditor.getViewer().canDoOperation(ISourceViewer.FORMAT)) {
textEditor.getViewer().doOperation(ISourceViewer.FORMAT);
}
} catch (Exception e) {
log.debug("Error formatting text", e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册