Slide 29
Slide 29 text
29
Perspectives - M. Baron - Page
mickael-baron.fr mickaelbaron
addStandaloneView
Exemple (suite) : agencer une vue StandaloneView …
package eclipse.workbench.perspectiveexample.perspectives;
public class AddStandaloneViewPerspectiveFactory1 implements IPerspectiveFactory {
public void createInitialLayout(IPageLayout layout) {
String editorAreaId = layout.getEditorArea();
layout.addView(IPageLayout.ID_BOOKMARKS, IPageLayout.LEFT, 0.25f, editorAreaId);
layout.addView(IPageLayout.ID_TASK_LIST, IPageLayout.BOTTOM, 0.45f, editorAreaId);
layout.addStandaloneView(IPageLayout.ID_RES_NAV, true, IPageLayout.BOTTOM, 0.45f,
IPageLayout.ID_TASK_LIST);
}
}
AddStandaloneViewPerspectiveFactory1.java
du Projet PerspectiveExample
La vue Navigator est définie
comme StandaloneView. La barre
de titre est affichée