Project

General

Profile

Download (1.93 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2013 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
package eu.etaxonomy.taxeditor.perspective;
11

    
12
import org.eclipse.ui.IPageLayout;
13
import org.eclipse.ui.IPlaceholderFolderLayout;
14
import org.eclipse.ui.progress.IProgressConstants;
15

    
16
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
17
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
18
import eu.etaxonomy.taxeditor.view.derivateSearch.DerivateSearchView;
19
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart;
20
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
21

    
22
/**
23
 * @author pplitzner
24
 * @date 10.12.2013
25
 *
26
 */
27
public class DerivatePerspective extends Default {
28

    
29
    protected IPlaceholderFolderLayout folderAdditional;
30

    
31
    public static final String ADDITIONAL = "additional";
32

    
33
    /* (non-Javadoc)
34
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
35
     */
36
    @Override
37
    public void createInitialLayout(IPageLayout layout) {
38
        layout.addView(TaxonNavigator.ID, IPageLayout.LEFT, 0.25f, layout.getEditorArea());
39

    
40
        layout.addView(DetailsViewPart.ID, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
41

    
42
        layout.addView(DerivateSearchView.ID, IPageLayout.TOP, 0.5f, layout.getEditorArea());
43

    
44
        layout.addView(DescriptiveViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
45

    
46
        //        layout.addView(SupplementalDataViewPart.ID, IPageLayout.BOTTOM, 0.25f, DetailsViewPart.ID);
47

    
48
        folderAdditional = layout.createPlaceholderFolder(ADDITIONAL, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
49

    
50
        folderAdditional.addPlaceholder(CdmDataSourceViewPart.ID);
51
        folderAdditional.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
52
    }
53

    
54
}
(4-4/7)