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 13 public class IpanemaWelcomePerspective implements IPerspectiveFactory { 14 15 16 public static final String ID_PERSPECTIVE = "com.nightlabs.ipanema.base.perspective.IpanemaWelcomePerspective"; 17 18 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 |