//先在plugin.xml扩展点添加一个view。
public class Perspective implements IPerspectiveFactory {
@Override
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addStandaloneView("test.NavigateView", true, IPageLayout.LEFT,
0.2f, layout.getEditorArea());
layout.getViewLayout("test.NavigateView").setCloseable(false);
layout.getViewLayout("test.NavigateView").setMoveable(false);
layout.addStandaloneView("com.soyatec.rcp_mail.TableView", true,
IPageLayout.RIGHT, 0.8f, layout.getEditorArea());
layout.getViewLayout("com.soyatec.rcp_mail.TableView").setCloseable(
false);
layout.getViewLayout("com.soyatec.rcp_mail.TableView").setMoveable(
false);
layout.addStandaloneView("org.eclipse.ui.console.ConsoleView", true,
IPageLayout.BOTTOM, 0.8f, "com.soyatec.rcp_mail.TableView");
}
}