|
Help with Resource "Navigation" View PLEASE -
05-27-2008, 07:05 PM
Hi Everyone..
I am Perl programmer recently started working on Eclipse..Ur help is much appreciated.
What I have done is, created an eclipse GUI skeleton...(Please see below for the code in perspective.Java)
Then I added "Multi-page editor file" sample wizard to eclipse application ("file->other" It also has "General->file,project,folder,etc")
When I created a new project or Multi-page editor file, I am not able to see it in the resource "Navigator" view as a tree. Its only showing as: "--|" , where "|" should be newly created project name..
My task is to simply create a wizard to select file from hard disk, then "performFinish" completed - it should show on resource navigator view.. I am struggling to get this done for past 2 days searching google,eclipse tutorials - but no help..
Any ideas where I have done wrong? or any useful material??
---------------------
String editorArea = layout.getEditorArea();
// Top left: Resource Navigator view and Bookmarks view placeholder
IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea);
topLeft.addView(IPageLayout.ID_RES_NAV);
topLeft.addView(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);
--------
Thanks for ur time n help
Dushi
|