我有如下定義的RCP產品透視:視角與文件夾始終可見
IFolderLayout bottomLeft = layout.createFolder("bottomLeft",
IPageLayout.BOTTOM, 0.65f, layout.getEditorArea());
bottomLeft.addView(BTracePropertyView.ID);
layout.getViewLayout(BTracePropertyView.ID).setCloseable(false);
// IFolderLayout bottomRight = layout.createFolder("bottomRight",
// IPageLayout.RIGHT, 0.25f, "bottomLeft");
bottomLeft.addView(PROGRESS_VIEW_ID);
layout.getViewLayout(PROGRESS_VIEW_ID).setCloseable(false);
bottomLeft.addPlaceholder(BTraceOutlineView.ID);
bottomLeft.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
bottomLeft.addPlaceholder(BTraceStatView.ID);
IFolderLayout top = layout.createFolder("top",
IPageLayout.RIGHT, 0.75f, layout.getEditorArea());
top.addPlaceholder(BTraceView.ID + ":*");
時啓動應用程序是一個我想與頂部的空文件夾可見的結果。當用戶在RCP應用程序中打開給定文件(具有給定的擴展名)時,該文件夾將被填充。
我的問題是,只要在頂層文件夾中打開一個視圖然後關閉,該文件夾就會隱藏起來。因此底部文件夾中的視圖會垂直填充所有空間。
我怎樣纔能有一個文件夾,即使它是空的時候始終可見?
馬努
什麼是解決方案,鏈接只是重定向到eclipse論壇。 – CaiNiaoCoder 2011-09-22 01:39:39