| /******************************************************************************* |
| * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Eugen Neufeld - initial API and implementation |
| * |
| *******************************************************************************/ |
| package org.eclipse.emf.ecp.ui.perspective; |
| |
| import org.eclipse.emf.ecp.ui.views.ModelExplorerView; |
| import org.eclipse.emf.ecp.ui.views.ModelRepositoriesView; |
| import org.eclipse.ui.IPageLayout; |
| import org.eclipse.ui.IPerspectiveFactory; |
| |
| /** |
| * @author Eugen Neufeld |
| */ |
| public class ECPPerspectiveFactory implements IPerspectiveFactory |
| { |
| |
| @Override |
| public void createInitialLayout(IPageLayout layout) |
| { |
| final String editorArea = layout.getEditorArea(); |
| layout.addView(ModelExplorerView.ID, IPageLayout.LEFT, 0.25f, editorArea); |
| layout.addView(ModelRepositoriesView.ID, IPageLayout.BOTTOM, 0.75f, editorArea); |
| } |
| |
| } |