/*- ******************************************************************************* * Copyright (c) 2011, 2014 Diamond Light Source Ltd. * 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: * Matthew Gerring - initial API and implementation and/or initial documentation *******************************************************************************/ package org.eclipse.dawnsci.plotting.examples.perspective; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPerspectiveFactory; public class ExamplePerspective implements IPerspectiveFactory { /** * Creates the initial layout for a page. */ public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); addFastViews(layout); addViewShortcuts(layout); addPerspectiveShortcuts(layout); { IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, IPageLayout.ID_EDITOR_AREA); folderLayout.addView("org.dawnsci.plotting.examples.xyExample"); folderLayout.addView("org.dawnsci.plotting.examples.xyUpdateExample"); folderLayout.addView("org.dawnsci.plotting.examples.axisExample"); folderLayout.addView("org.dawnsci.plotting.examples.barExample"); folderLayout.addView("org.dawnsci.plotting.examples.imageExample"); folderLayout.addView("org.dawnsci.plotting.examples.sectorExample"); folderLayout.addView("org.dawnsci.plotting.examples.surfaceExample"); folderLayout.addView("org.dawnsci.plotting.examples.vectorExample"); folderLayout.addView("org.dawnsci.plotting.examples.compositeExample"); folderLayout.addView("org.dawnsci.plotting.examples.volumeExample"); folderLayout.addView("org.dawnsci.plotting.examples.plane3DExample"); } } /** * Add fast views to the perspective. */ private void addFastViews(IPageLayout layout) { } /** * Add view shortcuts to the perspective. */ private void addViewShortcuts(IPageLayout layout) { } /** * Add perspective shortcuts to the perspective. */ private void addPerspectiveShortcuts(IPageLayout layout) { } }