1 20 21 package org.apache.directory.ldapstudio.view; 22 23 24 import org.eclipse.ui.IPageLayout; 25 import org.eclipse.ui.IPerspectiveFactory; 26 27 28 34 public class Perspective implements IPerspectiveFactory 35 { 36 37 40 public void createInitialLayout( IPageLayout layout ) 41 { 42 String editorArea = layout.getEditorArea(); 43 layout.setEditorAreaVisible( false ); 44 45 layout.addStandaloneView( WelcomeView.ID, false, IPageLayout.LEFT, 1.0f, editorArea ); 46 layout.getViewLayout( WelcomeView.ID ).setCloseable( false ); 47 48 layout.addPerspectiveShortcut( "org.apache.directory.ldapstudio.browser.ui.perspective.BrowserPerspective" ); layout.addPerspectiveShortcut( "org.apache.directory.ldapstudio.schemas.perspective" ); 51 layout.addShowViewShortcut( WelcomeView.ID ); 52 } 53 54 } 55 | Popular Tags |