public class Perspective implements IPerspectiveFactory { public void createInitialLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout flayout = layout.createFolder("navigation", IPageLayout.LEFT, 0.25f, editorArea); flayout.addView(IPageLayout.ID_PROBLEM_VIEW); layout.addView(properties, IPageLayout.BOTTOM, 0.25f, editorArea); } }
?在IPageLayout接口中已定义好的视图ID为:
???????? 问题视图:IPageLayout.ID_PROBLEM_VIEW.
???????? 任务视图:IPageLayout.ID_TASK_LIST.
???????? 属性视图:IPageLayout.ID_PROP_SHEET
???????? 书签视图:IPageLayout.ID_BOOKMARKS
???????? 大纲视图:IPageLayout.ID_OUTLINE
???????? 进度视图:IPageLayout.ID_PROGRESS_VIEW
???????? 导航器视图:IPageLayout.ID_RES_NAV
?