1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.perspective;
|
11
|
|
12
|
import org.eclipse.ui.IFolderLayout;
|
13
|
import org.eclipse.ui.IPageLayout;
|
14
|
|
15
|
import eu.etaxonomy.taxeditor.editor.view.descriptive.DescriptiveViewPart;
|
16
|
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
|
17
|
import eu.etaxonomy.taxeditor.navigation.search.SearchResultView;
|
18
|
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart;
|
19
|
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart;
|
20
|
|
21
|
/**
|
22
|
* @author a.oppermann
|
23
|
* @created Nov 18, 2014
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public class ChecklistPerspective extends Default {
|
27
|
|
28
|
/*
|
29
|
* (non-Javadoc)
|
30
|
*
|
31
|
* @see
|
32
|
* org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui
|
33
|
* .IPageLayout)
|
34
|
*/
|
35
|
@Override
|
36
|
public void createInitialLayout(IPageLayout layout) {
|
37
|
IFolderLayout navigationFolder = layout.createFolder("navigation",
|
38
|
IPageLayout.LEFT, 0.25f, layout.getEditorArea());
|
39
|
|
40
|
navigationFolder.addView(TaxonNavigator.ID);
|
41
|
navigationFolder.addPlaceholder(SearchResultView.ID + ":*");
|
42
|
|
43
|
layout.addView(CdmDataSourceViewPart.ID, IPageLayout.BOTTOM, 0.6f, TaxonNavigator.ID);
|
44
|
IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
|
45
|
folder.addView(DescriptiveViewPart.ID);
|
46
|
folder.addView(DetailsViewPart.ID);
|
47
|
// folder.addView(MediaViewPart.ID);
|
48
|
|
49
|
// createAdditionalFolder(layout, layout.getEditorArea());
|
50
|
}
|
51
|
}
|