提交 f0c660f1 编写于 作者: A Alexander Fedorov

#2556 override context menu id for editor and ruler

上级 5818c3e5
......@@ -171,6 +171,13 @@ public abstract class SQLEditorBase extends BaseTextEditor implements IErrorVisu
setSourceViewerConfiguration(new SQLEditorSourceViewerConfiguration(this, getPreferenceStore()));
setKeyBindingScopes(new String[]{TEXT_EDITOR_CONTEXT, SQLEditorContributions.SQL_EDITOR_CONTEXT}); //$NON-NLS-1$
}
@Override
protected void initializeEditor() {
super.initializeEditor();
setEditorContextMenuId(SQLEditorContributions.SQL_EDITOR_CONTEXT_MENU_ID);
setRulerContextMenuId(SQLEditorContributions.SQL_RULER_CONTEXT_MENU_ID);
}
@Nullable
public abstract DBCExecutionContext getExecutionContext();
......
......@@ -2,6 +2,9 @@ package org.jkiss.dbeaver.ui.editors.sql;
public class SQLEditorContributions {
public static final String SQL_EDITOR_CONTEXT = "org.jkiss.dbeaver.ui.editors.sql";
public static final String SQL_EDITOR_CONTEXT = "org.jkiss.dbeaver.ui.editors.sql"; //$NON-NLS-1$
public static final String SQL_EDITOR_CONTEXT_MENU_ID = "#SQLEditorContext"; //$NON-NLS-1$
public static final String SQL_RULER_CONTEXT_MENU_ID = "#SQLRulerContext"; //$NON-NLS-1$
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册