2
在很多stackoverflow成員的幫助下,我終於完成了我的第一個RCP應用程序。在eclipse rcp應用程序中沒有顯示項目資源管理器
我面對我的工程資源管理器
- Project Explorer中的一些問題,當我打開我的RCP應用程序似乎不活動(排序醒來時,我右鍵單擊我的空項目資源管理器窗口上)
- 即使打開,它也不會顯示項目探索選項。我的意思是它只是表明我的項目,並沒有其他的名字(裏面沒有文件顯示)
我Perspective.java文件看起來如下圖所示
package kr;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorArea = layout.getEditorArea();
// Top left: Project Explorer view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f,
editorArea);
topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);
// Bottom left: Outline view and Property Sheet view
IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, 0.50f,
"topLeft");
bottomLeft.addView(IPageLayout.ID_OUTLINE);
bottomLeft.addView(IPageLayout.ID_PROP_SHEET);
// Bottom right: Task List view
// layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.66f, editorArea);
}
}
我已將oeui.navigator和oeui.navigator.resources添加到相關性列表
是否Eclipse工作區瞭解文件?如果您在RCP中具有該文件,或者調用'IProject.refreshLocal'以編程方式更新項目,請嘗試'File> Refresh'。 –