Skip to content

Package: Perspective

Perspective

nameinstructionbranchcomplexitylinemethod
Perspective()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
createInitialLayout(IPageLayout)
M: 22 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 8 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.rap;
16:
17: import org.eclipse.ui.IPageLayout;
18: import org.eclipse.ui.IPerspectiveFactory;
19:
20: /**
21: * Configures the perspective layout. This class is contributed through the
22: * plugin.xml.
23: */
24: public class Perspective implements IPerspectiveFactory {
25:
26:         @Override
27:         public void createInitialLayout(IPageLayout layout) {
28:                 final String editorArea = layout.getEditorArea();
29:                 layout.setEditorAreaVisible(true);
30:                 layout.setFixed(true);
31:
32:                 layout.addView("org.eclipse.emf.ecp.ui.ModelExplorerView", IPageLayout.LEFT, 0.3f, //$NON-NLS-1$
33:                         editorArea);
34:                 layout.addView("org.eclipse.emf.ecp.ui.ModelRepositoriesView", IPageLayout.BOTTOM, 0.7f, //$NON-NLS-1$
35:                         editorArea);
36:         }
37: }