提交 7891b8de 编写于 作者: S Serge Rider

Icons fix. SQL toolbar fix. VQB stub

上级 a4f7b8e1
......@@ -1197,8 +1197,8 @@ public class ResultSetViewer extends Viewer
{
ToolBarManager addToolbar = new ToolBarManager(SWT.FLAT | SWT.HORIZONTAL | SWT.RIGHT);
addToolbar.add(new Separator(TOOLBAR_GROUP_PRESENTATIONS));
addToolbar.add(new Separator(TOOLBAR_GROUP_ADDITIONS));
addToolbar.add(new GroupMarker(TOOLBAR_GROUP_PRESENTATIONS));
addToolbar.add(new GroupMarker(TOOLBAR_GROUP_ADDITIONS));
final IMenuService menuService = getSite().getService(IMenuService.class);
if (menuService != null) {
menuService.populateContributionManager(addToolbar, TOOLBAR_CONTRIBUTION_ID);
......
......@@ -139,6 +139,7 @@ public class SQLEditor extends SQLEditorBase implements
private static Image IMG_OUTPUT_ALERT = DBeaverIcons.getImage(UIIcon.SQL_PAGE_OUTPUT_ALERT);
private static final String TOOLBAR_CONTRIBUTION_ID = "toolbar:org.jkiss.dbeaver.ui.editors.sql.toolbar.switch";
private static final String TOOLBAR_GROUP_ADDITIONS = IWorkbenchActionConstants.MB_ADDITIONS;
public static final String VAR_CONNECTION_NAME = "connectionName";
public static final String VAR_FILE_NAME = "fileName";
......@@ -576,6 +577,7 @@ public class SQLEditor extends SQLEditorBase implements
CoreMessages.sql_editor_resultset_tool_item_log, null, null, true));
viewsToolBar.add(ActionUtils.makeCommandContribution(getSite(), CoreCommands.CMD_SQL_SHOW_LOG, CommandContributionItem.STYLE_CHECK,
CoreMessages.sql_editor_resultset_tool_item_output, null, null, true));
viewsToolBar.add(new GroupMarker(TOOLBAR_GROUP_ADDITIONS));
final IMenuService menuService = getSite().getService(IMenuService.class);
if (menuService != null) {
menuService.populateContributionManager(viewsToolBar, TOOLBAR_CONTRIBUTION_ID);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册