package org.csstudio.trends.databrowser;

import org.csstudio.trends.databrowser.archiveview.ArchiveView;
import org.csstudio.trends.databrowser.configview.ConfigView;
import org.csstudio.trends.databrowser.exportview.ExportView;
import org.csstudio.trends.databrowser.sampleview.SampleView;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

/** Create a perspective that's convenient for Data Browser use.
 *  @author Kay Kasemir
 */
public class Perspective implements IPerspectiveFactory
{
    public static final String ID = Perspective.class.getName();
    @SuppressWarnings("unused")
    private static final String ID_PROGRESS =
        "org.csstudio.platform.ui.views.progress"; //$NON-NLS-1$
    
    @SuppressWarnings("nls")
    public void createInitialLayout(IPageLayout layout)
    {
        // left | editor
        //      |
        //      |
        //      +-------------
        //      | bottom
        String editor = layout.getEditorArea();
        IFolderLayout left = layout.createFolder("left",
                        IPageLayout.LEFT, 0.25f, editor);
        IFolderLayout bottom = layout.createFolder("bottom",
                        IPageLayout.BOTTOM, 0.66f, editor);
        // Stuff for 'left'
        left.addView(ArchiveView.ID);
        left.addView(IPageLayout.ID_RES_NAV);
        // Stuff for 'bottom'
        bottom.addView(ConfigView.ID);
        bottom.addPlaceholder(SampleView.ID);
        bottom.addView(ExportView.ID);
        // IDE version of the progress view
        // bottom.addPlaceholder(IPageLayout.ID_PROGRESS_VIEW);
        // The one from CSS
        bottom.addPlaceholder(ID_PROGRESS);
    }
}

@@ -621,40 +621,8 @@
 ();%0A
-    @SuppressWarnings(%22unused%22)%0A
     
@@ -728,16 +728,138 @@
 -NLS-1$%0A
+    private static final String ID_NAVIGATOR =%0A    %09%22org.csstudio.platform.ui.views.WorkspaceExplorerView%22; //$NON-NLS-1$%0A
     %0A   
@@ -1439,29 +1439,19 @@
 ew(I
-PageLayout.ID_RES_NAV
+D_NAVIGATOR
 );%0A 

Add workspace explorer