directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r518717 - /directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java
Date Thu, 15 Mar 2007 18:26:38 GMT
Author: pamarcelot
Date: Thu Mar 15 11:26:37 2007
New Revision: 518717

URL: http://svn.apache.org/viewvc?view=rev&rev=518717
Log:
Added Javadoc.

Modified:
    directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java

Modified: directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java?view=diff&rev=518717&r1=518716&r2=518717
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-schemas-plugin/src/main/java/org/apache/directory/ldapstudio/schemas/view/perspectives/Perspective.java
Thu Mar 15 11:26:37 2007
@@ -49,22 +49,25 @@
      */
     public void createInitialLayout( IPageLayout layout )
     {
-        String editorArea = layout.getEditorArea();
         layout.setEditorAreaVisible( true );
+        String editorAreaId = layout.getEditorArea();
 
-        IFolderLayout topLeftFolder = layout.createFolder( "placeholder", IPageLayout.LEFT,
0.3f, editorArea );
-
-        layout.addPlaceholder( "placeholder", IPageLayout.LEFT, 0.3f, editorArea );
+        // Creating top left folder 
+        IFolderLayout topLeftFolder = layout.createFolder( "placeholder", IPageLayout.LEFT,
0.3f, editorAreaId );
+        layout.addPlaceholder( "placeholder", IPageLayout.LEFT, 0.3f, editorAreaId );
+        
+        // Adding views
         topLeftFolder.addView( SchemaElementsView.ID );
         topLeftFolder.addView( HierarchyView.ID );
-
         layout.addStandaloneView( SchemasView.ID, true, IPageLayout.BOTTOM, 0.5f, "placeholder"
);
-        layout.addStandaloneView( SearchView.ID, true, IPageLayout.BOTTOM, 0.7f, editorArea
);
+        layout.addStandaloneView( SearchView.ID, true, IPageLayout.BOTTOM, 0.7f, editorAreaId
);
 
+        // Setting up non-closeable views
         layout.getViewLayout( SchemaElementsView.ID ).setCloseable( false );
         layout.getViewLayout( SchemasView.ID ).setCloseable( false );
         layout.getViewLayout( SearchView.ID ).setCloseable( false );
 
+        // Adding Perspective shortcuts
         layout.addPerspectiveShortcut( "org.apache.directory.ldapstudio.browser.ui.perspective.BrowserPerspective"
); //$NON-NLS-1$
         layout.addPerspectiveShortcut( Perspective.ID );
 



Mime
View raw message