提交 79c0d7a2 编写于 作者: S serge-rider

SQL editor: format menu visibility fix

上级 c931d4fe
......@@ -551,7 +551,7 @@ public abstract class SQLEditorBase extends BaseTextEditor implements DBPContext
addAction(menu, GROUP_SQL_EXTRAS, SQLEditorContributor.ACTION_CONTENT_ASSIST_INFORMATION);
menu.insertBefore(IWorkbenchActionConstants.MB_ADDITIONS, ActionUtils.makeCommandContribution(getSite(), "org.jkiss.dbeaver.ui.editors.sql.navigate.object"));
{
if (!isReadOnly() && getTextViewer().isEditable()) {
MenuManager formatMenu = new MenuManager(SQLEditorMessages.sql_editor_menu_format, "format");
IAction formatAction = getAction(SQLEditorContributor.ACTION_CONTENT_FORMAT_PROPOSAL);
if (formatAction != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册