directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r491712 - /directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java
Date Mon, 01 Jan 2007 23:58:43 GMT
Author: seelmann
Date: Mon Jan  1 15:58:42 2007
New Revision: 491712

URL: http://svn.apache.org/viewvc?view=rev&rev=491712
Log:
Removed Resource view, added fixed views in RCP environment

Modified:
    directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java

Modified: directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java
URL: http://svn.apache.org/viewvc/directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java?view=diff&rev=491712&r1=491711&r2=491712
==============================================================================
--- directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java
(original)
+++ directory/trunks/ldapstudio/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/perspective/BrowserPerspective.java
Mon Jan  1 15:58:42 2007
@@ -21,6 +21,7 @@
 package org.apache.directory.ldapstudio.browser.ui.perspective;
 
 
+import org.apache.directory.ldapstudio.browser.ui.BrowserUIPlugin;
 import org.apache.directory.ldapstudio.browser.ui.views.browser.BrowserView;
 import org.apache.directory.ldapstudio.browser.ui.views.connection.ConnectionView;
 import org.apache.directory.ldapstudio.browser.ui.views.modificationlogs.ModificationLogsView;
@@ -66,11 +67,8 @@
         layout.addShowViewShortcut( ConnectionView.getId() );
         layout.addShowViewShortcut( BrowserView.getId() );
         layout.addShowViewShortcut( ModificationLogsView.getId() );
-        layout.addShowViewShortcut( IPageLayout.ID_RES_NAV );
         layout.addShowViewShortcut( IPageLayout.ID_OUTLINE );
         layout.addShowViewShortcut( "org.eclipse.ui.views.ProgressView" );
-        // layout.addShowViewShortcut(IPageLayout.ID_PROGRESS_VIEW);
-        // layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView");
     }
 
 
@@ -84,7 +82,6 @@
         IFolderLayout browserFolder = layout.createFolder( "browserFolder", IPageLayout.LEFT,
( float ) 0.25,
             editorArea );
         browserFolder.addView( BrowserView.getId() );
-        browserFolder.addView( IPageLayout.ID_RES_NAV );
 
         // Connection folder
         IFolderLayout connectionFolder = layout.createFolder( "connectionFolder", IPageLayout.BOTTOM,
( float ) 0.75,
@@ -100,13 +97,22 @@
         IFolderLayout progessFolder = layout.createFolder( "progressFolder", IPageLayout.BOTTOM,
( float ) 0.75,
             "outlineFolder" );
         progessFolder.addView( "org.eclipse.ui.views.ProgressView" );
-        // progessFolder.addView(IPageLayout.ID_PROGRESS_VIEW);
 
         // Log folder
         IFolderLayout logFolder = layout.createFolder( "logFolder", IPageLayout.BOTTOM, (
float ) 0.75, editorArea );
         logFolder.addView( ModificationLogsView.getId() );
-        // logFolder.addView("org.eclipse.pde.runtime.LogView");
         logFolder.addPlaceholder( "*" );
+
+        // non-closable?
+        boolean isIDE = BrowserUIPlugin.isIDEEnvironment();
+        if ( !isIDE )
+        {
+            layout.getViewLayout( BrowserView.getId() ).setCloseable( false );
+            layout.getViewLayout( ConnectionView.getId() ).setCloseable( false );
+            layout.getViewLayout( IPageLayout.ID_OUTLINE ).setCloseable( false );
+            layout.getViewLayout( "org.eclipse.ui.views.ProgressView" ).setCloseable( false
);
+            layout.getViewLayout( ModificationLogsView.getId() ).setCloseable( false );
+        }
     }
 
 }



Mime
View raw message