perspective.java

来自「一个简单的CellEditor的例子 希望给学习java的朋友一点帮助」· Java 代码 · 共 36 行

JAVA
36
字号
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 + =
减小字号Ctrl + -
显示快捷键?