2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.perspective
;
12 import org
.eclipse
.ui
.IFolderLayout
;
13 import org
.eclipse
.ui
.IPageLayout
;
15 import eu
.etaxonomy
.taxeditor
.editor
.AppModelId
;
16 import eu
.etaxonomy
.taxeditor
.navigation
.search
.SearchBar
;
20 * @created Jan 17, 2011
22 public class DescriptiveDataSetPerspective
extends Default
{
25 public void createInitialLayout(IPageLayout layout
) {
26 IFolderLayout navigationFolder
= layout
.createFolder(SearchBar
.NAVIGATION_STACK_ID
, IPageLayout
.LEFT
, 0.2f
, layout
.getEditorArea());
28 navigationFolder
.addView(NAVIGATOR
);
29 navigationFolder
.addPlaceholder(SEARCH_RESULTS
);
30 layout
.addView(AppModelId
.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETNAVIGATOR
, IPageLayout
.TOP
, 0.5f
, SearchBar
.NAVIGATION_STACK_ID
);
32 layout
.addPlaceholder(AppModelId
.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DESCRIPTIVEDATASET_DESCRIPTIVEDATASETEDITOR
, IPageLayout
.BOTTOM
, 0.25f
, layout
.getEditorArea());
33 layout
.addPlaceholder(AppModelId
.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_MATRIX_CHARACTERMATRIXPART
, IPageLayout
.BOTTOM
, 0.25f
, layout
.getEditorArea());
35 layout
.addView(DETAILS_VIEW
, IPageLayout
.RIGHT
, 0.7f
, layout
.getEditorArea());
37 createAdditionalFolder(layout
, layout
.getEditorArea());