/*******************************************************************************
 * Copyright (c) 2012, 2015 Ericsson
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Francois Chouinard - Initial API and implementation
 *******************************************************************************/

package org.lttng.scope.ui.perspective;

import org.eclipse.tracecompass.tmf.ui.project.wizards.NewTmfProjectWizard;
import org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramView;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.lttng.scope.ui.timeline.TimelineView;

/**
 * The default LTTng perspective.
 */
public class PerspectiveFactory implements IPerspectiveFactory {

    /** Perspective ID */
    public static final String ID = "org.lttng.scope.ui.perspective"; //$NON-NLS-1$

    // LTTng views
    private static final String HISTOGRAM_VIEW_ID = HistogramView.ID;

    // Standard Eclipse views
    private static final String PROJECT_VIEW_ID = IPageLayout.ID_PROJECT_EXPLORER;
    private static final String PROPERTIES_VIEW_ID = IPageLayout.ID_PROP_SHEET;
    private static final String BOOKMARKS_VIEW_ID = IPageLayout.ID_BOOKMARKS;

    @Override
    public void createInitialLayout(IPageLayout layout) {

        layout.setEditorAreaVisible(true);

        // Create the top left folder
        IFolderLayout topLeftFolder = layout.createFolder(
                "topLeftFolder", IPageLayout.LEFT, 0.2f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
        topLeftFolder.addView(PROJECT_VIEW_ID);

        // Create the top right folder
        IFolderLayout topRightFolder = layout.createFolder(
                "topRightFolder", IPageLayout.TOP, 0.6f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
        topRightFolder.addView(TimelineView.VIEW_ID);

        // Create the bottom right folder
        IFolderLayout bottomRightFolder = layout.createFolder(
                "bottomRightFolder", IPageLayout.BOTTOM, 0.6f, IPageLayout.ID_EDITOR_AREA); //$NON-NLS-1$
        bottomRightFolder.addView(HISTOGRAM_VIEW_ID);
        bottomRightFolder.addView(PROPERTIES_VIEW_ID);
        bottomRightFolder.addView(BOOKMARKS_VIEW_ID);

        layout.addNewWizardShortcut(NewTmfProjectWizard.ID);
    }

}

@@ -641,78 +641,8 @@
 rd;%0A
-import org.eclipse.tracecompass.tmf.ui.views.histogram.HistogramView;%0A
 impo
@@ -666,32 +666,32 @@
 .IFolderLayout;%0A
+
 import org.eclip
@@ -752,16 +752,71 @@
 actory;%0A
+import org.lttng.scope.ui.timecontrol.TimeControlView;%0A
 import o
@@ -1080,98 +1080,8 @@
 1$%0A%0A
-    // LTTng views%0A    private static final String HISTOGRAM_VIEW_ID = HistogramView.ID;%0A%0A
     
@@ -1192,166 +1192,8 @@
 RER;
-%0A    private static final String PROPERTIES_VIEW_ID = IPageLayout.ID_PROP_SHEET;%0A    private static final String BOOKMARKS_VIEW_ID = IPageLayout.ID_BOOKMARKS;
 %0A%0A  
@@ -2056,127 +2056,24 @@
 iew(
-HISTOGRAM_VIEW_ID);%0A        bottomRightFolder.addView(PROPERTIES_VIEW_ID);%0A        bottomRightFolder.addView(BOOKMARKS_
+TimeControlView.
 VIEW

Add the Time Control to the default perspective