sampleperspective.java
来自「This a test for upload, so that I can do」· Java 代码 · 共 21 行
JAVA
21 行
package cn.com.chengang;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
public class SamplePerspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
// TODO Auto-generated method stub
String editorArea=layout.getEditorArea();
IFolderLayout left=layout.createFolder("left", IPageLayout.LEFT, 0.2f, editorArea);
left.addView("cn.com.chengang.View1");
IFolderLayout bottom=layout.createFolder("bottom", IPageLayout.BOTTOM, 0.8f, editorArea);
bottom.addView("cn.com.chengang.View2");
layout.addActionSet("myplugin2.actionSet");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?