directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1677355 - /directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
Date Sat, 02 May 2015 21:06:21 GMT
Author: seelmann
Date: Sat May  2 21:06:21 2015
New Revision: 1677355

URL: http://svn.apache.org/r1677355
Log:
DIRSTUDIO-1042: Add error log view to LDAP perspective. Extract constant.

Modified:
    directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java

Modified: directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java?rev=1677355&r1=1677354&r2=1677355&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/perspective/BrowserPerspective.java
Sat May  2 21:06:21 2015
@@ -48,6 +48,10 @@ import org.eclipse.ui.IPerspectiveFactor
 public class BrowserPerspective implements IPerspectiveFactory
 {
 
+    private static final String PROGRESS_VIEW_ID = "org.eclipse.ui.views.ProgressView"; //$NON-NLS-1$
+    private static final String ERROR_LOG_VIEW_ID = "org.eclipse.pde.runtime.LogView"; //$NON-NLS-1$
+
+
     /**
      * Gets the ID of the browser perspective.
      * 
@@ -94,7 +98,8 @@ public class BrowserPerspective implemen
         layout.addShowViewShortcut( ModificationLogsView.getId() );
         layout.addShowViewShortcut( SearchLogsView.getId() );
         layout.addShowViewShortcut( IPageLayout.ID_OUTLINE );
-        layout.addShowViewShortcut( "org.eclipse.ui.views.ProgressView" ); //$NON-NLS-1$
+        layout.addShowViewShortcut( PROGRESS_VIEW_ID );
+        layout.addShowViewShortcut( ERROR_LOG_VIEW_ID );
     }
 
 
@@ -127,12 +132,13 @@ public class BrowserPerspective implemen
         // Progress folder
         IFolderLayout progessFolder = layout.createFolder( "progressFolder", IPageLayout.BOTTOM,
( float ) 0.75, //$NON-NLS-1$
             "outlineFolder" ); //$NON-NLS-1$
-        progessFolder.addView( "org.eclipse.ui.views.ProgressView" ); //$NON-NLS-1$
+        progessFolder.addView( PROGRESS_VIEW_ID );
 
         // Log folder
         IFolderLayout logFolder = layout.createFolder( "logFolder", IPageLayout.BOTTOM, (
float ) 0.75, editorArea ); //$NON-NLS-1$
         logFolder.addView( ModificationLogsView.getId() );
         logFolder.addView( SearchLogsView.getId() );
+        logFolder.addView( ERROR_LOG_VIEW_ID );
         logFolder.addPlaceholder( "*" ); //$NON-NLS-1$
 
         // non-closable?
@@ -142,7 +148,7 @@ public class BrowserPerspective implemen
             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
); //$NON-NLS-1$
+            layout.getViewLayout( PROGRESS_VIEW_ID ).setCloseable( false );
             layout.getViewLayout( ModificationLogsView.getId() ).setCloseable( false );
         }
     }



Mime
View raw message