readonlyperspective.java
来自「基于Eclipse RCP开发的管理工具」· Java 代码 · 共 30 行
JAVA
30 行
package com.s10r.manager.perspectives;import org.eclipse.ui.IPageLayout;import org.eclipse.ui.IPerspectiveFactory;import com.s10r.manager.view.LabelsView;import com.s10r.manager.view.PasswordEntryView;public class ReadOnlyPerspective implements IPerspectiveFactory{ public static final String ID = "manager_rcp.roperspective"; public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(true); layout.setFixed(false); // put the passwordentryview on the open -> view "short list" layout.addPerspectiveShortcut(DefaultPerspective.ID); layout.addPerspectiveShortcut(DebugPerspective.ID); layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET); layout.addShowViewShortcut(PasswordEntryView.ID); layout.addShowViewShortcut(LabelsView.ID); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?