Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
d09618e0
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,发现更多精彩内容 >>
提交
d09618e0
编写于
5月 21, 2016
作者:
S
Serge Rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Menu contributions
Former-commit-id:
3ad10e9a
上级
7fb287ca
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
63 addition
and
78 deletion
+63
-78
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/ApplicationActionBarAdvisor.java
...dbeaver/core/application/ApplicationActionBarAdvisor.java
+63
-78
未找到文件。
plugins/org.jkiss.dbeaver.core.application/src/org/jkiss/dbeaver/core/application/ApplicationActionBarAdvisor.java
浏览文件 @
d09618e0
...
...
@@ -93,8 +93,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor
}
@Override
protected
void
fillMenuBar
(
IMenuManager
menuBar
)
{
protected
void
fillMenuBar
(
IMenuManager
menuBar
)
{
MenuManager
fileMenu
=
new
MenuManager
(
CoreMessages
.
actions_menu_file
,
IWorkbenchActionConstants
.
M_FILE
);
MenuManager
editMenu
=
new
MenuManager
(
CoreMessages
.
actions_menu_edit
,
IWorkbenchActionConstants
.
M_EDIT
);
MenuManager
navigateMenu
=
new
MenuManager
(
CoreMessages
.
actions_menu_navigate
,
IWorkbenchActionConstants
.
M_NAVIGATE
);
...
...
@@ -111,87 +110,73 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor
menuBar
.
add
(
windowMenu
);
menuBar
.
add
(
helpMenu
);
// File
//MenuManager recentMenu = new MenuManager("Recent editors");
//recentMenu.add(ContributionItemFactory.REOPEN_EDITORS.create(getActionBarConfigurer().getWindowConfigurer().getWindow()));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
FILE_START
));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NEW_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
CLOSE_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
PRINT_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
OPEN_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
IMPORT_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
SAVE_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
fileMenu
.
add
(
ContributionItemFactory
.
REOPEN_EDITORS
.
create
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
()));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MRU
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
FILE_END
));
fileMenu
.
add
(
ActionUtils
.
makeAction
(
emergentExitAction
,
null
,
null
,
CoreMessages
.
actions_menu_exit_emergency
,
null
,
null
));
// Edit
/*
editMenu.add(new Separator("undoredo"));
editMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
editMenu.add(new Separator(IWorkbenchActionConstants.FIND_EXT));
editMenu.add(findAction);
*/
// Navigate
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NAV_START
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
OPEN_EXT
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
SHOW_EXT
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NAV_END
));
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
GROUP_APP
));
// navigateMenu.add(historyBackAction);
// navigateMenu.add(historyForwardAction);
//editMenu.add(ActionFactory.PROPERTIES);
//editMenu.add(viewPropertiesAction);
// Window
windowMenu
.
add
(
newWindowAction
);
windowMenu
.
add
(
new
Separator
());
windowMenu
.
add
(
new
ToggleViewAction
(
DatabaseNavigatorView
.
VIEW_ID
));
windowMenu
.
add
(
new
ToggleViewAction
(
ProjectNavigatorView
.
VIEW_ID
));
windowMenu
.
add
(
new
ToggleViewAction
(
ProjectExplorerView
.
VIEW_ID
));
/*
windowMenu.add(new Separator());
windowMenu.add(new ToggleViewAction(IPageLayout.ID_PROP_SHEET));
windowMenu.add(new ToggleViewAction(QueryManagerView.VIEW_ID));
windowMenu.add(new ToggleViewAction(TemplatesView.ID));
windowMenu.add(new ToggleViewAction(IPageLayout.ID_OUTLINE));
windowMenu.add(new ToggleViewAction(IPageLayout.ID_PROGRESS_VIEW));
windowMenu.add(new ToggleViewAction(IActionConstants.LOG_VIEW_ID));
*/
{
MenuManager
showViewMenuMgr
=
new
MenuManager
(
"Show View"
,
"showView"
);
//$NON-NLS-1$
IContributionItem
showViewMenu
=
ContributionItemFactory
.
VIEWS_SHORTLIST
.
create
(
PlatformUI
.
getWorkbench
().
getActiveWorkbenchWindow
());
showViewMenuMgr
.
add
(
showViewMenu
);
windowMenu
.
add
(
showViewMenuMgr
);
// File
//MenuManager recentMenu = new MenuManager("Recent editors");
//recentMenu.add(ContributionItemFactory.REOPEN_EDITORS.create(getActionBarConfigurer().getWindowConfigurer().getWindow()));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
FILE_START
));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NEW_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
CLOSE_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
PRINT_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
OPEN_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
IMPORT_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
SAVE_EXT
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
fileMenu
.
add
(
ContributionItemFactory
.
REOPEN_EDITORS
.
create
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
()));
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MRU
));
fileMenu
.
add
(
new
Separator
());
fileMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
FILE_END
));
fileMenu
.
add
(
ActionUtils
.
makeAction
(
emergentExitAction
,
null
,
null
,
CoreMessages
.
actions_menu_exit_emergency
,
null
,
null
));
}
windowMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
windowMenu
.
add
(
new
Separator
());
{
// Navigate
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NAV_START
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
OPEN_EXT
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
SHOW_EXT
));
navigateMenu
.
add
(
new
Separator
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
NAV_END
));
navigateMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
GROUP_APP
));
}
// Help
helpMenu
.
add
(
ActionUtils
.
makeAction
(
aboutAction
,
null
,
null
,
CoreMessages
.
actions_menu_about
,
null
,
null
));
helpMenu
.
add
(
showHelpAction
);
//helpMenu.add(searchHelpAction);
//helpMenu.add(dynamicHelpAction);
helpMenu
.
add
(
ActionUtils
.
makeCommandContribution
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
(),
IWorkbenchCommandConstants
.
WINDOW_SHOW_KEY_ASSIST
));
{
// Window
windowMenu
.
add
(
newWindowAction
);
windowMenu
.
add
(
new
Separator
());
windowMenu
.
add
(
new
ToggleViewAction
(
DatabaseNavigatorView
.
VIEW_ID
));
windowMenu
.
add
(
new
ToggleViewAction
(
ProjectNavigatorView
.
VIEW_ID
));
windowMenu
.
add
(
new
ToggleViewAction
(
ProjectExplorerView
.
VIEW_ID
));
{
MenuManager
showViewMenuMgr
=
new
MenuManager
(
"Show View"
,
"showView"
);
//$NON-NLS-1$
IContributionItem
showViewMenu
=
ContributionItemFactory
.
VIEWS_SHORTLIST
.
create
(
PlatformUI
.
getWorkbench
().
getActiveWorkbenchWindow
());
showViewMenuMgr
.
add
(
showViewMenu
);
windowMenu
.
add
(
showViewMenuMgr
);
}
windowMenu
.
add
(
new
GroupMarker
(
IWorkbenchActionConstants
.
MB_ADDITIONS
));
windowMenu
.
add
(
new
Separator
());
}
helpMenu
.
add
(
new
Separator
());
helpMenu
.
add
(
ActionUtils
.
makeCommandContribution
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
(),
"org.eclipse.ui.help.installationDialog"
));
helpMenu
.
add
(
ActionUtils
.
makeAction
(
checkUpdatesAction
,
null
,
null
,
CoreMessages
.
actions_menu_check_update
,
null
,
null
));
{
// Help
helpMenu
.
add
(
ActionUtils
.
makeAction
(
aboutAction
,
null
,
null
,
CoreMessages
.
actions_menu_about
,
null
,
null
));
helpMenu
.
add
(
showHelpAction
);
//helpMenu.add(searchHelpAction);
//helpMenu.add(dynamicHelpAction);
helpMenu
.
add
(
ActionUtils
.
makeCommandContribution
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
(),
IWorkbenchCommandConstants
.
WINDOW_SHOW_KEY_ASSIST
));
helpMenu
.
add
(
new
Separator
());
helpMenu
.
add
(
ActionUtils
.
makeCommandContribution
(
getActionBarConfigurer
().
getWindowConfigurer
().
getWindow
(),
"org.eclipse.ui.help.installationDialog"
));
helpMenu
.
add
(
ActionUtils
.
makeAction
(
checkUpdatesAction
,
null
,
null
,
CoreMessages
.
actions_menu_check_update
,
null
,
null
));
}
}
@Override
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录