










1,如果想application启动就最大化,要在ApplicationWorkbenchWindowAdvisor类的postWindowOpen里面加如:
getWindowConfigurer().getWindow().getShell().setMaximized(true);
2,如果想让两个view占据一个位置(如IPageLayout.RIGHT),在createInitialLayout用如下方法:
IFolderLayout folder = layout.createFolder("messages", IPageLayout.RIGHT,
0.75f, IPageLayout.ID_EDITOR_AREA);
folder.addPlaceholder(View1.ID + ":*");
folder.addView(View1.ID);
folder.addPlaceholder(View2.ID + ":*");
folder.addView(View2.ID);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。