我通过底部的addView()
将文件夹添加到了底部的IFolderLayout
中,如下所示。有没有一种方法可以打开文件夹作为源,而不用鼠标单击它?
IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.25F, layout.getEditorArea());
left.addView(JavaUI.ID_PACKAGES);
left.addView("org.eclipse.ui.views.ResourceNavigator");
// Bottom
IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75F, layout.getEditorArea());
bottom.addView(IPageLayout.ID_PROBLEM_VIEW); // problems
bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW); // console
bottom.addView("org.eclipse.wst.server.ui.ServersView"); // servers
bottom.addView("org.eclipse.search.ui.views.SearchView"); // search