Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
a182063f
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
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,发现更多精彩内容 >>
提交
a182063f
编写于
7月 09, 2018
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#3753 Database search pages contributions
上级
ebb71349
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
175 addition
and
4 deletion
+175
-4
nls/bundles/org.jkiss.dbeaver.core.nls/OSGI-INF/l10n/bundle_ru.properties
...jkiss.dbeaver.core.nls/OSGI-INF/l10n/bundle_ru.properties
+6
-2
plugins/org.jkiss.dbeaver.core.application/plugin.xml
plugins/org.jkiss.dbeaver.core.application/plugin.xml
+7
-0
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
...ns/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
+2
-2
plugins/org.jkiss.dbeaver.core/plugin.xml
plugins/org.jkiss.dbeaver.core/plugin.xml
+37
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/search/data/OpenDataSearchPageAction.java
...kiss/dbeaver/ui/search/data/OpenDataSearchPageAction.java
+62
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/search/metadata/OpenMetadataSearchPageAction.java
...aver/ui/search/metadata/OpenMetadataSearchPageAction.java
+61
-0
未找到文件。
nls/bundles/org.jkiss.dbeaver.core.nls/OSGI-INF/l10n/bundle_ru.properties
浏览文件 @
a182063f
...
...
@@ -10,8 +10,6 @@ view.project.explorer.title=\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0
view.query.manager.title
=
\u
041C
\u0435\u
043D
\u0435\u0434\u0436\u0435\u0440
\u0437\u0430\u
043F
\u0440\u
043E
\u0441\u
043E
\u0432
view.shell.process.title
=
\u
041F
\u0440\u
043E
\u0446\u0435\u0441\u0441
menu.navigate
=
\u
041D
\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u
044F
editor.sql.name
=
\u0420\u0435\u0434\u0430\u
043A
\u0442\u
043E
\u0440
SQL
editor.entity.name
=
\u0420\u0435\u0434\u0430\u
043A
\u0442\u
043E
\u0440
\u0441\u0443\u0449\u
043D
\u
043E
\u0441\u0442\u0438
editor.lob.name
=
Large Object Editor
...
...
@@ -164,6 +162,8 @@ DateFormatter.number.general.minFractDigits.description=Minimum fraction digits
DateFormatter.number.general.roundingMode.label
=
\u0420\u0435\u0436\u0438\u
043C
\u
043E
\u
043A
\u0440\u0443\u0433\u
043B
\u0435\u
043D
\u0438\u
044F
DateFormatter.number.general.roundingMode.description
=
\u0420\u0435\u0436\u0438\u
043C
\u
043E
\u
043A
\u0440\u0443\u0433\u
043B
\u0435\u
043D
\u0438\u
044F
menu.navigate
=
\u
041D
\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u
044F
menu.search
=
\u
041F
\u
043E
\u0438\u0441\u
043A
menu.database
=
\u0411\u0430\u0437\u0430
\u0434\u0430\u
043D
\u
043D
\u
044B
\u0445
menu.database.tools
=
\u0418\u
043D
\u0441\u0442\u0440\u0443\u
043C
\u0435\u
043D
\u0442\u
044B
menu.database.sql.generate
=
\u0413\u0435\u
043D
\u0435\u0440\u0438\u0440\u
043E
\u0432\u0430\u0442\u
044C SQL
...
...
@@ -244,4 +244,8 @@ command.org.jkiss.dbeaver.core.resultset.export.name=\u042D\u043A\u0441\u043F\u0
command.org.jkiss.dbeaver.ui.tools.select.connection.name
=
\u
041F
\u
043E
\u
043C
\u0435\u
043D
\u
044F
\u0442\u
044C
\u0430\u
043A
\u0442\u0438\u0432\u
043D
\u
043E
\u0435
\u0441\u
043E
\u0435\u0434\u0438\u
043D
\u0435\u
043D
\u0438\u0435
command.org.jkiss.dbeaver.ui.tools.select.schema.name
=
\u
041F
\u
043E
\u
043C
\u0435\u
043D
\u
044F
\u0442\u
044C
\u0430\u
043A
\u0442\u0438\u0432\u
043D
\u0443\u
044E
\u0441\u0445\u0435\u
043C
\u0443
command.org.jkiss.dbeaver.ui.tools.menu.name
=
\u0418\u
043D
\u0441\u0442\u0440\u0443\u
043C
\u0435\u
043D
\u0442\u
044B
content-type.org.jkiss.dbeaver.bookmark.name
=
\u0417\u0430\u
043A
\u
043B
\u0430\u0434\u
043A
\u0430
search.page.label.db.metadata
=
\u
041F
\u
043E
\u0438\u0441\u
043A
\u
043E
\u0431\u
044A
\u0435\u
043A
\u0442\u
043E
\u0432
\u0411\u0414
search.page.label.db.fulltext
=
\u
041F
\u
043E
\u
043B
\u
043D
\u
043E
\u0442\u0435\u
043A
\u0441\u0442\u
043E
\u0432\u
044B
\u0439
\u
043F
\u
043E
\u0438\u0441\u
043A
\u0411\u0414
plugins/org.jkiss.dbeaver.core.application/plugin.xml
浏览文件 @
a182063f
...
...
@@ -199,8 +199,15 @@
<separator
name=
"settings"
visible=
"true"
/>
<command
commandId=
"org.eclipse.ui.window.preferences"
label=
"%command.org.jkiss.dbeaver.core.window.preferences.name"
/>
</menuContribution>
<!-- Main toolbar -->
<menuContribution
allPopups=
"false"
locationURI=
"toolbar:org.eclipse.ui.main.toolbar?after=additions"
>
</menuContribution>
</extension>
<!-- Keybindings. A bit different than standard -->
<extension
point=
"org.eclipse.ui.bindings"
>
<scheme
description=
"%productName"
id=
"org.jkiss.dbeaver.defaultKeyScheme"
name=
"%productName"
parentId=
"org.eclipse.ui.defaultAcceleratorConfiguration"
/>
...
...
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
浏览文件 @
a182063f
...
...
@@ -36,8 +36,6 @@ view.shell.process.title=Process
view.sql.results.title
=
Data
view.database.output.title
=
Output
menu.navigate
=
Navigate
language.en.label
=
English
language.zh.label
=
Chinese
language.ru.label
=
Russian
...
...
@@ -346,6 +344,8 @@ DateFormatter.number.general.useTypeScale.description=Use column/attribute data
DateFormatter.number.general.roundingMode.label
=
Rounding mode
DateFormatter.number.general.roundingMode.description
=
Rounding mode
menu.navigate
=
Navigate
menu.search
=
Se&arch
menu.database
=
&Database
menu.database.tools
=
Tools
menu.database.sql.generate
=
Generate SQL
...
...
plugins/org.jkiss.dbeaver.core/plugin.xml
浏览文件 @
a182063f
...
...
@@ -2507,6 +2507,43 @@
</menuContribution>
</extension>
<!-- 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>
<extension
point=
"org.eclipse.ui.bindings"
>
<key
commandId=
"org.jkiss.dbeaver.ui.tools.menu"
schemeId=
"org.eclipse.ui.defaultAcceleratorConfiguration"
sequence=
"ALT+`"
/>
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/search/data/OpenDataSearchPageAction.java
0 → 100644
浏览文件 @
a182063f
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 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.search.data
;
import
org.eclipse.jface.action.IAction
;
import
org.eclipse.jface.viewers.ISelection
;
import
org.eclipse.ui.IWorkbenchWindow
;
import
org.eclipse.ui.IWorkbenchWindowActionDelegate
;
import
org.eclipse.search.ui.NewSearchUI
;
/**
* Opens the data search dialog.
*/
public
class
OpenDataSearchPageAction
implements
IWorkbenchWindowActionDelegate
{
private
static
final
String
DATA_SEARCH_PAGE_ID
=
SearchDataPage
.
class
.
getName
();
private
IWorkbenchWindow
fWindow
;
public
OpenDataSearchPageAction
()
{
}
@Override
public
void
init
(
IWorkbenchWindow
window
)
{
fWindow
=
window
;
}
@Override
public
void
run
(
IAction
action
)
{
if
(
fWindow
==
null
||
fWindow
.
getActivePage
()
==
null
)
{
return
;
}
NewSearchUI
.
openSearchDialog
(
fWindow
,
DATA_SEARCH_PAGE_ID
);
}
@Override
public
void
selectionChanged
(
IAction
action
,
ISelection
selection
)
{
// do nothing since the action isn't selection dependent.
}
@Override
public
void
dispose
()
{
fWindow
=
null
;
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/search/metadata/OpenMetadataSearchPageAction.java
0 → 100644
浏览文件 @
a182063f
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 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.search.metadata
;
import
org.eclipse.jface.action.IAction
;
import
org.eclipse.jface.viewers.ISelection
;
import
org.eclipse.search.ui.NewSearchUI
;
import
org.eclipse.ui.IWorkbenchWindow
;
import
org.eclipse.ui.IWorkbenchWindowActionDelegate
;
import
org.jkiss.dbeaver.ui.search.data.SearchDataPage
;
/**
* Opens the data search dialog.
*/
public
class
OpenMetadataSearchPageAction
implements
IWorkbenchWindowActionDelegate
{
private
static
final
String
DATA_SEARCH_PAGE_ID
=
SearchMetadataPage
.
class
.
getName
();
private
IWorkbenchWindow
fWindow
;
public
OpenMetadataSearchPageAction
()
{
}
@Override
public
void
init
(
IWorkbenchWindow
window
)
{
fWindow
=
window
;
}
@Override
public
void
run
(
IAction
action
)
{
if
(
fWindow
==
null
||
fWindow
.
getActivePage
()
==
null
)
{
return
;
}
NewSearchUI
.
openSearchDialog
(
fWindow
,
DATA_SEARCH_PAGE_ID
);
}
@Override
public
void
selectionChanged
(
IAction
action
,
ISelection
selection
)
{
// do nothing since the action isn't selection dependent.
}
@Override
public
void
dispose
()
{
fWindow
=
null
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录