KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > base > perspective > IpanemaWelcomePerspective


1 package com.nightlabs.ipanema.base.perspective;
2
3 import org.eclipse.ui.IPageLayout;
4 import org.eclipse.ui.IPerspectiveFactory;
5
6 import com.nightlabs.ipanema.base.view.IpanemaWelcomeView;
7
8 /**
9  * The perspective factory for the RCP Browser Example's perspective.
10  *
11  * @since 3.0
12  */

13 public class IpanemaWelcomePerspective implements IPerspectiveFactory {
14
15     
16     public static final String JavaDoc ID_PERSPECTIVE = "com.nightlabs.ipanema.base.perspective.IpanemaWelcomePerspective";
17     
18     /**
19      * Creates the initial layout of the IpanemaWelcomePerspective.<br/>
20      * By now nothing no view is in the Perspective
21      *
22      */

23     public void createInitialLayout(IPageLayout layout) {
24         layout.setEditorAreaVisible(false);
25         layout.addView(
26             IpanemaWelcomeView.ID_VIEW,
27       IPageLayout.TOP,
28       IPageLayout.RATIO_MAX,
29       IPageLayout.ID_EDITOR_AREA
30         );
31         layout.addPerspectiveShortcut(ID_PERSPECTIVE);
32         layout.addShowViewShortcut(IpanemaWelcomeView.ID_VIEW);
33     }
34 }
35
Popular Tags