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.AppModelId;
|
16
|
|
17
|
/**
|
18
|
* @author a.oppermann
|
19
|
* @created Nov 18, 2014
|
20
|
* @version 1.0
|
21
|
*/
|
22
|
public class ChecklistPerspective extends Default {
|
23
|
|
24
|
/*
|
25
|
* (non-Javadoc)
|
26
|
*
|
27
|
* @see
|
28
|
* org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui
|
29
|
* .IPageLayout)
|
30
|
*/
|
31
|
@Override
|
32
|
public void createInitialLayout(IPageLayout layout) {
|
33
|
IFolderLayout navigationFolder = layout.createFolder("navigation",
|
34
|
IPageLayout.LEFT, 0.25f, layout.getEditorArea());
|
35
|
//
|
36
|
// navigationFolder.addView(NAVIGATOR);
|
37
|
// navigationFolder.addPlaceholder(SEARCH_RESULTS);
|
38
|
// navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR);
|
39
|
//
|
40
|
// IFolderLayout folder = layout.createFolder("Folder", IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
|
41
|
// folder.addView(FACTUAL_DATA_VIEW);
|
42
|
// folder.addView(DETAILS_VIEW);
|
43
|
// folder.addView(MediaViewPart.ID);
|
44
|
|
45
|
// createAdditionalFolder(layout, layout.getEditorArea());
|
46
|
|
47
|
|
48
|
navigationFolder.addView(NAVIGATOR);
|
49
|
navigationFolder.addPlaceholder(SEARCH_RESULTS);
|
50
|
navigationFolder.addPlaceholder(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR);
|
51
|
|
52
|
layout.addPlaceholder(NAME_EDITOR, IPageLayout.BOTTOM, 0.25f, layout.getEditorArea());
|
53
|
|
54
|
layout.addView(DETAILS_VIEW, IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
|
55
|
IFolderLayout supplementalFolder = layout.createFolder(SUPPLEMENTAL_VIEW+"stack", IPageLayout.BOTTOM, 0.6f, DETAILS_VIEW);
|
56
|
supplementalFolder.addView(SUPPLEMENTAL_VIEW);
|
57
|
|
58
|
supplementalFolder.addPlaceholder(REFERENCING_VIEW);
|
59
|
|
60
|
layout.addView(FACTUAL_DATA_VIEW, IPageLayout.BOTTOM, 0.6f, layout.getEditorArea());
|
61
|
|
62
|
|
63
|
createAdditionalFolder(layout, layout.getEditorArea());
|
64
|
|
65
|
}
|
66
|
}
|