1 /*******************************************************************************
2 * Copyright (c) 2010 SAP AG.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Mathias Kinzler (SAP AG) - initial implementation
10 *******************************************************************************/
11 package org
.eclipse
.egit
.ui
;
13 import org
.eclipse
.egit
.ui
.internal
.repository
.RepositoriesView
;
14 import org
.eclipse
.team
.ui
.history
.IHistoryView
;
15 import org
.eclipse
.ui
.IPageLayout
;
16 import org
.eclipse
.ui
.IPerspectiveFactory
;
21 public class GitRepositoriesPerspectiveFactory
implements IPerspectiveFactory
{
23 public void createInitialLayout(IPageLayout layout
) {
25 // repositories on the left hand
26 layout
.addView(RepositoriesView
.VIEW_ID
, IPageLayout
.LEFT
, (float) 0.5, layout
.getEditorArea());
28 // Properties under editor area
29 layout
.addView(IPageLayout
.ID_PROP_SHEET
, IPageLayout
.BOTTOM
, (float) 0.5, layout
32 // place holder for Package Explorer under repositories
33 layout
.addPlaceholder("org.eclipse.jdt.ui.PackageExplorer", IPageLayout
.BOTTOM
, (float) 0.7, RepositoriesView
.VIEW_ID
); //$NON-NLS-1$
35 // shortcut to Package Explorer
36 layout
.addShowViewShortcut("org.eclipse.jdt.ui.PackageExplorer"); //$NON-NLS-1$
37 // shortcut to History view
38 layout
.addShowViewShortcut(IHistoryView
.VIEW_ID
);