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

Get rid of debug/team menus

上级 d8b41875
......@@ -109,6 +109,7 @@ import org.jkiss.dbeaver.ui.editors.sql.registry.SQLPresentationDescriptor;
import org.jkiss.dbeaver.ui.editors.sql.registry.SQLPresentationPanelDescriptor;
import org.jkiss.dbeaver.ui.editors.sql.registry.SQLPresentationRegistry;
import org.jkiss.dbeaver.ui.editors.text.ScriptPositionColumn;
import org.jkiss.dbeaver.ui.navigator.INavigatorModelView;
import org.jkiss.dbeaver.ui.navigator.NavigatorUtils;
import org.jkiss.dbeaver.utils.GeneralUtils;
import org.jkiss.dbeaver.utils.PrefUtils;
......@@ -614,6 +615,10 @@ public class SQLEditor extends SQLEditorBase implements
@Override
public <T> T getAdapter(Class<T> required)
{
if (required == INavigatorModelView.class) {
return null;
}
if (resultTabs != null && !resultTabs.isDisposed()) {
if (required == IFindReplaceTarget.class) {
return required.cast(findReplaceTarget);
......
......@@ -534,6 +534,12 @@ public abstract class SQLEditorBase extends BaseTextEditor implements DBPContext
*/
}
// Exclude input additions. Get rid of tons of crap from debug/team extensions
@Override
protected boolean isEditorInputIncludedInContextMenu() {
return false;
}
@Override
public void editorContextMenuAboutToShow(IMenuManager menu) {
super.editorContextMenuAboutToShow(menu);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册