1
|
package eu.etaxonomy.taxeditor;
|
2
|
|
3
|
import org.eclipse.ui.IFolderLayout;
|
4
|
import org.eclipse.ui.IPageLayout;
|
5
|
import org.eclipse.ui.IPerspectiveFactory;
|
6
|
import org.eclipse.ui.progress.IProgressConstants;
|
7
|
|
8
|
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigator;
|
9
|
import eu.etaxonomy.taxeditor.navigation.search.SearchResultView;
|
10
|
|
11
|
/**
|
12
|
* <p>Perspective class.</p>
|
13
|
*
|
14
|
* @author n.hoffmann
|
15
|
* @version $Id: $
|
16
|
*/
|
17
|
public class Perspective implements IPerspectiveFactory {
|
18
|
|
19
|
/** Constant <code>ID="eu.etaxonomy.taxeditor.application.pers"{trunked}</code> */
|
20
|
public static final String ID = "eu.etaxonomy.taxeditor.application.perspective";
|
21
|
|
22
|
/* (non-Javadoc)
|
23
|
* @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
|
24
|
*/
|
25
|
/** {@inheritDoc} */
|
26
|
public void createInitialLayout(IPageLayout layout) {
|
27
|
IFolderLayout navigationFolder = layout.createFolder("navigation", IPageLayout.LEFT, 0.25f,
|
28
|
layout.getEditorArea());
|
29
|
|
30
|
// Note: ":*" is what allows us to call multiple searchResultView's with unique secondaryIds;
|
31
|
// this can only be done here, with a placeholder, not in plugin.xml
|
32
|
navigationFolder.addPlaceholder(SearchResultView.ID + ":*");
|
33
|
navigationFolder.addView(TaxonNavigator.ID);
|
34
|
|
35
|
navigationFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
|
36
|
}
|
37
|
}
|