perspective.java
来自「eclipse rcp 项目实例」· Java 代码 · 共 22 行
JAVA
22 行
package com.niis.myprice.frame;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import com.niis.myprice.views.KindTreeView;
import com.niis.myprice.views.WelcomView;
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
String editorArea = layout.getEditorArea();
layout.addStandaloneView(KindTreeView.ID,false, IPageLayout.LEFT, 0.25f, editorArea);
// layout.addView(KindTreeView.ID, IPageLayout.LEFT, 0.25f, editorArea);
layout.addView(WelcomView.ID, IPageLayout.RIGHT, 0.75f, editorArea);
// layout.addView(KindView.ID, IPageLayout.RIGHT, 0.25f, editorArea);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?