plugin.xml 81.4 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>

<!--
 * DBeaver - Universal Database Manager
S
serge-rider 已提交
6
 * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
  -->

<plugin>
    <extension-point id="org.jkiss.dbeaver.pluginService" name="%extension-point.org.jkiss.dbeaver.pluginService.name" schema="schema/org.jkiss.dbeaver.pluginService.exsd"/>
S
Serge Rider 已提交
23

S
Serge Rider 已提交
24
    <!-- UI extensions -->
S
serge-rider 已提交
25
    <extension-point id="org.jkiss.dbeaver.objectManager" name="%extension-point.org.jkiss.dbeaver.objectManager.name" schema="schema/org.jkiss.dbeaver.objectManager.exsd"/>
S
Serge Rider 已提交
26
    <extension-point id="org.jkiss.dbeaver.dataSourceView" name="%extension-point.org.jkiss.dbeaver.dataSourceView.name" schema="schema/org.jkiss.dbeaver.dataSourceView.exsd"/>
27 28
    <extension-point id="org.jkiss.dbeaver.tools" name="%extension-point.org.jkiss.dbeaver.tools.name" schema="schema/org.jkiss.dbeaver.tools.exsd"/>
    <extension-point id="org.jkiss.dbeaver.workbenchHandler" name="%extension-point.org.jkiss.dbeaver.workbenchHandler.name" schema="schema/org.jkiss.dbeaver.workbenchHandler.exsd"/>
29
    <extension-point id="org.jkiss.dbeaver.ui.propertyConfigurator" name="%extension-point.org.jkiss.dbeaver.ui.propertyConfigurator.name" schema="schema/org.jkiss.dbeaver.ui.propertyConfigurator.exsd"/>
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

    <extension point="org.eclipse.core.contenttype.contentTypes">
        <content-type
            file-extensions="bm"
            id="org.jkiss.dbeaver.bookmark"
            name="%content-type.org.jkiss.dbeaver.bookmark.name"
            priority="normal"
            describer="org.jkiss.dbeaver.ui.resources.bookmarks.BookmarkContentTypeDescriber"/>
    </extension>

    <extension point="org.eclipse.core.expressions.propertyTesters">
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.GlobalPropertyTester"
            id="org.jkiss.dbeaver.ui.actions.GlobalPropertyTester"
            namespace="org.jkiss.dbeaver.core.global"
            properties="standalone,hasActiveProject,hasMultipleProjects"
            type="java.lang.Object"/>
47 48 49 50 51 52
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.UIPropertyTester"
            id="org.jkiss.dbeaver.ui.actions.UIPropertyTester"
            namespace="org.jkiss.dbeaver.core.ui"
            properties="toolbarVisible"
            type="java.lang.Object"/>
53 54 55 56
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.DataSourcePropertyTester"
            id="org.jkiss.dbeaver.ui.actions.DataSourcePropertyTester"
            namespace="org.jkiss.dbeaver.core.datasource"
57
            properties="connected,transactional,transactionActive,supportsTransactions"
58
            type="org.jkiss.dbeaver.model.DBPContextProvider"/>
59 60 61 62 63 64
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.DataSourceContainerPropertyTester"
            id="org.jkiss.dbeaver.ui.actions.DataSourceContainerPropertyTester"
            namespace="org.jkiss.dbeaver.core.datasourceContainer"
            properties="driverId,driverClass,connected"
            type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
65 66 67 68 69 70
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.ObjectPropertyTester"
            id="org.jkiss.dbeaver.ui.actions.ObjectPropertyTester"
            namespace="org.jkiss.dbeaver.core.object"
            properties="canOpen,canCreate,canPaste,canDelete,canRename,canMoveUp,canMoveDown,canFilter,canFilterObject,hasFilter"
            type="org.jkiss.dbeaver.model.navigator.DBNNode"/>
S
serge-rider 已提交
71 72 73 74 75 76
        <propertyTester
            class="org.jkiss.dbeaver.ui.actions.ToolsPropertyTester"
            id="org.jkiss.dbeaver.ui.actions.ToolsPropertyTester"
            namespace="org.jkiss.dbeaver.core.tools"
            properties="hasTools"
            type="org.eclipse.ui.IWorkbenchPart"/>
77 78 79 80 81 82 83 84 85 86 87 88 89 90
        <propertyTester
            class="org.jkiss.dbeaver.ui.views.process.ProcessPropertyTester"
            id="org.jkiss.dbeaver.ui.views.process.ProcessPropertyTester"
            namespace="org.jkiss.dbeaver.runtime.process"
            properties="running"
            type="org.jkiss.dbeaver.model.runtime.DBRProcessController"/>
    </extension>

    <extension point="org.eclipse.ui.views">
        <view
                id="org.jkiss.dbeaver.core.queryManager"
                category="org.jkiss.dbeaver.core.category"
                class="org.jkiss.dbeaver.ui.views.qm.QueryManagerView"
                allowMultiple="false"
S
serge-rider 已提交
91
                icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/qm.png"
92 93 94 95 96 97 98
                name="%view.query.manager.title"/>
        <view
                id="org.jkiss.dbeaver.core.shellProcess"
                category="org.jkiss.dbeaver.core.category"
                class="org.jkiss.dbeaver.ui.views.process.ShellProcessView"
                allowMultiple="true"
                restorable="false"
S
serge-rider 已提交
99
                icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/shell.png"
100
                name="%view.shell.process.title"/>
101
<!--
102 103 104 105 106
        <view
                id="org.jkiss.dbeaver.core.databaseOutput"
                category="org.jkiss.dbeaver.core.category"
                class="org.jkiss.dbeaver.ui.views.DatabaseOutputView"
                allowMultiple="false"
S
serge-rider 已提交
107
                icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/page_output.png"
108
                name="%view.database.output.title"/>
109
-->
110 111 112 113 114 115 116 117 118
    </extension>

    <extension point="org.eclipse.ui.commands">
        <category id="org.jkiss.dbeaver.core.util" name="%category.utility.name" description="%category.utility.description"/>

        <command id="org.jkiss.dbeaver.core.driver.manager" name="%command.org.jkiss.dbeaver.core.driver.manager.name" description="%command.org.jkiss.dbeaver.core.driver.manager.description" categoryId="org.jkiss.dbeaver.core.navigator"/>
        <command id="org.jkiss.dbeaver.core.new.connection" name="%command.org.jkiss.dbeaver.core.new.connection.name" description="%command.org.jkiss.dbeaver.core.new.connection.description" categoryId="org.jkiss.dbeaver.core.navigator"/>
        <command id="org.jkiss.dbeaver.core.migrate.connection" name="%command.org.jkiss.dbeaver.core.migrate.connection.name" description="%command.org.jkiss.dbeaver.core.migrate.connection.description" categoryId="org.jkiss.dbeaver.core.navigator"/>
        <command id="org.jkiss.dbeaver.core.navigator.bookmark.add" name="%command.org.jkiss.dbeaver.core.navigator.bookmark.add.name" description="%command.org.jkiss.dbeaver.core.navigator.bookmark.add.description" categoryId="org.jkiss.dbeaver.core.navigator"/>
S
Serge Rider 已提交
119
        <command id="org.jkiss.dbeaver.core.navigator.bookmark.navigate" name="%command.org.jkiss.dbeaver.core.navigator.bookmark.navigate.name" description="%command.org.jkiss.dbeaver.core.navigator.bookmark.navigate.description" categoryId="org.jkiss.dbeaver.core.navigator"/>
120 121 122 123 124 125 126 127 128 129 130

        <command id="org.jkiss.dbeaver.core.connect" name="%command.org.jkiss.dbeaver.core.connect.name" description="%command.org.jkiss.dbeaver.core.connect.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.disconnect" name="%command.org.jkiss.dbeaver.core.disconnect.name" description="%command.org.jkiss.dbeaver.core.disconnect.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.invalidate" name="%command.org.jkiss.dbeaver.core.invalidate.name" description="%command.org.jkiss.dbeaver.core.invalidate.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.disconnectAll" name="%command.org.jkiss.dbeaver.core.disconnectAll.name" description="%command.org.jkiss.dbeaver.core.disconnectAll.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.commit" name="%command.org.jkiss.dbeaver.core.commit.name" description="%command.org.jkiss.dbeaver.core.commit.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.rollback" name="%command.org.jkiss.dbeaver.core.rollback.name" description="%command.org.jkiss.dbeaver.core.rollback.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.txn.autocommit" name="%command.org.jkiss.dbeaver.core.txn.autocommit.name" description="%command.org.jkiss.dbeaver.core.txn.autocommit.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.txn.log" name="%command.org.jkiss.dbeaver.core.txn.log.name" description="%command.org.jkiss.dbeaver.core.txn.log.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.core.txn.pending" name="%command.org.jkiss.dbeaver.core.txn.pending.name" description="%command.org.jkiss.dbeaver.core.txn.pending.description" categoryId="org.jkiss.dbeaver.core.database"/>

S
Serge Rider 已提交
131
        <command id="org.jkiss.dbeaver.core.procedure.execute" name="%command.org.jkiss.dbeaver.core.procedure.execute.name" description="%command.org.jkiss.dbeaver.core.procedure.execute.description" categoryId="org.jkiss.dbeaver.core.database"/>
132 133 134 135 136 137 138 139 140 141 142 143

        <command id="org.jkiss.dbeaver.core.edit.copy.special" name="%command.org.jkiss.dbeaver.core.edit.copy.special.name" description="%command.org.jkiss.dbeaver.core.edit.copy.special.description" categoryId="org.jkiss.dbeaver.core.util"/>
        <command id="org.jkiss.dbeaver.core.edit.paste.special" name="%command.org.jkiss.dbeaver.core.edit.paste.special.name" description="%command.org.jkiss.dbeaver.core.edit.paste.special.description" categoryId="org.jkiss.dbeaver.core.util"/>

        <command id="org.jkiss.dbeaver.core.qm.filter" name="%command.org.jkiss.dbeaver.core.qm.filter.name" description="%command.org.jkiss.dbeaver.core.qm.filter.description" categoryId="org.jkiss.dbeaver.core.util"/>
        <command id="org.jkiss.dbeaver.core.qm.clear" name="%command.org.jkiss.dbeaver.core.qm.clear.name" description="%command.org.jkiss.dbeaver.core.qm.clear.description" categoryId="org.jkiss.dbeaver.core.util"/>

        <command id="org.jkiss.dbeaver.core.process.stop" name="%command.org.jkiss.dbeaver.core.process.stop.name" description="%command.org.jkiss.dbeaver.core.process.stop.description" categoryId="org.jkiss.dbeaver.core.util"/>

        <command id="org.jkiss.dbeaver.ui.tools.menu" name="%command.org.jkiss.dbeaver.ui.tools.menu.name" description="%command.org.jkiss.dbeaver.ui.tools.menu.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.ui.tools.select.connection" name="%command.org.jkiss.dbeaver.ui.tools.select.connection.name" description="%command.org.jkiss.dbeaver.ui.tools.select.connection.description" categoryId="org.jkiss.dbeaver.core.database"/>
        <command id="org.jkiss.dbeaver.ui.tools.select.schema" name="%command.org.jkiss.dbeaver.ui.tools.select.schema.name" description="%command.org.jkiss.dbeaver.ui.tools.select.schema.description" categoryId="org.jkiss.dbeaver.core.database"/>
S
serge-rider 已提交
144 145

        <command id="org.jkiss.dbeaver.core.generate.uuid" name="%command.org.jkiss.dbeaver.core.generate.uuid.name" description="%command.org.jkiss.dbeaver.core.generate.uuid.description" categoryId="org.jkiss.dbeaver.core.database"/>
146 147 148
    </extension>

    <extension point="org.eclipse.ui.commandImages">
S
serge-rider 已提交
149 150 151 152 153 154 155 156 157 158 159
        <image commandId="org.jkiss.dbeaver.core.driver.manager" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/driver_manager.png"/>
        <image commandId="org.jkiss.dbeaver.core.new.connection" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/database_connect.png"/>
        <image commandId="org.jkiss.dbeaver.core.navigator.bookmark.add" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/bookmark.png"/>

        <image commandId="org.jkiss.dbeaver.core.connect" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/connect.png"/>
        <image commandId="org.jkiss.dbeaver.core.invalidate" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/reconnect.png"/>
        <image commandId="org.jkiss.dbeaver.core.disconnect" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/disconnect.png"/>
        <image commandId="org.jkiss.dbeaver.core.commit" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/commit.png"/>
        <image commandId="org.jkiss.dbeaver.core.rollback" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/rollback.png"/>
        <image commandId="org.jkiss.dbeaver.core.txn.log" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/txn_log.png"/>

160 161
        <image commandId="org.jkiss.dbeaver.ui.tools.select.connection" icon="platform:/plugin/org.jkiss.dbeaver.model/icons/tree/database.png"/>
        <image commandId="org.jkiss.dbeaver.ui.tools.select.schema" icon="platform:/plugin/org.jkiss.dbeaver.model/icons/tree/schema.png"/>
162

S
serge-rider 已提交
163
        <image commandId="org.jkiss.dbeaver.core.qm.filter" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/filter.png"/>
S
Serge Rider 已提交
164
        <image commandId="org.jkiss.dbeaver.core.qm.clear" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/erase.png"/>
165

S
serge-rider 已提交
166
        <image commandId="org.jkiss.dbeaver.core.process.stop" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/cancel.png"/>
S
serge-rider 已提交
167 168

        <image commandId="org.jkiss.dbeaver.core.generate.uuid" icon="platform:/plugin/org.jkiss.dbeaver.model/icons/types/uuid.png"/>
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
    </extension>

    <extension point="org.eclipse.core.expressions.definitions">
        <definition id="org.jkiss.dbeaver.core.ui.querylog.control">
            <with variable="activeFocusControlId">
                <equals value="org.jkiss.dbeaver.ui.qm.log"/>
            </with>
        </definition>
        <definition id="org.jkiss.dbeaver.core.ui.inlineWidgetEditor">
            <with variable="activeFocusControlId">
                <equals value="org.jkiss.dbeaver.ui.InlineWidgetEditor"/>
            </with>
        </definition>
        <definition id="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText">
            <and>
                <with variable="activeFocusControlId">
                    <equals value="org.jkiss.dbeaver.ui.InlineWidgetEditor"/>
                </with>
                <with variable="activeFocusControl">
                    <instanceof value="org.eclipse.swt.custom.StyledText"/>
                </with>
            </and>
        </definition>

        <definition id="org.jkiss.dbeaver.core.ui.querylog.view">
            <with variable="activePart">
                <instanceof value="org.jkiss.dbeaver.ui.views.qm.QueryManagerView"/>
            </with>
        </definition>
198 199 200 201 202 203 204 205
        <definition id="org.jkiss.dbeaver.core.ui.toolbar.general.visible">
            <with variable="activeWorkbenchWindow.activePerspective">
                <or>
                    <reference definitionId="DBeaverPerspectiveActive"/>
                    <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-general"/>
                </or>
            </with>
        </definition>
206 207 208 209 210 211 212
        <definition id="org.jkiss.dbeaver.core.ui.editor.transactional">
            <with variable="activeEditor">
                <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                    <test property="org.jkiss.dbeaver.core.datasource.supportsTransactions" value="true"/>
                </adapt>
            </with>
        </definition>
S
serge-rider 已提交
213 214 215 216 217 218 219
        <definition id="org.jkiss.dbeaver.core.preferences.datasource">
            <or>
                <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                <instanceof value="org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer"/>
                <adapt type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
            </or>
        </definition>
220

S
Serge Rider 已提交
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
        <definition id="org.jkiss.dbeaver.core.datasource.connected">
            <or>
                <with variable="selection">
                    <count value="1"/>
                    <iterate operator="and">
                        <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                            <test property="org.jkiss.dbeaver.core.datasource.connected" value="true"/>
                        </adapt>
                    </iterate>
                </with>
                <with variable="activePart">
                    <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                        <test property="org.jkiss.dbeaver.core.datasource.connected" value="true"/>
                    </adapt>
                </with>
            </or>
        </definition>

        <definition id="org.jkiss.dbeaver.core.datasource.disconnected">
            <or>
                <with variable="selection">
                    <count value="1"/>
                    <iterate operator="and">
                        <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                            <test property="org.jkiss.dbeaver.core.datasource.connected" value="false"/>
                        </adapt>
                    </iterate>
                </with>
                <with variable="activePart">
                    <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                        <test property="org.jkiss.dbeaver.core.datasource.connected" value="false"/>
                    </adapt>
                </with>
            </or>
        </definition>

257 258 259
    </extension>

    <extension point="org.eclipse.ui.handlers">
S
Serge Rider 已提交
260 261
        <handler commandId="org.jkiss.dbeaver.core.driver.manager" class="org.jkiss.dbeaver.ui.actions.datasource.DriverManagerDialogHandler"/>
        <handler commandId="org.jkiss.dbeaver.core.new.connection" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceCreateHandler">
262 263 264 265 266 267
            <enabledWhen>
                <with variable="activePart">
                    <test property="org.jkiss.dbeaver.core.global.hasActiveProject"/>
                </with>
            </enabledWhen>
        </handler>
S
Serge Rider 已提交
268 269 270 271 272 273 274 275 276 277
        <handler commandId="org.jkiss.dbeaver.core.migrate.connection" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceMigrateHandler">
            <enabledWhen>
                <with variable="selection">
                    <count value="+"/>
                    <iterate operator="and">
                        <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                    </iterate>
                </with>
            </enabledWhen>
        </handler>
S
serge-rider 已提交
278
        <handler commandId="org.jkiss.dbeaver.core.navigator.bookmark.add" class="org.jkiss.dbeaver.ui.actions.common.AddBookmarkHandler">
279 280 281 282 283 284 285 286 287
            <enabledWhen>
                <with variable="selection">
                    <count value="1"/>
                    <iterate operator="and">
                        <adapt type="org.jkiss.dbeaver.model.navigator.DBNDatabaseNode"/>
                    </iterate>
                </with>
            </enabledWhen>
        </handler>
S
Serge Rider 已提交
288 289 290 291 292 293 294 295 296 297
        <handler commandId="org.jkiss.dbeaver.core.navigator.bookmark.navigate" class="org.jkiss.dbeaver.ui.actions.common.NavigateBookmarkHandler">
            <enabledWhen>
                <with variable="selection">
                    <count value="1"/>
                    <iterate operator="and">
                        <instanceof value="org.jkiss.dbeaver.ui.resources.bookmarks.DBNBookmark"/>
                    </iterate>
                </with>
            </enabledWhen>
        </handler>
298 299

        <handler commandId="org.jkiss.dbeaver.core.connect" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceConnectHandler">
S
Serge Rider 已提交
300
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.datasource.disconnected"/></enabledWhen>
301 302
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.disconnect" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceDisconnectHandler">
S
Serge Rider 已提交
303
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.datasource.connected"/></enabledWhen>
304 305 306
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.disconnectAll" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceDisconnectAllHandler"/>
        <handler commandId="org.jkiss.dbeaver.core.invalidate" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceInvalidateHandler">
S
Serge Rider 已提交
307
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.datasource.connected"/></enabledWhen>
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.commit" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceCommitHandler">
            <enabledWhen>
                <with variable="activeEditor">
                    <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                        <test property="org.jkiss.dbeaver.core.datasource.transactionActive" value="true"/>
                    </adapt>
                </with>
            </enabledWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.rollback" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceRollbackHandler">
            <enabledWhen>
                <with variable="activeEditor">
                    <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                        <test property="org.jkiss.dbeaver.core.datasource.transactionActive" value="true"/>
                    </adapt>
                </with>
            </enabledWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.txn.autocommit" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceAutoCommitHandler">
328
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></enabledWhen>
329
        </handler>
330 331
        <handler commandId="org.jkiss.dbeaver.core.txn.log" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceTransactionLogHandler">\
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></enabledWhen>
332
        </handler>
333 334
        <handler commandId="org.jkiss.dbeaver.core.txn.pending" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourcePendingTransactionsHandler">
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></enabledWhen>
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
        </handler>

        <!-- Set default behaviour for standard widgets -->
        <handler commandId="org.eclipse.ui.edit.copy" class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy">
            <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
        </handler>
        <handler commandId="org.eclipse.ui.edit.paste" class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:paste">
            <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
        </handler>
        <handler commandId="org.eclipse.ui.edit.cut" class="org.eclipse.ui.internal.handlers.WidgetMethodHandler:cut">
            <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
        </handler>
        <handler commandId="org.eclipse.ui.edit.selectAll" class="org.eclipse.ui.internal.handlers.SelectAllHandler">
            <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
        </handler>

        <!--
            Inline control handlers.
            Commented because we use workaround - see UIUtils.enableHostEditorKeyBindings()
         -->
<!--
S
Serge Rider 已提交
356
                <handler commandId="org.eclipse.ui.edit.text.goto.lineStart" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:lineStart">
357 358
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
359
                <handler commandId="org.eclipse.ui.edit.text.goto.lineEnd" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:lineEnd">
360 361
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
362
                <handler commandId="org.eclipse.ui.edit.text.goto.textStart" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:textStart">
363 364
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
365
                <handler commandId="org.eclipse.ui.edit.text.goto.textEnd" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:textEnd">
366 367
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
368
                <handler commandId="org.eclipse.ui.edit.text.goto.pageUp" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:pageUp">
369 370
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
371
                <handler commandId="org.eclipse.ui.edit.text.goto.pageDown" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:pageDown">
372 373
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
374
                <handler commandId="org.eclipse.ui.edit.text.goto.wordPrevious" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:wordPrevious">
375 376
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
S
Serge Rider 已提交
377
                <handler commandId="org.eclipse.ui.edit.text.goto.wordNext" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:wordNext">
378 379 380 381 382
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetStyledText"/></activeWhen>
                </handler>
-->

<!--
S
Serge Rider 已提交
383
                <handler commandId="org.eclipse.ui.edit.text.select.lineStart" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:lineStart">
384 385
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
386
                <handler commandId="org.eclipse.ui.edit.text.select.lineEnd" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:lineEnd">
387 388
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
389
                <handler commandId="org.eclipse.ui.edit.text.select.textStart" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:textStart">
390 391
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
392
                <handler commandId="org.eclipse.ui.edit.text.select.textEnd" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:textEnd">
393 394
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
395
                <handler commandId="org.eclipse.ui.edit.text.select.pageUp" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:pageUp">
396 397
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
398
                <handler commandId="org.eclipse.ui.edit.text.select.pageDown" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:pageDown">
399 400
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
401
                <handler commandId="org.eclipse.ui.edit.text.select.wordPrevious" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:wordPrevious">
402 403
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
S
Serge Rider 已提交
404
                <handler commandId="org.eclipse.ui.edit.text.select.wordNext" class="org.jkiss.dbeaver.ui.editors.WidgetCommandDirector:wordNext">
405 406 407 408 409 410
                    <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.inlineWidgetEditor"/></activeWhen>
                </handler>
-->


        <!-- Query log control handlers -->
S
serge-rider 已提交
411 412 413
        <handler commandId="org.eclipse.ui.file.refresh" class="org.jkiss.dbeaver.ui.controls.querylog.QueryLogCommandHandler">
            <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.querylog.control"/></activeWhen>
        </handler>
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
        <handler commandId="org.eclipse.ui.edit.selectAll" class="org.jkiss.dbeaver.ui.controls.querylog.QueryLogCommandHandler">
           <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.querylog.control"/></activeWhen>
        </handler>
        <handler commandId="org.eclipse.ui.edit.copy" class="org.jkiss.dbeaver.ui.controls.querylog.QueryLogCommandHandler">
           <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.querylog.control"/></activeWhen>
        </handler>
        <handler commandId="org.jkiss.dbeaver.core.edit.copy.special" class="org.jkiss.dbeaver.ui.controls.querylog.QueryLogCommandHandler">
           <activeWhen><reference definitionId="org.jkiss.dbeaver.core.ui.querylog.control"/></activeWhen>
        </handler>

        <!-- Query log view handlers -->
        <handler commandId="org.jkiss.dbeaver.core.qm.filter" class="org.jkiss.dbeaver.ui.views.qm.QueryManagerFilterHandler"/>
        <handler commandId="org.jkiss.dbeaver.core.qm.clear" class="org.jkiss.dbeaver.ui.views.qm.QueryManagerClearHandler"/>

        <!-- Process view handlers -->
        <handler commandId="org.jkiss.dbeaver.core.process.stop" class="org.jkiss.dbeaver.ui.views.process.ShellProcessStopHandler">
            <enabledWhen>
                <with variable="activePart">
                    <test property="org.jkiss.dbeaver.runtime.process.running"/>
                </with>
            </enabledWhen>
        </handler>

        <!-- Tools menu -->
        <handler commandId="org.jkiss.dbeaver.ui.tools.menu" class="org.jkiss.dbeaver.ui.actions.datasource.ToolsContextMenuHandler">
            <activeWhen>
                <or>
                    <reference definitionId="org.jkiss.dbeaver.core.ui.navigator.part"/>
                    <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.part"/>
                </or>
            </activeWhen>
        </handler>
446 447
        <handler commandId="org.jkiss.dbeaver.ui.tools.select.connection" class="org.jkiss.dbeaver.ui.actions.datasource.SelectActiveDataSourceHandler">
            <enabledWhen>
448 449 450
                <with variable="activeEditor">
                    <instanceof value="org.jkiss.dbeaver.model.IDataSourceContainerProviderEx"/>
                </with>
451
            </enabledWhen>
452
        </handler>
453 454 455 456 457 458 459 460
        <handler commandId="org.jkiss.dbeaver.ui.tools.select.schema" class="org.jkiss.dbeaver.ui.actions.datasource.SelectActiveSchemaHandler">
            <enabledWhen>
                <with variable="activeEditor">
                    <adapt type="org.jkiss.dbeaver.model.DBPContextProvider">
                        <test property="org.jkiss.dbeaver.core.datasource.supportsTransactions" value="true"/>
                    </adapt>
                </with>
            </enabledWhen>
461
        </handler>
462

S
serge-rider 已提交
463 464 465 466 467 468 469 470
        <handler commandId="org.jkiss.dbeaver.core.generate.uuid" class="org.jkiss.dbeaver.ui.actions.common.GenerateUUIDHandler">
            <with variable="activePart">
                <or>
                    <adapt type="org.jkiss.dbeaver.ui.controls.resultset.IResultSetController"/>
                    <adapt type="org.eclipse.jface.text.ITextViewer"/>
                </or>
            </with>
        </handler>
471 472 473 474 475 476 477 478 479 480 481

    </extension>

    <extension point="org.eclipse.ui.menus">

        <!-- Database menu -->
        <menuContribution allPopups="false" locationURI="menu:org.eclipse.ui.main.menu?before=window">
            <menu id="dataSourceMenu" label="%menu.database">
                <!--<visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>-->

                <separator name="driverGroup" visible="true"/>
S
serge-rider 已提交
482 483
                <command commandId="org.jkiss.dbeaver.core.new.connection"/>
                <command commandId="org.jkiss.dbeaver.core.driver.manager"/>
484
                <separator name="connection" visible="true"/>
S
serge-rider 已提交
485 486 487 488
                <command commandId="org.jkiss.dbeaver.core.connect"/>
                <command commandId="org.jkiss.dbeaver.core.invalidate"/>
                <command commandId="org.jkiss.dbeaver.core.disconnect"/>
                <command commandId="org.jkiss.dbeaver.core.disconnectAll"/>
489
                <separator name="session" visible="true"/>
S
serge-rider 已提交
490
                <command commandId="org.jkiss.dbeaver.core.commit">
491 492
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></visibleWhen>
                </command>
S
serge-rider 已提交
493
                <command commandId="org.jkiss.dbeaver.core.rollback">
494 495
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></visibleWhen>
                </command>
496 497
                <menu label="%command.org.jkiss.dbeaver.core.transaction_mode.name">
                    <dynamic id="org.jkiss.dbeaver.core.menu.txn" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceTransactionModeContributor"/>
498
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></visibleWhen>
499
                </menu>
S
serge-rider 已提交
500
                <command commandId="org.jkiss.dbeaver.core.txn.log">
501 502
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></visibleWhen>
                </command>
S
serge-rider 已提交
503
                <command commandId="org.jkiss.dbeaver.core.txn.pending">
504 505 506
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.editor.transactional"/></visibleWhen>
                </command>
                <separator name="transactions" visible="false"/>
507
                <separator name="tools" visible="true"/>
S
serge-rider 已提交
508
                <menu label="%menu.database.tools" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/tools.png">
509 510
                    <dynamic id="org.jkiss.dbeaver.core.menu.tools" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceToolsContributor"/>
                </menu>
S
serge-rider 已提交
511
                <command commandId="org.jkiss.dbeaver.ui.tools.menu"/>
S
Serge Rider 已提交
512 513 514 515
                <command commandId="org.jkiss.dbeaver.core.migrate.connection">
                    <visibleWhen checkEnabled="true"/>
                </command>

516
                <separator name="additions" visible="false"/>
517 518 519 520 521 522
            </menu>
        </menuContribution>

        <!-- Database toolbar -->
        <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.ui.main.toolbar?before=additions">
            <toolbar id="dbeaver-general" label="%toolbar.dbeaver-general.label">
S
Serge Rider 已提交
523
                <command commandId="org.jkiss.dbeaver.core.new.connection" id="org.jkiss.dbeaver.core.menu.newConnection" style="pulldown">
524
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
525
                </command>
526
                <separator name="connection-tools" visible="true"/>
S
serge-rider 已提交
527
                <command commandId="org.jkiss.dbeaver.core.connect">
528
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
529
                </command>
S
serge-rider 已提交
530
                <command commandId="org.jkiss.dbeaver.core.invalidate">
531
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
532
                </command>
S
serge-rider 已提交
533
                <command commandId="org.jkiss.dbeaver.core.disconnect">
534
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
535
                </command>
536
                <separator name="sql-tools" visible="true"/>
S
serge-rider 已提交
537
                <command commandId="org.jkiss.dbeaver.core.sql.editor.open">
538
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
539
                </command>
S
serge-rider 已提交
540
                <command commandId="org.jkiss.dbeaver.core.sql.editor.recent">
541
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
542
                </command>
S
serge-rider 已提交
543
                <command commandId="org.jkiss.dbeaver.core.sql.editor.create">
544
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.toolbar.general.visible"/></visibleWhen>
545
                </command>
546 547 548 549
                <separator name="additions" visible="false"/>
            </toolbar>
            <toolbar id="dbeaver-transactions" label="%toolbar.dbeaver-transactions.label">
                <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
S
serge-rider 已提交
550
                <command commandId="org.jkiss.dbeaver.core.commit" style="push" mode="FORCE_TEXT">
551 552
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
S
serge-rider 已提交
553
                <command commandId="org.jkiss.dbeaver.core.rollback" style="push" mode="FORCE_TEXT">
554 555 556 557
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
                <command
                      commandId="org.jkiss.dbeaver.core.txn.autocommit"
S
serge-rider 已提交
558
                      icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/txn_auto.png"
559 560 561 562 563
                      id="org.jkiss.dbeaver.core.menu.txn"
                      style="pulldown"
                      tooltip="%command.org.jkiss.dbeaver.core.txn.autocommit.description">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
564
                <separator name="additions" visible="false"/>
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580
            </toolbar>

            <toolbar id="dbeaver-transaction-monitor" label="%toolbar.dbeaver-transaction-monitor.label">
                <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                <control class="org.jkiss.dbeaver.ui.controls.txn.TransactionMonitorToolbar$ToolbarContribution">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </control>
                <command
                      commandId="org.jkiss.dbeaver.core.txn.log"
                      id="org.jkiss.dbeaver.core.menu.txn.log"
                      style="pulldown">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
            </toolbar>

            <toolbar id="dbeaver-edit" label="%toolbar.dbeaver-edit.label">
S
serge-rider 已提交
581
                <command commandId="org.eclipse.ui.file.save">
582 583 584 585 586 587
                    <visibleWhen>
                        <and>
                            <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-edit"/>
                            <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/>
                        </and>
                    </visibleWhen>
S
serge-rider 已提交
588 589
                </command>
                <command commandId="org.eclipse.ui.file.revert" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/file/reset.png">
590 591 592 593 594 595
                    <visibleWhen>
                        <and>
                            <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-edit"/>
                            <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/>
                        </and>
                    </visibleWhen>
S
serge-rider 已提交
596 597
                </command>
                <command commandId="org.eclipse.ui.edit.undo">
598 599 600 601 602 603
                    <visibleWhen>
                        <and>
                            <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-edit"/>
                            <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/>
                        </and>
                    </visibleWhen>
S
serge-rider 已提交
604 605
                </command>
                <command commandId="org.eclipse.ui.edit.redo">
606 607 608 609 610 611
                    <visibleWhen>
                        <and>
                            <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-edit"/>
                            <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/>
                        </and>
                    </visibleWhen>
S
serge-rider 已提交
612 613
                </command>
                <command commandId="org.eclipse.ui.file.refresh">
614 615 616 617 618 619
                    <visibleWhen>
                        <and>
                            <test property="org.jkiss.dbeaver.core.ui.toolbarVisible" value="dbeaver-edit"/>
                            <reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/>
                        </and>
                    </visibleWhen>
S
serge-rider 已提交
620
                </command>
621 622
            </toolbar>

623 624
            <toolbar id="dbeaver-connection-selector" label="%toolbar.dbeaver-datasource-selector.label">
                <command
625
                    commandId="org.jkiss.dbeaver.ui.tools.select.connection"
626 627 628 629 630 631
                    id="org.jkiss.dbeaver.core.menu.select.connection"
                    style="pulldown"
                    mode="FORCE_TEXT">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
                <command
632
                    commandId="org.jkiss.dbeaver.ui.tools.select.schema"
633 634 635 636 637 638 639 640 641 642 643 644 645 646
                    id="org.jkiss.dbeaver.core.menu.select.schema"
                    style="pulldown"
                    mode="FORCE_TEXT">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
                <command
                    commandId="org.jkiss.dbeaver.ui.editors.sql.sync.connection"
                    id="org.jkiss.dbeaver.core.menu.sql.sync"
                    style="pulldown">
                    <visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
                </command>
                <separator name="additions" visible="false"/>
            </toolbar>

647 648 649 650
        </menuContribution>

        <!-- All Context menus -->
        <menuContribution allPopups="false" locationURI="popup:org.eclipse.ui.popup.any?after=navigator_additions">
651
            <separator name="sql-tools" visible="true"/>
652

653
            <command commandId="org.jkiss.dbeaver.core.sql.editor.open">
654 655 656 657 658 659 660 661 662
                <visibleWhen>
                    <with variable="selection">
                        <count value="1"/>
                        <iterate operator="and">
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                        </iterate>
                    </with>
                </visibleWhen>
            </command>
663
            <command commandId="org.jkiss.dbeaver.core.sql.editor.recent">
664 665 666 667 668 669 670 671 672 673
                <visibleWhen>
                    <with variable="selection">
                        <count value="+"/>
                        <iterate operator="and">
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                        </iterate>
                    </with>
                </visibleWhen>
            </command>

674
            <command commandId="org.jkiss.dbeaver.core.project.active">
675 676 677
                <visibleWhen checkEnabled="true"/>
            </command>

678
            <separator name="create" visible="true"/>
679

S
serge-rider 已提交
680
            <command commandId="org.jkiss.dbeaver.core.object.open">
681 682
                <visibleWhen checkEnabled="true"/>
            </command>
S
l18n  
serge-rider 已提交
683
            <menu id="dbeaver-menu-create" label="%menu.create.label">
S
Serge Rider 已提交
684 685
                <dynamic id="org.jkiss.dbeaver.core.menu.create" class="org.jkiss.dbeaver.ui.navigator.actions.NavigatorHandlerObjectCreateNew$MenuCreateContributor"/>
            </menu>
S
Serge Rider 已提交
686 687 688
            <command commandId="org.jkiss.dbeaver.core.navigator.bookmark.navigate">
                <visibleWhen checkEnabled="true"/>
            </command>
689

S
serge-rider 已提交
690
            <command commandId="org.jkiss.dbeaver.core.navigator.open.browser">
S
serge-rider 已提交
691 692 693
                <visibleWhen checkEnabled="true"/>
            </command>

694
            <menu
S
serge-rider 已提交
695
                  icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/filter.png"
696
                  label="%menu.filter.label">
S
serge-rider 已提交
697
                <command commandId="org.jkiss.dbeaver.core.object.filter.add.exclude">
698 699
                    <visibleWhen checkEnabled="true"/>
                </command>
S
serge-rider 已提交
700
                <command commandId="org.jkiss.dbeaver.core.object.filter.add.include">
701 702 703
                    <visibleWhen checkEnabled="true"/>
                </command>
                <separator name="filter_config" visible="true"/>
S
serge-rider 已提交
704
                <command commandId="org.jkiss.dbeaver.core.object.filter.config">
705 706
                    <visibleWhen checkEnabled="true"/>
                </command>
S
serge-rider 已提交
707
                <command commandId="org.jkiss.dbeaver.core.object.filter.toggle">
708 709
                    <visibleWhen checkEnabled="true"/>
                </command>
S
serge-rider 已提交
710
                <command commandId="org.jkiss.dbeaver.core.object.filter.clear">
711 712 713 714 715 716 717 718 719 720 721 722 723
                    <visibleWhen checkEnabled="true"/>
                </command>
            </menu>

<!--
            <command commandId="org.jkiss.dbeaver.core.object.move.up">
                <visibleWhen checkEnabled="true"/>
            </command>
            <command commandId="org.jkiss.dbeaver.core.object.move.down">
                <visibleWhen checkEnabled="true"/>
            </command>
-->

S
serge-rider 已提交
724
            <command commandId="org.jkiss.dbeaver.core.sql.script.associate">
725 726
                <visibleWhen checkEnabled="true"/>
            </command>
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760

            <separator name="connection-tools" visible="true"/>

            <command commandId="org.jkiss.dbeaver.core.connect">
                <visibleWhen>
                    <with variable="selection">
                        <count value="1"/>
                        <iterate operator="and">
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                        </iterate>
                    </with>
                </visibleWhen>
            </command>
            <command commandId="org.jkiss.dbeaver.core.invalidate">
                <visibleWhen>
                    <with variable="selection">
                        <count value="1"/>
                        <iterate operator="and">
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                        </iterate>
                    </with>
                </visibleWhen>
            </command>
            <command commandId="org.jkiss.dbeaver.core.disconnect">
                <visibleWhen>
                    <with variable="selection">
                        <count value="1"/>
                        <iterate operator="and">
                            <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                        </iterate>
                    </with>
                </visibleWhen>
            </command>

761 762
        </menuContribution>

S
Serge Rider 已提交
763 764 765 766 767
        <!-- Additions end - Copy/Paste/etc -->

        <menuContribution allPopups="false" locationURI="popup:org.eclipse.ui.popup.any?after=navigator_additions_end">
            <separator name="copy" visible="true"/>

S
serge-rider 已提交
768
            <command commandId="org.eclipse.ui.edit.copy" label="%command.org.eclipse.ui.edit.copy.name">
S
Serge Rider 已提交
769 770
                <visibleWhen checkEnabled="true"/>
            </command>
S
serge-rider 已提交
771
            <command commandId="org.eclipse.ui.edit.paste" label="%command.org.eclipse.ui.edit.paste.name">
S
Serge Rider 已提交
772 773 774 775 776
                <visibleWhen checkEnabled="true"/>
            </command>
            <command commandId="org.jkiss.dbeaver.core.edit.copy.special" label="%command.org.jkiss.dbeaver.core.edit.copy.adv_info">
                <visibleWhen checkEnabled="true"/>
            </command>
S
serge-rider 已提交
777
            <command commandId="org.eclipse.ui.edit.delete" label="%command.org.eclipse.ui.edit.delete.name">
S
Serge Rider 已提交
778 779
                <visibleWhen checkEnabled="true"/>
            </command>
S
serge-rider 已提交
780
            <command commandId="org.eclipse.ui.edit.rename" label="%command.org.eclipse.ui.edit.rename.name">
S
Serge Rider 已提交
781 782 783 784
                <visibleWhen checkEnabled="true"/>
            </command>
        </menuContribution>

785 786 787 788 789
        <!-- Tools context menu -->

        <menuContribution allPopups="false" locationURI="popup:org.eclipse.ui.popup.any?after=tools">
            <separator name="data" visible="true"/>

S
serge-rider 已提交
790
            <command commandId="org.jkiss.dbeaver.core.procedure.execute">
S
serge-rider 已提交
791
                <visibleWhen checkEnabled="true"/>
E
Evgeny Fradkin 已提交
792
            </command>
S
serge-rider 已提交
793
            <command commandId="org.jkiss.dbeaver.ui.editors.data.forSelection">
S
Serge Rider 已提交
794 795
                <visibleWhen checkEnabled="true"/>
            </command>
S
serge-rider 已提交
796
            <command commandId="org.jkiss.dbeaver.core.sql.editor.forSelection">
797 798
                <visibleWhen checkEnabled="true"/>
            </command>
S
serge-rider 已提交
799

S
l18n  
serge-rider 已提交
800
            <separator name="compare" visible="false"/>
S
serge-rider 已提交
801
            <separator name="export_import" visible="false"/>
802 803
            <separator name="generate" visible="false"/>

S
serge-rider 已提交
804
            <menu label="%menu.database.tools" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/tools.png">
805 806
                <visibleWhen>
                    <with variable="activePart">
S
serge-rider 已提交
807
                        <test property="org.jkiss.dbeaver.core.tools.hasTools"/>
808 809 810 811 812 813 814 815
                    </with>
                </visibleWhen>
                <dynamic id="org.jkiss.dbeaver.core.menu.tools" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceToolsContributor"/>
            </menu>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="menu:org.eclipse.ui.main.menu?after=additions">
            <menu id="navigate" label="%menu.navigate">
S
serge-rider 已提交
816 817
                <command commandId="org.jkiss.dbeaver.core.object.goto"><visibleWhen checkEnabled="true"/></command>
                <command commandId="org.jkiss.dbeaver.ui.editors.sql.navigate.object">
818 819 820 821 822 823 824 825 826 827 828
					  <visibleWhen checkEnabled="true"/>
			    </command>
            </menu>
        </menuContribution>

        <!-- Transaction mode menu -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.txn">
            <dynamic id="org.jkiss.dbeaver.core.menu.txn.isolation" class="org.jkiss.dbeaver.ui.actions.datasource.DataSourceTransactionModeContributor"/>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.project">
S
Serge Rider 已提交
829
            <dynamic id="org.jkiss.dbeaver.core.menu.project.active" class="org.jkiss.dbeaver.ui.navigator.actions.NavigatorActiveProjectContributor"/>
830 831
        </menuContribution>

S
Serge Rider 已提交
832 833 834 835 836
        <!-- New connection menu -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.newConnection">
            <dynamic id="org.jkiss.dbeaver.core.menu.newConnection.select" class="org.jkiss.dbeaver.ui.actions.datasource.NewConnectionDriverSelectorContributor"/>
        </menuContribution>

837 838 839
        <!-- QM menu & toolbar -->

        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.queryManager">
S
serge-rider 已提交
840 841 842
            <command commandId="org.jkiss.dbeaver.core.qm.filter"/>
            <command commandId="org.jkiss.dbeaver.core.qm.clear"/>
            <command commandId="org.eclipse.ui.file.refresh" label="%command.org.jkiss.dbeaver.core.qm.refresh.name" tooltip="%command.org.jkiss.dbeaver.core.qm.refresh.description"/>
843 844 845 846
            <separator name="additions" visible="true"/>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.queryManager">
S
serge-rider 已提交
847
            <command commandId="org.jkiss.dbeaver.core.qm.filter"/>
S
Serge Rider 已提交
848
            <separator name="refresh" visible="true"/>
S
serge-rider 已提交
849 850
            <command commandId="org.jkiss.dbeaver.core.qm.clear"/>
            <command commandId="org.eclipse.ui.file.refresh" label="%command.org.jkiss.dbeaver.core.qm.refresh.name" tooltip="%command.org.jkiss.dbeaver.core.qm.refresh.description"/>
851 852 853 854
            <separator name="additions" visible="true"/>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.shellProcess">
S
serge-rider 已提交
855
            <command commandId="org.jkiss.dbeaver.core.process.stop"/>
856 857 858
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.shellProcess">
S
serge-rider 已提交
859
            <command commandId="org.jkiss.dbeaver.core.process.stop"/>
860 861
        </menuContribution>

862 863 864 865 866 867 868 869
        <!-- Connection and schema selector menus -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.select.connection">
            <dynamic id="org.jkiss.dbeaver.core.menu.select.connection.list" class="org.jkiss.dbeaver.ui.actions.datasource.SelectActiveDataSourceHandler$MenuContributor"/>
        </menuContribution>
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.select.schema">
            <dynamic id="org.jkiss.dbeaver.core.menu.select.schema.list" class="org.jkiss.dbeaver.ui.actions.datasource.SelectActiveSchemaHandler$MenuContributor"/>
        </menuContribution>

870 871
        <!-- SQL editor connection sync drop-down menu -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.sql.sync">
S
serge-rider 已提交
872
            <command commandId="org.jkiss.dbeaver.ui.editors.sql.sync.auto" style="toggle"/>
873
            <separator name="sync_additions" visible="true"/>
S
serge-rider 已提交
874
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
875 876 877 878
        </menuContribution>

        <!-- Transaction log menu -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.menu.txn.log">
S
serge-rider 已提交
879 880
            <command commandId="org.jkiss.dbeaver.core.txn.log"/>
            <command commandId="org.jkiss.dbeaver.core.txn.pending"/>
S
serge-rider 已提交
881
            <command commandId="org.eclipse.ui.views.showView" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/qm.png" label="%command.org.eclipse.ui.views.showView.label" style="push">
882 883 884 885
                <parameter name="org.eclipse.ui.views.showView.viewId" value="org.jkiss.dbeaver.core.queryManager"/>
            </command>
        </menuContribution>

S
serge-rider 已提交
886 887 888 889
        <menuContribution allPopups="false" locationURI="menu:edit?after=transforms">
            <command commandId="org.jkiss.dbeaver.core.generate.uuid">
                <visibleWhen checkEnabled="true"/>
            </command>
890
        </menuContribution>
S
Serge Rider 已提交
891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941


        <!-- Database Navigator menu & toolbar -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.databaseNavigator">
            <command commandId="org.jkiss.dbeaver.core.new.connection" id="org.jkiss.dbeaver.core.menu.newConnection" style="pulldown"/>
            <command commandId="org.jkiss.dbeaver.core.driver.manager"/>
            <separator name="projects" visible="true"/>
            <menu commandId="org.jkiss.dbeaver.core.project.select" label="%menu.org.jkiss.dbeaver.core.project.select.label">
                <dynamic id="org.jkiss.dbeaver.core.menu.project.active" class="org.jkiss.dbeaver.ui.navigator.actions.NavigatorActiveProjectContributor"/>
            </menu>
            <command commandId="org.jkiss.dbeaver.core.new.folder"/>
            <separator name="additions" visible="true"/>
            <command commandId="org.eclipse.ui.navigate.collapseAll"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.preferences"/>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.databaseNavigator">
            <command commandId="org.jkiss.dbeaver.core.new.connection" id="org.jkiss.dbeaver.core.menu.newConnection" style="pulldown"/>
            <command commandId="org.jkiss.dbeaver.core.new.folder"/>
            <separator name="additions" visible="true"/>
            <command commandId="org.eclipse.ui.navigate.collapseAll"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
        </menuContribution>

        <!-- Project Navigator menu & toolbar -->
        <menuContribution allPopups="false" locationURI="menu:org.jkiss.dbeaver.core.projectNavigator">
            <command commandId="org.jkiss.dbeaver.core.project.create"/>
            <command commandId="org.jkiss.dbeaver.core.project.refresh"/>
            <separator name="additions" visible="true"/>
            <command commandId="org.eclipse.ui.navigate.collapseAll"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.preferences"/>
        </menuContribution>

        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.projectNavigator">
            <command commandId="org.jkiss.dbeaver.core.project.create"/>
            <separator name="additions" visible="true"/>
            <command commandId="org.eclipse.ui.navigate.collapseAll"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.preferences"/>
        </menuContribution>

        <!-- Project explorer menu & toolbar -->
        <menuContribution allPopups="false" locationURI="toolbar:org.jkiss.dbeaver.core.projectExplorer">
            <command commandId="org.jkiss.dbeaver.core.navigator.view.configure"/>
            <command commandId="org.eclipse.ui.navigate.collapseAll"/>
            <command commandId="org.eclipse.ui.navigate.expandAll"/>
            <command commandId="org.jkiss.dbeaver.core.navigator.linkeditor"/>
        </menuContribution>

942 943
    </extension>

944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980

    <!-- Legacy action sets. We have to use them to manage Eclipse search framework. -->

    <extension point="org.eclipse.ui.actionSets">
        <actionSet
                id="org.jkiss.dbeaver.search.searchActionSet"
                label="DBeaver Search"
                visible="true">
            <!-- Some ancient Eclipse bug makes us to do this crazy things.
            Redefine search menu placeholders. Otherwise it doesn't work. -->
            <menu
                    label="%menu.search"
                    path="navigate"
                    id="org.eclipse.search.menu">
                <groupMarker name="internalDialogGroup"/>   <!-- not to be used by clients  -->
                <groupMarker name="dialogGroup"/>           <!-- to be used by clients      -->
                <separator name="fileSearchContextMenuActionsGroup"/> <!-- to be used by clients      -->
                <separator name="contextMenuActionsGroup"/> <!-- to be used by clients -->
                <separator name="occurencesActionsGroup"/> <!-- to be used by clients -->
                <separator name="extraSearchGroup"/> <!-- to be used by clients -->
            </menu>

            <action id="org.jkiss.dbeaver.search.OpenDataSearchPage"
                    definitionId="org.jkiss.dbeaver.search.OpenDataSearchPage"
                    menubarPath="org.eclipse.search.menu/dialogGroup"
                    label="%search.page.label.db.fulltext"
                    icon="icons/search/data.png"
                    class="org.jkiss.dbeaver.ui.search.data.OpenDataSearchPageAction"/>
            <action id="org.jkiss.dbeaver.search.OpenMetadataSearchPage"
                    definitionId="org.jkiss.dbeaver.search.OpenMetadataSearchPage"
                    menubarPath="org.eclipse.search.menu/dialogGroup"
                    label="%search.page.label.db.metadata"
                    icon="icons/search/metadata.png"
                    class="org.jkiss.dbeaver.ui.search.metadata.OpenMetadataSearchPageAction"/>
        </actionSet>
    </extension>

981 982 983 984 985 986 987 988
    <extension point="org.eclipse.ui.bindings">

        <key commandId="org.jkiss.dbeaver.ui.tools.menu" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="ALT+`"/>
        <key commandId="org.jkiss.dbeaver.ui.tools.select.connection" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+9"/>
        <key commandId="org.jkiss.dbeaver.ui.tools.select.schema" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+0"/>

        <key commandId="org.jkiss.dbeaver.core.edit.copy.special" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+C"/>
        <key commandId="org.jkiss.dbeaver.core.edit.paste.special" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+V"/>
989
        <key commandId="org.jkiss.dbeaver.core.navigator.bookmark.add" contextId="org.jkiss.dbeaver.ui.context.navigator.view" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+D"/>
990
        <key commandId="org.jkiss.dbeaver.core.navigator.linkeditor" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+,"/>
991
        <key commandId="org.jkiss.dbeaver.core.navigator.set.active" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+A"/>
992 993 994 995
        <!--<key commandId="org.jkiss.dbeaver.core.object.create" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="ALT+INSERT"/>-->
        <key commandId="org.jkiss.dbeaver.core.object.goto" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+D"/>
        <key commandId="org.jkiss.dbeaver.core.object.open" contextId="org.jkiss.dbeaver.ui.context.navigator" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="F4"/>

996 997
        <key commandId="org.jkiss.dbeaver.core.commit" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="cocoa" sequence="CTRL+4"/>
        <key commandId="org.jkiss.dbeaver.core.commit" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="gtk" sequence="CTRL+4"/>
S
serge-rider 已提交
998
        <key commandId="org.jkiss.dbeaver.core.commit" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="win32" sequence="CTRL+ALT+SHIFT+K"/>
999 1000
        <key commandId="org.jkiss.dbeaver.core.rollback" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="cocoa" sequence="CTRL+8"/>
        <key commandId="org.jkiss.dbeaver.core.rollback" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="gtk" sequence="CTRL+8"/>
S
serge-rider 已提交
1001
        <key commandId="org.jkiss.dbeaver.core.rollback" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" platform="win32" sequence="CTRL+ALT+SHIFT+R"/>
S
serge-rider 已提交
1002

S
Serge Rider 已提交
1003
        <key commandId="org.jkiss.dbeaver.core.generate.uuid" contextId="org.eclipse.ui.contexts.window" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="CTRL+SHIFT+ALT+U"/>
1004 1005 1006 1007 1008 1009 1010
    </extension>

    <extension point="org.eclipse.core.runtime.preferences">
        <initializer class="org.jkiss.dbeaver.core.DBeaverPreferencesInitializer"/>
    </extension>

    <extension point="org.eclipse.ui.propertyPages">
1011
        <page id="org.jkiss.dbeaver.preferences.main.errorHandle" class="org.jkiss.dbeaver.ui.preferences.PrefPageErrorHandle" name="%page.org.jkiss.dbeaver.preferences.main.errorHandle.name">
S
serge-rider 已提交
1012 1013 1014
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
        </page>
        <page id="org.jkiss.dbeaver.preferences.main.connections" class="org.jkiss.dbeaver.ui.preferences.PrefPageConnections" name="%page.org.jkiss.dbeaver.preferences.main.connections.name">
1015 1016 1017 1018 1019 1020 1021
            <enabledWhen>
                <or>
                    <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                    <adapt type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
                </or>
            </enabledWhen>
        </page>
S
serge-rider 已提交
1022 1023 1024 1025 1026
        <page id="org.jkiss.dbeaver.preferences.main.meta" class="org.jkiss.dbeaver.ui.preferences.PrefPageMetaData" name="%page.org.jkiss.dbeaver.preferences.main.meta.name">
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
        </page>

        <page class="org.jkiss.dbeaver.ui.preferences.PrefPageDatabaseEditors" id="org.jkiss.dbeaver.preferences.editors" name="%page.org.jkiss.dbeaver.preferences.editors.name">
1027 1028 1029 1030
            <enabledWhen>
                <or>
                    <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                    <instanceof value="org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer"/>
S
serge-rider 已提交
1031
                    <instanceof value="org.jkiss.dbeaver.ui.navigator.database.NavigatorViewBase"/>
1032 1033 1034 1035
                    <adapt type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
                </or>
            </enabledWhen>
        </page>
S
serge-rider 已提交
1036 1037

        <page category="org.jkiss.dbeaver.preferences.editors" class="org.jkiss.dbeaver.ui.preferences.PrefPageEntityEditor" id="org.jkiss.dbeaver.preferences.main.entityeditor" name="%page.org.jkiss.dbeaver.preferences.main.entityeditor.name">
1038 1039 1040 1041 1042 1043 1044
            <enabledWhen>
                <or>
                    <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                    <adapt type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
                </or>
            </enabledWhen>
        </page>
S
serge-rider 已提交
1045

S
Serge Rider 已提交
1046
        <page category="org.jkiss.dbeaver.preferences.editors" id="org.jkiss.dbeaver.preferences.main.resultset" class="org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageResultSetMain" name="%page.org.jkiss.dbeaver.preferences.main.resultset.name">
S
serge-rider 已提交
1047 1048
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
        </page>
S
Serge Rider 已提交
1049
        <page category="org.jkiss.dbeaver.preferences.main.resultset" id="org.jkiss.dbeaver.preferences.main.resultset.editors" class="org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageResultSetEditors" name="%page.org.jkiss.dbeaver.preferences.main.resultset.editors.name">
S
serge-rider 已提交
1050 1051
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
        </page>
S
Serge Rider 已提交
1052
        <page category="org.jkiss.dbeaver.preferences.main.resultset" id="org.jkiss.dbeaver.preferences.main.resultset.presentation" class="org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageResultSetPresentation" name="%page.org.jkiss.dbeaver.preferences.main.resultset.presentation.name">
S
serge-rider 已提交
1053
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1054
        </page>
S
Serge Rider 已提交
1055
        <page category="org.jkiss.dbeaver.preferences.main.resultset" id="org.jkiss.dbeaver.preferences.main.dataformat" class="org.jkiss.dbeaver.ui.editors.data.preferences.PrefPageDataFormat" name="%page.org.jkiss.dbeaver.preferences.main.dataformat.name">
1056 1057 1058 1059 1060 1061 1062 1063 1064
            <enabledWhen>
                <or>
                    <instanceof value="org.jkiss.dbeaver.model.navigator.DBNDataSource"/>
                    <instanceof value="org.jkiss.dbeaver.registry.formatter.DataFormatterRegistry"/>
                    <instanceof value="org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer"/>
                    <adapt type="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
                </or>
            </enabledWhen>
        </page>
S
serge-rider 已提交
1065

1066
        <page category="org.jkiss.dbeaver.preferences.editors" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLEditor" id="org.jkiss.dbeaver.preferences.main.sqleditor" name="%page.org.jkiss.dbeaver.preferences.main.sqleditor.name">
S
serge-rider 已提交
1067
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1068
        </page>
1069
        <page category="org.jkiss.dbeaver.preferences.main.sqleditor" id="org.jkiss.dbeaver.preferences.main.sql.completion" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLCompletion" name="%page.org.jkiss.dbeaver.preferences.main.sql.completion.name">
S
serge-rider 已提交
1070 1071
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
        </page>
1072
        <page category="org.jkiss.dbeaver.preferences.main.sqleditor" id="org.jkiss.dbeaver.preferences.main.sql.resources" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLResources" name="%page.org.jkiss.dbeaver.preferences.main.sql.resources.name">
S
serge-rider 已提交
1073
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1074
        </page>
1075
        <page category="org.jkiss.dbeaver.preferences.main.sqleditor" id="org.jkiss.dbeaver.preferences.main.sql.format" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLFormat" name="%page.org.jkiss.dbeaver.preferences.main.sql.format.name">
S
serge-rider 已提交
1076
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1077
        </page>
1078
        <page category="org.jkiss.dbeaver.preferences.main.sqleditor" id="org.jkiss.dbeaver.preferences.main.sqlexecute" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLExecute" name="%page.org.jkiss.dbeaver.preferences.main.sqlexecute.name">
S
serge-rider 已提交
1079
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1080
        </page>
1081
        <page category="org.jkiss.dbeaver.preferences.main.sqleditor" class="org.jkiss.dbeaver.ui.editors.sql.preferences.PrefPageSQLTemplates" id="org.jkiss.dbeaver.preferences.main.sql.templates" name="%page.org.jkiss.dbeaver.preferences.main.sql.templates.name">
S
serge-rider 已提交
1082
            <enabledWhen><reference definitionId="org.jkiss.dbeaver.core.preferences.datasource"/></enabledWhen>
1083 1084 1085 1086 1087 1088 1089 1090
        </page>
        <page class="org.jkiss.dbeaver.ui.preferences.PrefPageQueryManager" id="org.jkiss.dbeaver.preferences.main.qm" name="%page.org.jkiss.dbeaver.preferences.main.qm.name">
           <enabledWhen>
              <instanceof value="org.jkiss.dbeaver.ui.views.qm.QueryManagerView"/>
           </enabledWhen>
        </page>
        <page class="org.jkiss.dbeaver.ui.preferences.PrefPageConnectionTypes" id="org.jkiss.dbeaver.preferences.connectionTypes" name="%page.org.jkiss.dbeaver.preferences.connectionTypes.name">
            <enabledWhen>
S
serge-rider 已提交
1091 1092 1093 1094
                <or>
                    <instanceof value="org.jkiss.dbeaver.model.connection.DBPConnectionType"/>
                    <instanceof value="org.jkiss.dbeaver.ui.navigator.database.NavigatorViewBase"/>
                </or>
1095 1096 1097 1098 1099
            </enabledWhen>
        </page>
    </extension>

    <extension point="org.eclipse.core.runtime.adapters">
S
Serge Rider 已提交
1100
        <factory adaptableType="org.jkiss.dbeaver.runtime.DBWorkbench" class="org.jkiss.dbeaver.core.DBeaverCoreAdapterFactory">
S
serge-rider 已提交
1101 1102 1103 1104
            <adapter type="org.jkiss.dbeaver.model.app.DBPPlatform"/>
            <adapter type="org.jkiss.dbeaver.runtime.ui.DBPPlatformUI"/>
        </factory>
        <factory adaptableType="org.jkiss.dbeaver.model.struct.DBSObject" class="org.jkiss.dbeaver.core.DBeaverCoreAdapterFactory">
S
Serge Rider 已提交
1105
            <adapter type="org.jkiss.dbeaver.runtime.resource.WorkspaceResourceResolver"/>
S
serge-rider 已提交
1106
        </factory>
1107 1108 1109 1110
    </extension>

    <extension point="org.eclipse.ui.themes">

1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137
        <!-- Colors for transactions -->
        <themeElementCategory label="%themeElementCategory.org.jkiss.dbeaver.ui.presentation.txn.label" id="org.jkiss.dbeaver.ui.presentation.qm">
            <description>%themeElementCategory.org.jkiss.dbeaver.ui.presentation.txn.description</description>
        </themeElementCategory>

        <colorDefinition
                label="%colorDefinition.org.jkiss.dbeaver.txn.color.committed.background.label"
                categoryId="org.jkiss.dbeaver.ui.presentation.qm"
                id="org.jkiss.dbeaver.txn.color.committed.background"
                value="189, 254, 191">
            <description>%colorDefinition.org.jkiss.dbeaver.txn.color.committed.background.description</description>
        </colorDefinition>
        <colorDefinition
                label="%colorDefinition.org.jkiss.dbeaver.txn.color.reverted.background.label"
                categoryId="org.jkiss.dbeaver.ui.presentation.qm"
                id="org.jkiss.dbeaver.txn.color.reverted.background"
                value="255, 99, 71">
            <description>%colorDefinition.org.jkiss.dbeaver.txn.color.reverted.background.description</description>
        </colorDefinition>
        <colorDefinition
                label="%colorDefinition.org.jkiss.dbeaver.txn.color.transaction.background.label"
                categoryId="org.jkiss.dbeaver.ui.presentation.qm"
                id="org.jkiss.dbeaver.txn.color.transaction.background"
                value="255, 228, 181">
            <description>%colorDefinition.org.jkiss.dbeaver.txn.color.transaction.background.description</description>
        </colorDefinition>

1138 1139 1140 1141 1142 1143 1144
    </extension>

    <extension point="org.eclipse.ui.exportWizards">
        <category id="org.jkiss.dbeaver.core.export.resources" name="%category.org.jkiss.dbeaver.core.export.resources.name"/>
        <wizard
             category="org.jkiss.dbeaver.core.export.resources"
             class="org.jkiss.dbeaver.tools.project.ProjectExportWizard"
S
serge-rider 已提交
1145
             icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/project.png"
1146 1147 1148 1149 1150 1151 1152 1153 1154
             id="org.jkiss.dbeaver.core.wizard.export.project"
             name="%wizard.org.jkiss.dbeaver.core.wizard.export.project.name">
           <description>
               %wizard.org.jkiss.dbeaver.core.wizard.export.project.description
           </description>
        </wizard>
        <wizard
             category="org.jkiss.dbeaver.core.export.resources"
             class="org.jkiss.dbeaver.tools.scripts.ScriptsExportWizard"
S
serge-rider 已提交
1155
             icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/sql_script.png"
1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
             id="org.jkiss.dbeaver.core.wizard.export.scripts"
             name="%wizard.org.jkiss.dbeaver.core.wizard.export.scripts.name">
           <description>
               %wizard.org.jkiss.dbeaver.core.wizard.export.scripts.description
           </description>
        </wizard>
    </extension>

    <extension point="org.eclipse.ui.importWizards">
        <category id="org.jkiss.dbeaver.core.import.resources" name="%category.org.jkiss.dbeaver.core.import.resources.name"/>
        <wizard
            category="org.jkiss.dbeaver.core.import.resources"
            class="org.jkiss.dbeaver.tools.project.ProjectImportWizard"
S
serge-rider 已提交
1169
            icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/project.png"
1170 1171 1172 1173 1174 1175 1176 1177 1178
            id="org.jkiss.dbeaver.core.wizard.import.project"
            name="%wizard.org.jkiss.dbeaver.core.wizard.import.project.name">
            <description>
                %wizard.org.jkiss.dbeaver.core.wizard.import.project.description
            </description>
        </wizard>
        <wizard
            category="org.jkiss.dbeaver.core.import.resources"
            class="org.jkiss.dbeaver.tools.scripts.ScriptsImportWizard"
S
serge-rider 已提交
1179
            icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/sql_script.png"
1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191
            id="org.jkiss.dbeaver.core.wizard.import.scripts"
            name="%wizard.org.jkiss.dbeaver.core.wizard.import.scripts.name">
            <description>
                %wizard.org.jkiss.dbeaver.core.wizard.import.scripts.description
            </description>
        </wizard>
    </extension>

    <extension point="org.eclipse.ui.newWizards">
        <wizard
             category="org.jkiss.dbeaver.core.new.general"
             class="org.jkiss.dbeaver.ui.dialogs.connection.NewConnectionWizard"
S
serge-rider 已提交
1192
             icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/database.png"
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220
             id="org.jkiss.dbeaver.core.wizard.new.connection"
             name="%wizard.org.jkiss.dbeaver.core.wizard.new.connection.name">
           <description>
               %wizard.org.jkiss.dbeaver.core.wizard.new.connection.description
           </description>
        </wizard>
    </extension>

    <extension point="org.eclipse.help.toc">
       <toc file="docs/help/toc.xml" primary="true">
       </toc>
    </extension>

    <extension point="org.eclipse.help.contexts">
       <contexts plugin="org.jkiss.dbeaver.core" file="docs/help/contexts.xml">
       </contexts>
    </extension>

    <extension point="org.eclipse.ui.keywords">
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.db.general" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.db.general.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.db.dataformat" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.db.dataformat.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.db.qm" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.db.qm.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.editor.binary" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.editor.binary.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.editor.content" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.editor.content.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.editor.erd" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.editor.erd.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.editor.sql" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.editor.sql.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.editor.entity" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.editor.entity.label"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.pref.ui.general" label="%keyword.org.jkiss.dbeaver.core.keyword.pref.ui.general.label"/>
S
Serge Rider 已提交
1221 1222 1223
        <keyword id="org.jkiss.dbeaver.core.keyword.dbeaver" label="dbeaver beaver"/>
        <keyword id="org.jkiss.dbeaver.core.keyword.connection" label="%keyword.org.jkiss.dbeaver.core.keyword.connection"/>

1224 1225 1226 1227
    </extension>

    <!-- DBeaver extensions -->

S
Serge Rider 已提交
1228 1229 1230 1231
    <extension point="org.jkiss.dbeaver.objectManager">
        <manager class="org.jkiss.dbeaver.registry.DataSourceDescriptorManager" objectType="org.jkiss.dbeaver.model.DBPDataSourceContainer"/>
    </extension>

1232 1233 1234 1235
    <extension point="org.jkiss.dbeaver.resourceHandler">
        <handler id="projects" class="org.jkiss.dbeaver.ui.resources.ProjectHandlerImpl">
            <resourceTypeBinding resourceType="org.eclipse.core.resources.IProject"/>
        </handler>
S
serge-rider 已提交
1236
        <handler id="bookmarks" class="org.jkiss.dbeaver.ui.resources.bookmarks.BookmarksHandlerImpl" name="Navigator bookmarks" managable="true" icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/bookmark_folder.png">
1237 1238 1239 1240 1241
            <root folder="Bookmarks"/>
            <contentTypeBinding contentTypeId="org.jkiss.dbeaver.bookmark"/>
        </handler>
    </extension>

1242 1243 1244 1245
    <extension point="org.jkiss.dbeaver.ui.propertyConfigurator">
        <propertyConfigurator class="org.jkiss.dbeaver.model.impl.net.SocksProxyImpl" uiClass="org.jkiss.dbeaver.ui.dialogs.net.SocksProxyConfiguratorUI"/>
    </extension>

1246 1247 1248 1249 1250 1251 1252
    <extension point="org.eclipse.e4.ui.css.swt.theme">
        <stylesheet uri="css/e4-dark_dbeaver_prefstyle.css">
            <themeid refid="org.eclipse.e4.ui.css.theme.e4_dark">
            </themeid>
        </stylesheet>
    </extension>

S
Serge Rider 已提交
1253 1254
    <extension point="org.jkiss.dbeaver.service">
        <service name="org.jkiss.dbeaver.runtime.ui.UIServiceSQL" class="org.jkiss.dbeaver.ui.editors.sql.UIServiceSQLImpl"/>
S
Serge Rider 已提交
1255
        <service name="org.jkiss.dbeaver.runtime.ui.UIServiceConnections" class="org.jkiss.dbeaver.ui.actions.datasource.UIServiceConnectionsImpl"/>
S
Serge Rider 已提交
1256
    </extension>
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273

    <extension point="org.jkiss.dbeaver.pluginService">
        <service class="org.jkiss.dbeaver.ui.actions.GlobalPropertyTester$ResourceListener"/>
        <service class="org.jkiss.dbeaver.ui.actions.DataSourcePropertyTester$QMService"/>
    </extension>

    <extension point="org.jkiss.dbeaver.mavenRepository">
        <repository id="maven-central" name="%maven.respository.central" url="https://repo1.maven.org/maven2/" order="0"/>

        <repository id="maven-central-unsecure" name="%maven.respository.central.unsecure" url="http://central.maven.org/maven2/" order="99999"/>
    </extension>

    <extension
        point="org.eclipse.search.searchPages">
        <page
            class="org.jkiss.dbeaver.ui.search.metadata.SearchMetadataPage"
            enabled="true"
S
serge-rider 已提交
1274
            icon="icons/search/metadata.png"
1275 1276 1277 1278 1279 1280
            id="org.jkiss.dbeaver.ui.search.metadata.SearchMetadataPage"
            label="%search.page.label.db.metadata">
        </page>
        <page
            class="org.jkiss.dbeaver.ui.search.data.SearchDataPage"
            enabled="true"
S
serge-rider 已提交
1281
            icon="icons/search/data.png"
1282 1283 1284 1285 1286 1287 1288 1289
            id="org.jkiss.dbeaver.ui.search.data.SearchDataPage"
            label="%search.page.label.db.fulltext">
        </page>
    </extension>
    <extension
        point="org.eclipse.search.searchResultViewPages">
        <viewPage
            class="org.jkiss.dbeaver.ui.search.metadata.SearchMetadataResultsPage"
S
serge-rider 已提交
1290
            icon="icons/search/metadata.png"
1291 1292 1293 1294 1295 1296
            id="org.jkiss.dbeaver.ui.search.metadata.SearchMetadataResultsPage"
            label="%search.result.view.page.metadata.result.name"
            searchResultClass="org.jkiss.dbeaver.ui.search.metadata.SearchMetadataResult">
        </viewPage>
        <viewPage
            class="org.jkiss.dbeaver.ui.search.data.SearchDataResultsPage"
S
serge-rider 已提交
1297
            icon="icons/search/data.png"
1298 1299 1300 1301 1302 1303
            id="org.jkiss.dbeaver.ui.search.data.SearchDataResultsPage"
            label="%search.result.view.page.data.result.name"
            searchResultClass="org.jkiss.dbeaver.ui.search.data.SearchDataResult">
        </viewPage>
    </extension>

S
serge-rider 已提交
1304 1305 1306 1307
    <!-- Perspective -->
    <extension point="org.eclipse.ui.perspectives">
        <perspective
                class="org.jkiss.dbeaver.ui.perspective.DBeaverPerspective"
S
serge-rider 已提交
1308
                icon="platform:/plugin/org.jkiss.dbeaver.ui/icons/dbeaver_perspective.png"
S
serge-rider 已提交
1309 1310 1311 1312 1313
                id="org.jkiss.dbeaver.core.perspective"
                name="%perspective.name">
        </perspective>
    </extension>

1314
</plugin>