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

#758 SQL script rename handler

上级 9b5905f1
......@@ -862,6 +862,14 @@
</with>
</enabledWhen>
</handler>
<handler commandId="org.eclipse.ui.edit.text.showInformation" class="org.jkiss.dbeaver.ui.editors.sql.handlers.RenameHandler">
<!-- Handle showInformation - just because it has the same shortcut as rename -->
<enabledWhen>
<with variable="activePart">
<instanceof value="org.jkiss.dbeaver.ui.editors.sql.SQLEditor"/>
</with>
</enabledWhen>
</handler>
<!-- SQL editor handlers -->
......
......@@ -40,6 +40,8 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.*;
import org.eclipse.ui.texteditor.DefaultRangeIndicator;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
import org.eclipse.ui.texteditor.rulers.IColumnSupport;
import org.eclipse.ui.texteditor.rulers.RulerColumnDescriptor;
import org.eclipse.ui.texteditor.rulers.RulerColumnRegistry;
......@@ -422,6 +424,9 @@ public class SQLEditor extends SQLEditorBase implements
// Update controls
onDataSourceChange();
setAction(ITextEditorActionConstants.SHOW_INFORMATION, null);
//toolTipAction.setEnabled(false);
CoreFeatures.SQL_EDITOR_OPEN.use();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册