directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r578024 - /directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java
Date Fri, 21 Sep 2007 08:52:19 GMT
Author: pamarcelot
Date: Fri Sep 21 01:52:18 2007
New Revision: 578024

URL: http://svn.apache.org/viewvc?rev=578024&view=rev
Log:
Fix for DIRSTUDIO-199 (Add scopes for OC and AT in search).

Modified:
    directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java

Modified: directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java?rev=578024&r1=578023&r2=578024&view=diff
==============================================================================
--- directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java
(original)
+++ directory/studio/trunk/studio-schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/search/SearchPage.java
Fri Sep 21 01:52:18 2007
@@ -560,7 +560,16 @@
      */
     public static int loadScope()
     {
-        return Activator.getDefault().getDialogSettings().getInt( PluginConstants.PREFS_SEARCH_PAGE_SCOPE
);
+        IDialogSettings settings = Activator.getDefault().getDialogSettings();
+        
+        if ( settings.get( PluginConstants.PREFS_SEARCH_PAGE_SCOPE ) == null )
+        {
+            return PluginConstants.PREFS_SEARCH_PAGE_SCOPE_AT_AND_OC;
+        }
+        else
+        {
+            return settings.getInt( PluginConstants.PREFS_SEARCH_PAGE_SCOPE );
+        }
     }
 
 



Mime
View raw message