1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public class Perspective implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
String editorArea = layout.getEditorArea();
layout.addStandaloneView("com.eclipse.rcp.dashboard.ListAffaires",false,
IPageLayout.LEFT, 0.13f, editorArea);
layout.addStandaloneView("com.eclipse.rcp.dashboard.test1",false,
IPageLayout.BOTTOM, 0.78f, editorArea);
IFolderLayout bottomFolder = layout.createFolder("right",
IPageLayout.TOP, 0.5f, editorArea);
//2 onglets "suivi des affaires" et "test"
bottomFolder.addView("com.eclipse.rcp.dashboard.Suivi");
bottomFolder.addView("com.eclipse.rcp.dashboard.test");
} |
Partager