IFolderLayout addView打开文件夹源代码

时间:2019-12-16 03:10:06

标签: java eclipse eclipse-plugin

我通过底部的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

enter image description here

0 个答案:

没有答案
相关问题