📄 perspective.java
字号:
package com.intotherain.examples.SimpleCellEditor;import org.eclipse.ui.IFolderLayout;import org.eclipse.ui.IPageLayout;import org.eclipse.ui.IPerspectiveFactory;import org.eclipse.ui.IViewLayout;import com.intotherain.examples.SimpleCellEditor.view.MyTableView;public class Perspective implements IPerspectiveFactory { public void createInitialLayout(IPageLayout layout) { IViewLayout view; String editorArea = layout.getEditorArea(); layout.setEditorAreaVisible(false); layout.setFixed(true); IFolderLayout topright = layout.createFolder("topright", IPageLayout.LEFT, 0.25f, editorArea); topright.addView(MyTableView.ID); view = layout.getViewLayout(MyTableView.ID); view.setCloseable(false); IFolderLayout bottomRight = layout.createFolder( "bottomRight", IPageLayout.BOTTOM, 0.6f, MyTableView.ID); bottomRight.addView("org.eclipse.ui.views.PropertySheet"); view = layout.getViewLayout("org.eclipse.ui.views.PropertySheet"); view.setCloseable(false); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -