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);
    }
}

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();
    private static final String ID_PROGRESS =
        "org.csstudio.platform.ui.views.progress"; //$NON-NLS-1$
    private static final String ID_NAVIGATOR =
    	"org.csstudio.platform.ui.views.WorkspaceExplorerView"; //$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(ID_NAVIGATOR);
        // 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);
    }
}

Add workspace explorer