Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
cd66a433
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,发现更多精彩内容 >>
提交
cd66a433
编写于
5月 10, 2018
作者:
L
liuyuanyuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add i18n and l10n for undo and redo。
Former-commit-id:
b170eff7
上级
f91d7825
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
16 addition
and
3 deletion
+16
-3
nls/bundles/org.jkiss.dbeaver.core.nls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
...ls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
+4
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreMessages.java
...dbeaver.core/src/org/jkiss/dbeaver/core/CoreMessages.java
+4
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreResources.properties
....core/src/org/jkiss/dbeaver/core/CoreResources.properties
+4
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/entity/handlers/RedoChangesHandler.java
...beaver/ui/editors/entity/handlers/RedoChangesHandler.java
+2
-1
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/entity/handlers/UndoChangesHandler.java
...beaver/ui/editors/entity/handlers/UndoChangesHandler.java
+2
-1
未找到文件。
nls/bundles/org.jkiss.dbeaver.core.nls/src/org/jkiss/dbeaver/core/CoreResources_zh.properties
浏览文件 @
cd66a433
...
...
@@ -1241,5 +1241,9 @@ obj_editor_properties_control_action_configure_columns = \u914D\u7F6E\u5B57\u6BB
obj_editor_properties_control_action_configure_columns_description
=
\u
914D
\u
7F6E
\u
5B57
\u
6BB5
\u
53EF
\u
89C1
\u6027
## object properties editor ##
##toolbar editor menu item##
toolbar_cmd_undo_name
=
\u
64A4
\u9500
toolbar_cmd_redo_name
=
\u
91CD
\u
505A
##toolbar editor menu item##
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreMessages.java
浏览文件 @
cd66a433
...
...
@@ -1337,7 +1337,10 @@ public class CoreMessages extends NLS {
public
static
String
obj_editor_properties_control_action_configure_columns_description
;
//object properties editor
//toolbar editor menu item
public
static
String
toolbar_cmd_undo_name
;
public
static
String
toolbar_cmd_redo_name
;
//toolbar editor menu item
static
{
// initialize resource bundle
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreResources.properties
浏览文件 @
cd66a433
...
...
@@ -1295,6 +1295,10 @@ obj_editor_properties_control_action_configure_columns = Configure columns
obj_editor_properties_control_action_configure_columns_description
=
Configure columns visibility
## object properties editor ##
##toolbar editor menu item##
toolbar_cmd_undo_name
=
Undo
toolbar_cmd_redo_name
=
Redo
##toolbar editor menu item##
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/entity/handlers/RedoChangesHandler.java
浏览文件 @
cd66a433
...
...
@@ -24,6 +24,7 @@ import org.eclipse.ui.IWorkbenchWindow;
import
org.eclipse.ui.commands.IElementUpdater
;
import
org.eclipse.ui.handlers.HandlerUtil
;
import
org.eclipse.ui.menus.UIElement
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.edit.DBECommandContext
;
import
org.jkiss.dbeaver.ui.editors.entity.EntityEditor
;
import
org.jkiss.dbeaver.utils.RuntimeUtils
;
...
...
@@ -54,7 +55,7 @@ public class RedoChangesHandler extends AbstractHandler implements IElementUpdat
final
IEditorPart
activeEditor
=
workbenchWindow
.
getActivePage
().
getActiveEditor
();
if
(
activeEditor
instanceof
EntityEditor
)
{
final
DBECommandContext
commandContext
=
((
EntityEditor
)
activeEditor
).
getCommandContext
();
String
text
=
"Redo"
;
String
text
=
CoreMessages
.
toolbar_cmd_redo_name
;
if
(
commandContext
!=
null
&&
commandContext
.
getRedoCommand
()
!=
null
)
{
text
+=
" "
+
commandContext
.
getRedoCommand
().
getTitle
();
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/entity/handlers/UndoChangesHandler.java
浏览文件 @
cd66a433
...
...
@@ -24,6 +24,7 @@ import org.eclipse.ui.IWorkbenchWindow;
import
org.eclipse.ui.commands.IElementUpdater
;
import
org.eclipse.ui.handlers.HandlerUtil
;
import
org.eclipse.ui.menus.UIElement
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.model.edit.DBECommandContext
;
import
org.jkiss.dbeaver.ui.editors.entity.EntityEditor
;
import
org.jkiss.dbeaver.utils.RuntimeUtils
;
...
...
@@ -54,7 +55,7 @@ public class UndoChangesHandler extends AbstractHandler implements IElementUpdat
final
IEditorPart
activeEditor
=
workbenchWindow
.
getActivePage
().
getActiveEditor
();
if
(
activeEditor
instanceof
EntityEditor
)
{
final
DBECommandContext
commandContext
=
((
EntityEditor
)
activeEditor
).
getCommandContext
();
String
text
=
"Undo"
;
String
text
=
CoreMessages
.
toolbar_cmd_undo_name
;
if
(
commandContext
!=
null
&&
commandContext
.
getUndoCommand
()
!=
null
)
{
text
+=
" "
+
commandContext
.
getUndoCommand
().
getTitle
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录