提交 c4aa5f4d 编写于 作者: J jurgen

Templates view

上级 cfdf722d
......@@ -29,6 +29,7 @@ import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
import org.eclipse.ui.actions.ContributionItemFactory;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.texteditor.templates.TemplatesView;
import org.jkiss.dbeaver.core.CoreMessages;
import org.jkiss.dbeaver.core.application.about.AboutBoxAction;
import org.jkiss.dbeaver.ui.ActionUtils;
......@@ -146,6 +147,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor
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));
......
......@@ -21,6 +21,7 @@ view.project.explorer.title=Project Explorer
view.query.manager.title=Query Manager
view.progress.title=Background Tasks
view.shell.process.title=Process
view.templates.title=Templates
menu.navigate=Navigate
......
......@@ -155,6 +155,12 @@
class="org.eclipse.ui.ExtensionFactory:progressView"
id="org.eclipse.ui.views.ProgressView"
name="%view.progress.title"/>
<view id="org.eclipse.ui.texteditor.TemplatesView"
name="%view.templates.title"
icon="icons/templates_view.png"
category="org.eclipse.ui"
class="org.eclipse.ui.texteditor.templates.TemplatesView"/>
</extension>
<extension point="org.eclipse.ui.commands">
......
......@@ -29,6 +29,7 @@ view.project.explorer.title=\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0
view.query.manager.title=\u041C\u0435\u043D\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432
view.progress.title=\u0424\u043E\u043D\u043E\u0432\u044B\u0435 \u0437\u0430\u0434\u0430\u0447\u0438
view.shell.process.title=\u041F\u0440\u043E\u0446\u0435\u0441\u0441
view.templates.title=\u0428\u0430\u0431\u043B\u043E\u043D\u044B
menu.navigate=\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F
......
......@@ -22,6 +22,7 @@ import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.IPlaceholderFolderLayout;
import org.eclipse.ui.texteditor.templates.TemplatesView;
import org.jkiss.dbeaver.ui.IActionConstants;
import org.jkiss.dbeaver.ui.views.navigator.database.DatabaseNavigatorView;
import org.jkiss.dbeaver.ui.views.navigator.project.ProjectExplorerView;
......@@ -68,6 +69,7 @@ public class DBeaverPerspective implements IPerspectiveFactory
0.2f,
FOLDER_NAVIGATION);
bottomLeft.addView(ProjectExplorerView.VIEW_ID);
bottomLeft.addView(TemplatesView.ID);
// Bottom right.
IPlaceholderFolderLayout bottomRight = layout.createPlaceholderFolder(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册