Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
9f4f1302
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9f4f1302
编写于
4月 22, 2019
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/devel' into devel
Former-commit-id:
d7d691f4
上级
65597892
6dd80ff5
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
29 addition
and
138 deletion
+29
-138
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
...ns/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
+0
-4
plugins/org.jkiss.dbeaver.core/plugin.xml
plugins/org.jkiss.dbeaver.core/plugin.xml
+16
-43
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/DataSourceToolbarUtils.java
...dbeaver/ui/actions/datasource/DataSourceToolbarUtils.java
+2
-2
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/SelectActiveDataSourceHandler.java
.../ui/actions/datasource/SelectActiveDataSourceHandler.java
+1
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/DataSourceManagementToolbar.java
...s/dbeaver/ui/perspective/DataSourceManagementToolbar.java
+2
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/SelectConnectionHandler.java
...jkiss/dbeaver/ui/perspective/SelectConnectionHandler.java
+0
-40
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/SelectSchemaHandler.java
...org/jkiss/dbeaver/ui/perspective/SelectSchemaHandler.java
+0
-36
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
+7
-11
plugins/org.jkiss.dbeaver.ui.dashboard/src/org/jkiss/dbeaver/ui/dashboard/view/HandlerDashboardOpen.java
...jkiss/dbeaver/ui/dashboard/view/HandlerDashboardOpen.java
+1
-1
未找到文件。
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
浏览文件 @
9f4f1302
...
@@ -63,10 +63,6 @@ command.org.jkiss.dbeaver.core.txn.log.description=Current transaction log (exec
...
@@ -63,10 +63,6 @@ command.org.jkiss.dbeaver.core.txn.log.description=Current transaction log (exec
command.org.jkiss.dbeaver.core.txn.pending.name
=
Pending transactions
command.org.jkiss.dbeaver.core.txn.pending.name
=
Pending transactions
command.org.jkiss.dbeaver.core.txn.pending.description
=
List of all pending transactions
command.org.jkiss.dbeaver.core.txn.pending.description
=
List of all pending transactions
command.org.jkiss.dbeaver.core.transaction_mode.name
=
Transaction mode
command.org.jkiss.dbeaver.core.transaction_mode.name
=
Transaction mode
command.org.jkiss.dbeaver.core.select.connection.name
=
Active connection
command.org.jkiss.dbeaver.core.select.connection.description
=
Database conection associated with current editor
command.org.jkiss.dbeaver.core.select.schema.name
=
Active schema
command.org.jkiss.dbeaver.core.select.schema.description
=
Database active schema
command.org.jkiss.dbeaver.core.procedure.execute.name
=
Execute Stored Procedure
command.org.jkiss.dbeaver.core.procedure.execute.name
=
Execute Stored Procedure
command.org.jkiss.dbeaver.core.procedure.execute.description
=
Open new SQL console with execute stored procedure query
command.org.jkiss.dbeaver.core.procedure.execute.description
=
Open new SQL console with execute stored procedure query
...
...
plugins/org.jkiss.dbeaver.core/plugin.xml
浏览文件 @
9f4f1302
...
@@ -128,9 +128,6 @@
...
@@ -128,9 +128,6 @@
<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.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"
/>
<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"
/>
<command
id=
"org.jkiss.dbeaver.core.select.connection"
name=
"%command.org.jkiss.dbeaver.core.select.connection.name"
description=
"%command.org.jkiss.dbeaver.core.select.connection.description"
categoryId=
"org.jkiss.dbeaver.core.database"
/>
<command
id=
"org.jkiss.dbeaver.core.select.schema"
name=
"%command.org.jkiss.dbeaver.core.select.schema.name"
description=
"%command.org.jkiss.dbeaver.core.select.schema.description"
categoryId=
"org.jkiss.dbeaver.core.database"
/>
<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"
/>
<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"
/>
<command
id=
"org.jkiss.dbeaver.core.compare.objects"
name=
"%command.org.jkiss.dbeaver.core.compare.objects.name"
description=
"%command.org.jkiss.dbeaver.core.compare.objects.description"
categoryId=
"org.jkiss.dbeaver.core.util"
/>
<command
id=
"org.jkiss.dbeaver.core.compare.objects"
name=
"%command.org.jkiss.dbeaver.core.compare.objects.name"
description=
"%command.org.jkiss.dbeaver.core.compare.objects.description"
categoryId=
"org.jkiss.dbeaver.core.util"
/>
...
@@ -163,8 +160,8 @@
...
@@ -163,8 +160,8 @@
<image
commandId=
"org.jkiss.dbeaver.core.rollback"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/rollback.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"
/>
<image
commandId=
"org.jkiss.dbeaver.core.txn.log"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/sql/txn_log.png"
/>
<image
commandId=
"org.jkiss.dbeaver.
core
.select.connection"
icon=
"platform:/plugin/org.jkiss.dbeaver.model/icons/tree/database.png"
/>
<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.
core
.select.schema"
icon=
"platform:/plugin/org.jkiss.dbeaver.model/icons/tree/schema.png"
/>
<image
commandId=
"org.jkiss.dbeaver.
ui.tools
.select.schema"
icon=
"platform:/plugin/org.jkiss.dbeaver.model/icons/tree/schema.png"
/>
<image
commandId=
"org.jkiss.dbeaver.core.qm.filter"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/filter.png"
/>
<image
commandId=
"org.jkiss.dbeaver.core.qm.filter"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/misc/filter.png"
/>
<image
commandId=
"org.jkiss.dbeaver.core.qm.clear"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/erase.png"
/>
<image
commandId=
"org.jkiss.dbeaver.core.qm.clear"
icon=
"platform:/plugin/org.jkiss.dbeaver.ui/icons/erase.png"
/>
...
@@ -351,23 +348,6 @@
...
@@ -351,23 +348,6 @@
<enabledWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.editor.transactional"
/></enabledWhen>
<enabledWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.editor.transactional"
/></enabledWhen>
</handler>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.core.select.connection"
class=
"org.jkiss.dbeaver.ui.actions.datasource.SelectActiveDataSourceHandler"
>
<enabledWhen>
<with
variable=
"activeEditor"
>
<instanceof
value=
"org.jkiss.dbeaver.model.IDataSourceContainerProviderEx"
/>
</with>
</enabledWhen>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.core.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>
</handler>
<!-- Set default behaviour for standard widgets -->
<!-- Set default behaviour for standard widgets -->
<handler
commandId=
"org.eclipse.ui.edit.copy"
class=
"org.eclipse.ui.internal.handlers.WidgetMethodHandler:copy"
>
<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>
<activeWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.inlineWidgetEditor"
/></activeWhen>
...
@@ -477,18 +457,23 @@
...
@@ -477,18 +457,23 @@
</or>
</or>
</activeWhen>
</activeWhen>
</handler>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.ui.tools.select.connection"
class=
"org.jkiss.dbeaver.ui.
perspective.SelectConnection
Handler"
>
<handler
commandId=
"org.jkiss.dbeaver.ui.tools.select.connection"
class=
"org.jkiss.dbeaver.ui.
actions.datasource.SelectActiveDataSource
Handler"
>
<
active
When>
<
enabled
When>
<with
variable=
"activeEditor"
>
<with
variable=
"activeEditor"
>
<instanceof
value=
"org.jkiss.dbeaver.model.IDataSourceContainerProviderEx"
/>
<instanceof
value=
"org.jkiss.dbeaver.model.IDataSourceContainerProviderEx"
/>
</with>
</with>
</
active
When>
</
enabled
When>
</handler>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.ui.tools.select.schema"
class=
"org.jkiss.dbeaver.ui.perspective.SelectSchemaHandler"
>
<handler
commandId=
"org.jkiss.dbeaver.ui.tools.select.schema"
class=
"org.jkiss.dbeaver.ui.actions.datasource.SelectActiveSchemaHandler"
>
<activeWhen>
<enabledWhen>
<reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/>
<with
variable=
"activeEditor"
>
</activeWhen>
<adapt
type=
"org.jkiss.dbeaver.model.DBPContextProvider"
>
<test
property=
"org.jkiss.dbeaver.core.datasource.supportsTransactions"
value=
"true"
/>
</adapt>
</with>
</enabledWhen>
</handler>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.core.generate.uuid"
class=
"org.jkiss.dbeaver.ui.actions.common.GenerateUUIDHandler"
>
<handler
commandId=
"org.jkiss.dbeaver.core.generate.uuid"
class=
"org.jkiss.dbeaver.ui.actions.common.GenerateUUIDHandler"
>
<with
variable=
"activePart"
>
<with
variable=
"activePart"
>
<or>
<or>
...
@@ -606,18 +591,6 @@
...
@@ -606,18 +591,6 @@
<visibleWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/></visibleWhen>
<visibleWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/></visibleWhen>
</command>
</command>
</toolbar>
</toolbar>
<!--toolbar id="dbeaver-datasource-selector" label="%toolbar.dbeaver-datasource-selector.label">
<control class="org.jkiss.dbeaver.ui.perspective.DataSourceManagementToolbar$ToolbarContribution">
<visibleWhen><reference definitionId="org.jkiss.dbeaver.core.ui.datasource.editor"/></visibleWhen>
</control>
<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-->
<toolbar
id=
"dbeaver-edit"
label=
"%toolbar.dbeaver-edit.label"
>
<toolbar
id=
"dbeaver-edit"
label=
"%toolbar.dbeaver-edit.label"
>
<command
commandId=
"org.eclipse.ui.file.save"
>
<command
commandId=
"org.eclipse.ui.file.save"
>
...
@@ -664,14 +637,14 @@
...
@@ -664,14 +637,14 @@
<toolbar
id=
"dbeaver-connection-selector"
label=
"%toolbar.dbeaver-datasource-selector.label"
>
<toolbar
id=
"dbeaver-connection-selector"
label=
"%toolbar.dbeaver-datasource-selector.label"
>
<command
<command
commandId=
"org.jkiss.dbeaver.
core
.select.connection"
commandId=
"org.jkiss.dbeaver.
ui.tools
.select.connection"
id=
"org.jkiss.dbeaver.core.menu.select.connection"
id=
"org.jkiss.dbeaver.core.menu.select.connection"
style=
"pulldown"
style=
"pulldown"
mode=
"FORCE_TEXT"
>
mode=
"FORCE_TEXT"
>
<visibleWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/></visibleWhen>
<visibleWhen><reference
definitionId=
"org.jkiss.dbeaver.core.ui.datasource.editor"
/></visibleWhen>
</command>
</command>
<command
<command
commandId=
"org.jkiss.dbeaver.
core
.select.schema"
commandId=
"org.jkiss.dbeaver.
ui.tools
.select.schema"
id=
"org.jkiss.dbeaver.core.menu.select.schema"
id=
"org.jkiss.dbeaver.core.menu.select.schema"
style=
"pulldown"
style=
"pulldown"
mode=
"FORCE_TEXT"
>
mode=
"FORCE_TEXT"
>
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/DataSourceToolbarUtils.java
浏览文件 @
9f4f1302
...
@@ -70,8 +70,8 @@ public class DataSourceToolbarUtils
...
@@ -70,8 +70,8 @@ public class DataSourceToolbarUtils
public
static
void
updateCommandsUI
()
{
public
static
void
updateCommandsUI
()
{
ICommandService
commandService
=
PlatformUI
.
getWorkbench
().
getService
(
ICommandService
.
class
);
ICommandService
commandService
=
PlatformUI
.
getWorkbench
().
getService
(
ICommandService
.
class
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.
core
.select.connection"
,
null
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.
ui.tools
.select.connection"
,
null
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.
core
.select.schema"
,
null
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.
ui.tools
.select.schema"
,
null
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.ui.editors.sql.sync.connection"
,
null
);
commandService
.
refreshElements
(
"org.jkiss.dbeaver.ui.editors.sql.sync.connection"
,
null
);
}
}
}
}
\ No newline at end of file
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/actions/datasource/SelectActiveDataSourceHandler.java
浏览文件 @
9f4f1302
...
@@ -59,7 +59,7 @@ public class SelectActiveDataSourceHandler extends AbstractDataSourceHandler imp
...
@@ -59,7 +59,7 @@ public class SelectActiveDataSourceHandler extends AbstractDataSourceHandler imp
return
null
;
return
null
;
}
}
p
rivate
static
void
openDataSourceSelector
(
IWorkbenchWindow
workbenchWindow
,
DBPDataSourceContainer
dataSource
)
{
p
ublic
static
void
openDataSourceSelector
(
IWorkbenchWindow
workbenchWindow
,
DBPDataSourceContainer
dataSource
)
{
IProject
activeProject
=
dataSource
!=
null
?
dataSource
.
getRegistry
().
getProject
()
:
DBWorkbench
.
getPlatform
().
getProjectManager
().
getActiveProject
();
IProject
activeProject
=
dataSource
!=
null
?
dataSource
.
getRegistry
().
getProject
()
:
DBWorkbench
.
getPlatform
().
getProjectManager
().
getActiveProject
();
IEditorPart
activeEditor
=
workbenchWindow
.
getActivePage
().
getActiveEditor
();
IEditorPart
activeEditor
=
workbenchWindow
.
getActivePage
().
getActiveEditor
();
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/DataSourceManagementToolbar.java
浏览文件 @
9f4f1302
...
@@ -78,7 +78,9 @@ import java.util.*;
...
@@ -78,7 +78,9 @@ import java.util.*;
/**
/**
* DataSource Toolbar
* DataSource Toolbar
* Deprecated everything was moved to org.jkiss.dbeaver.ui.actions.datasource.*
*/
*/
@Deprecated
public
class
DataSourceManagementToolbar
implements
DBPRegistryListener
,
DBPEventListener
,
DBPPreferenceListener
,
INavigatorListener
{
public
class
DataSourceManagementToolbar
implements
DBPRegistryListener
,
DBPEventListener
,
DBPPreferenceListener
,
INavigatorListener
{
private
static
final
Log
log
=
Log
.
getLog
(
DataSourceManagementToolbar
.
class
);
private
static
final
Log
log
=
Log
.
getLog
(
DataSourceManagementToolbar
.
class
);
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/SelectConnectionHandler.java
已删除
100644 → 0
浏览文件 @
65597892
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* 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.
*/
package
org.jkiss.dbeaver.ui.perspective
;
import
org.eclipse.core.commands.ExecutionEvent
;
import
org.eclipse.core.commands.ExecutionException
;
import
org.eclipse.ui.IEditorPart
;
import
org.eclipse.ui.IWorkbenchPart
;
import
org.eclipse.ui.handlers.HandlerUtil
;
import
org.jkiss.dbeaver.model.IDataSourceContainerProviderEx
;
import
org.jkiss.dbeaver.model.exec.DBCExecutionContext
;
import
org.jkiss.dbeaver.ui.actions.AbstractDataSourceHandler
;
public
class
SelectConnectionHandler
extends
AbstractDataSourceHandler
{
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
IEditorPart
activeEditor
=
HandlerUtil
.
getActiveEditor
(
event
);
if
(
activeEditor
instanceof
IDataSourceContainerProviderEx
)
{
DataSourceManagementToolbar
.
getInstance
().
showConnectionSelector
();
}
return
null
;
}
}
\ No newline at end of file
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/perspective/SelectSchemaHandler.java
已删除
100644 → 0
浏览文件 @
65597892
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
*
* 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.
*/
package
org.jkiss.dbeaver.ui.perspective
;
import
org.eclipse.core.commands.ExecutionEvent
;
import
org.eclipse.core.commands.ExecutionException
;
import
org.jkiss.dbeaver.model.exec.DBCExecutionContext
;
import
org.jkiss.dbeaver.ui.actions.AbstractDataSourceHandler
;
public
class
SelectSchemaHandler
extends
AbstractDataSourceHandler
{
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
DBCExecutionContext
context
=
getExecutionContext
(
event
,
true
);
if
(
context
!=
null
&&
context
.
isConnected
())
{
DataSourceManagementToolbar
.
getInstance
().
showDatabaseSelector
();
}
return
null
;
}
}
\ No newline at end of file
plugins/org.jkiss.dbeaver.ui.dashboard/plugin.xml
浏览文件 @
9f4f1302
...
@@ -53,17 +53,7 @@
...
@@ -53,17 +53,7 @@
<!-- Dashboard handlers -->
<!-- Dashboard handlers -->
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.open"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardOpen"
>
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.open"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardOpen"
>
<enabledWhen>
<enabledWhen><reference
definitionId=
"org.jkiss.dbeaver.core.datasource.connected"
/></enabledWhen>
<and>
<with
variable=
"selection"
>
<count
value=
"1"
/>
<iterate
operator=
"and"
>
<instanceof
value=
"org.jkiss.dbeaver.model.navigator.DBNDataSource"
/>
</iterate>
</with>
<reference
definitionId=
"org.jkiss.dbeaver.core.datasource.connected"
/>
</and>
</enabledWhen>
</handler>
</handler>
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.configure"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardConfiguration"
/>
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.configure"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardConfiguration"
/>
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.reset"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardReset"
/>
<handler
commandId=
"org.jkiss.dbeaver.ui.dashboard.reset"
class=
"org.jkiss.dbeaver.ui.dashboard.view.HandlerDashboardReset"
/>
...
@@ -91,6 +81,12 @@
...
@@ -91,6 +81,12 @@
</command>
</command>
</menuContribution>
</menuContribution>
<menuContribution
allPopups=
"false"
locationURI=
"menu:dataSourceMenu?after=tools"
>
<command
commandId=
"org.jkiss.dbeaver.ui.dashboard.open"
>
<visibleWhen
checkEnabled=
"true"
/>
</command>
</menuContribution>
<menuContribution
allPopups=
"false"
locationURI=
"toolbar:org.jkiss.dbeaver.ui.dashboardView"
>
<menuContribution
allPopups=
"false"
locationURI=
"toolbar:org.jkiss.dbeaver.ui.dashboardView"
>
<command
commandId=
"org.jkiss.dbeaver.ui.dashboard.configure"
/>
<command
commandId=
"org.jkiss.dbeaver.ui.dashboard.configure"
/>
<separator
name=
"actions"
visible=
"true"
/>
<separator
name=
"actions"
visible=
"true"
/>
...
...
plugins/org.jkiss.dbeaver.ui.dashboard/src/org/jkiss/dbeaver/ui/dashboard/view/HandlerDashboardOpen.java
浏览文件 @
9f4f1302
...
@@ -31,7 +31,7 @@ public class HandlerDashboardOpen extends AbstractDataSourceHandler {
...
@@ -31,7 +31,7 @@ public class HandlerDashboardOpen extends AbstractDataSourceHandler {
@Override
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
IWorkbenchWindow
workbenchWindow
=
HandlerUtil
.
getActiveWorkbenchWindow
(
event
);
IWorkbenchWindow
workbenchWindow
=
HandlerUtil
.
getActiveWorkbenchWindow
(
event
);
DBPDataSourceContainer
dataSourceContainer
=
getDataSourceContainer
(
event
,
fals
e
);
DBPDataSourceContainer
dataSourceContainer
=
getDataSourceContainer
(
event
,
tru
e
);
if
(
dataSourceContainer
==
null
)
{
if
(
dataSourceContainer
==
null
)
{
dataSourceContainer
=
getDataSourceContainer
(
event
,
true
);
dataSourceContainer
=
getDataSourceContainer
(
event
,
true
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录