Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
888d38df
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,发现更多精彩内容 >>
提交
888d38df
编写于
12月 02, 2017
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MySQL view create fix (new view name). i18n fixes
Former-commit-id:
3b573ba3
上级
c2753c2a
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
13 addition
and
32 deletion
+13
-32
nls/bundles/org.jkiss.dbeaver.core.nls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
...ls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
+0
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreResources.properties
....core/src/org/jkiss/dbeaver/core/CoreResources.properties
+0
-1
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/edit/MySQLTableManager.java
...c/org/jkiss/dbeaver/ext/mysql/edit/MySQLTableManager.java
+1
-1
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/edit/MySQLViewManager.java
...rc/org/jkiss/dbeaver/ext/mysql/edit/MySQLViewManager.java
+12
-29
未找到文件。
nls/bundles/org.jkiss.dbeaver.core.nls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
浏览文件 @
888d38df
...
...
@@ -329,7 +329,6 @@ dialog_connection_button_test = &\u6D4B\u8BD5\u94FE\u63A5 ...
#page conn setting
dialog_connection_description
=
\u6570\u
636E
\u
5E93
\u
8FDE
\u
63A5
\u
8BBE
\u
7F6E.
dialog_connection_driver
=
\u
9A71
\u
52A8
\u
540D
\u
79F0:
#dialog_connection_driver_general = \u901A\u7528
dialog_connection_driver_project
=
\u9879\u
76EE
dialog_connection_driver_treecontrol_initialText
=
\u
8F93
\u5165\u6570\u
636E
\u
5E93/
\u
9A71
\u
52A8
\u
540D
\u7684\u
90E8
\u5206\u5185\u
5BB9
\u6765\u
8FC7
\u
6EE4
dialog_connection_edit_driver_button
=
\u
7F16
\u
8F91
\u
9A71
\u
52A8
\u
8BBE
\u
7F6E
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreResources.properties
浏览文件 @
888d38df
...
...
@@ -327,7 +327,6 @@ dialog_connection_button_test = &Test Connection ...
#page conn setting
dialog_connection_description
=
Database connection settings.
dialog_connection_driver
=
Driver Name:
dialog_connection_driver_general
=
General
dialog_connection_driver_project
=
Project
dialog_connection_driver_treecontrol_initialText
=
Type part of database/driver name to filter
dialog_connection_edit_driver_button
=
Edit Driver Settings
...
...
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/edit/MySQLTableManager.java
浏览文件 @
888d38df
...
...
@@ -64,7 +64,7 @@ public class MySQLTableManager extends SQLTableManager<MySQLTableBase, MySQLCata
}
@Override
protected
MySQLTable
createDatabaseObject
(
DBRProgressMonitor
monitor
,
DBECommandContext
context
,
MySQLCatalog
parent
,
Object
copyFrom
)
throws
DBException
protected
MySQLTable
Base
createDatabaseObject
(
DBRProgressMonitor
monitor
,
DBECommandContext
context
,
MySQLCatalog
parent
,
Object
copyFrom
)
throws
DBException
{
final
MySQLTable
table
;
if
(
copyFrom
instanceof
DBSEntity
)
{
...
...
plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/edit/MySQLViewManager.java
浏览文件 @
888d38df
...
...
@@ -19,15 +19,14 @@ package org.jkiss.dbeaver.ext.mysql.edit;
import
org.jkiss.code.Nullable
;
import
org.jkiss.dbeaver.DBException
;
import
org.jkiss.dbeaver.model.DBPEvaluationContext
;
import
org.jkiss.dbeaver.model.edit.DBEPersistAction
;
import
org.jkiss.dbeaver.ext.mysql.model.MySQLCatalog
;
import
org.jkiss.dbeaver.ext.mysql.model.MySQLTableBase
;
import
org.jkiss.dbeaver.ext.mysql.model.MySQLView
;
import
org.jkiss.dbeaver.model.DBPEvaluationContext
;
import
org.jkiss.dbeaver.model.edit.DBECommandContext
;
import
org.jkiss.dbeaver.model.edit.DBEPersistAction
;
import
org.jkiss.dbeaver.model.impl.DBSObjectCache
;
import
org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction
;
import
org.jkiss.dbeaver.model.impl.sql.edit.SQLObjectEditor
;
import
org.jkiss.dbeaver.model.runtime.DBRProgressMonitor
;
import
org.jkiss.dbeaver.utils.GeneralUtils
;
import
org.jkiss.utils.CommonUtils
;
...
...
@@ -38,7 +37,7 @@ import java.util.Map;
/**
* MySQLViewManager
*/
public
class
MySQLViewManager
extends
SQLObjectEditor
<
MySQLTableBase
,
MySQLCatalog
>
{
public
class
MySQLViewManager
extends
MySQLTableManager
{
@Nullable
@Override
...
...
@@ -69,13 +68,18 @@ public class MySQLViewManager extends SQLObjectEditor<MySQLTableBase, MySQLCatal
@Override
protected
MySQLView
createDatabaseObject
(
DBRProgressMonitor
monitor
,
DBECommandContext
context
,
MySQLCatalog
parent
,
Object
copyFrom
)
{
MySQLView
newCatalog
=
new
MySQLView
(
parent
);
newCatalog
.
setName
(
"NewView"
);
//$NON-NLS-1$
return
newCatalog
;
MySQLView
newView
=
new
MySQLView
(
parent
);
try
{
newView
.
setName
(
getNewChildName
(
monitor
,
parent
,
"new_view"
));
}
catch
(
DBException
e
)
{
// Never be here
log
.
error
(
e
);
}
return
newView
;
}
@Override
protected
void
add
ObjectCreateActions
(
List
<
DBEPersistAction
>
actions
,
Obje
ctCreateCommand
command
,
Map
<
String
,
Object
>
options
)
protected
void
add
StructObjectCreateActions
(
List
<
DBEPersistAction
>
actions
,
Stru
ctCreateCommand
command
,
Map
<
String
,
Object
>
options
)
{
createOrReplaceViewQuery
(
actions
,
(
MySQLView
)
command
.
getObject
());
}
...
...
@@ -107,26 +111,5 @@ public class MySQLViewManager extends SQLObjectEditor<MySQLTableBase, MySQLCatal
actions
.
add
(
new
SQLDatabasePersistAction
(
"Create view"
,
decl
.
toString
()));
}
/*
public ITabDescriptor[] getTabDescriptors(IWorkbenchWindow workbenchWindow, final IDatabaseEditor activeEditor, final MySQLView object)
{
if (object.getContainer().isSystem()) {
return null;
}
return new ITabDescriptor[] {
new PropertyTabDescriptor(
PropertiesContributor.CATEGORY_INFO,
"view.definition", //$NON-NLS-1$
MySQLMessages.edit_view_manager_definition,
DBIcon.SOURCES.getImage(),
new SectionDescriptor("default", MySQLMessages.edit_view_manager_definition) { //$NON-NLS-1$
public ISection getSectionClass()
{
return new MySQLViewDefinitionSection(activeEditor);
}
})
};
}
*/
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录