1 20 package org.apache.directory.ldapstudio.proxy.view; 21 22 23 import org.apache.directory.ldapstudio.proxy.Activator; 24 import org.eclipse.ui.IPageLayout; 25 import org.eclipse.ui.IPerspectiveFactory; 26 27 28 34 public class Perspective implements IPerspectiveFactory 35 { 36 37 public static final String ID = Activator.PLUGIN_ID + ".perspective"; 39 40 43 public void createInitialLayout( IPageLayout layout ) 44 { 45 String editorArea = layout.getEditorArea(); 46 layout.setEditorAreaVisible( false ); 47 48 layout.addStandaloneView( ProxyView.ID, true, IPageLayout.LEFT, 0.5f, editorArea ); 49 layout.getViewLayout( ProxyView.ID ).setCloseable( false ); 50 51 layout.addStandaloneView( LdapMessageView.ID, true, IPageLayout.RIGHT, 0.5f, ProxyView.ID ); 52 layout.getViewLayout( LdapMessageView.ID ).setCloseable( false ); 53 54 layout.addPerspectiveShortcut( "org.apache.directory.ldapstudio.browser.ui.perspective.BrowserPerspective" ); 56 layout.addPerspectiveShortcut( "org.apache.directory.ldapstudio.schemas.perspective" ); 57 layout.addPerspectiveShortcut( Perspective.ID ); 58 59 layout.addShowViewShortcut( ProxyView.ID ); 61 layout.addShowViewShortcut( LdapMessageView.ID ); 62 } 63 } 64 | Popular Tags |