Project

General

Profile

Download (1.74 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.perspective;
12

    
13
import org.eclipse.ui.IFolderLayout;
14
import org.eclipse.ui.IPageLayout;
15

    
16
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
17
import eu.etaxonomy.taxeditor.navigation.search.SearchResultView;
18
import eu.etaxonomy.taxeditor.singlesource.editor.view.descriptive.DescriptiveViewPart;
19
import eu.etaxonomy.taxeditor.singlesource.editor.view.media.MediaViewPart;
20
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
21
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart;
22

    
23
/**
24
 * @author n.hoffmann
25
 * @created Jan 17, 2011
26
 * @version 1.0
27
 */
28
public class Taxonomic extends Default {
29

    
30
	/* (non-Javadoc)
31
	 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
32
	 */
33
	@Override
34
	public void createInitialLayout(IPageLayout layout) {
35
		IFolderLayout navigationFolder = layout.createFolder("navigation", IPageLayout.LEFT, 0.25f, layout.getEditorArea());
36
		
37
		navigationFolder.addView(TaxonNavigator.ID);
38
		navigationFolder.addPlaceholder(SearchResultView.ID + ":*");
39
		
40
		layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.25f, layout.getEditorArea());
41
		layout.addView(SupplementalDataViewPart.ID, IPageLayout.BOTTOM, 0.25f, DetailsViewPart.ID);
42
		
43
		layout.addView(DescriptiveViewPart.ID, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
44
		layout.addView(MediaViewPart.ID, IPageLayout.RIGHT, 0.25f, DescriptiveViewPart.ID);
45
		
46
		createAdditionalFolder(layout, layout.getEditorArea());
47
	}
48
}
(4-4/4)