lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1002177 - in /lucene/sandbox/luke/src/org/apache/lucene/luke/ui: LukeInitWindow.java LukeWindow.java
Date Tue, 28 Sep 2010 14:30:48 GMT
Author: markrmiller
Date: Tue Sep 28 14:30:48 2010
New Revision: 1002177

URL: http://svn.apache.org/viewvc?rev=1002177&view=rev
Log:
robert pointed out the index divisor was showing up wrong - fixes

Modified:
    lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeInitWindow.java
    lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeWindow.java

Modified: lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeInitWindow.java
URL: http://svn.apache.org/viewvc/lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeInitWindow.java?rev=1002177&r1=1002176&r2=1002177&view=diff
==============================================================================
--- lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeInitWindow.java (original)
+++ lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeInitWindow.java Tue Sep 28 14:30:48
2010
@@ -59,7 +59,10 @@ public class LukeInitWindow extends Dial
     Action.getNamedActions().put("openIndex", new Action() {
       @Override
       public void perform(Component component) {
-        lukeMediator.getLukeWindow().openIndex();
+        lukeMediator.getLukeWindow().openIndex(false, directory.getText(),
+            readOnly.isSelected(), false,
+            keepCommits.isSelected(), null,
+            (Integer)tiiDiv.getSelectedItem());
       }
     });
   }

Modified: lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeWindow.java
URL: http://svn.apache.org/viewvc/lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeWindow.java?rev=1002177&r1=1002176&r2=1002177&view=diff
==============================================================================
--- lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeWindow.java (original)
+++ lucene/sandbox/luke/src/org/apache/lucene/luke/ui/LukeWindow.java Tue Sep 28 14:30:48
2010
@@ -35,7 +35,6 @@ import org.apache.lucene.luke.core.KeepA
 import org.apache.lucene.luke.core.KeepLastIndexDeletionPolicy;
 import org.apache.lucene.luke.core.decoders.Decoder;
 import org.apache.lucene.luke.core.decoders.StringDecoder;
-import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.FSDirectory;
 import org.apache.lucene.store.RAMDirectory;
@@ -95,7 +94,7 @@ public class LukeWindow extends Frame im
    * @param readOnly
    *          open in read-only mode, and disallow modifications.
    */
-  private void openIndex(boolean force, String dirImpl, boolean readOnly,
+  public void openIndex(boolean force, String dirImpl, boolean readOnly,
       boolean ramDir, boolean keepCommits, IndexCommit point, int tiiDivisor) {
     String indexPath = lukeInitWindow.indexPath.getText();
     this.indexPath = indexPath;
@@ -289,14 +288,6 @@ public class LukeWindow extends Frame im
     // showFiles(directory, commits);
   }
   
-  public void openIndex() {
-    
-    openIndex(false, lukeInitWindow.directory.getText(),
-        lukeInitWindow.readOnly.isSelected(), false,
-        lukeInitWindow.keepCommits.isSelected(), null,
-        lukeInitWindow.tiiDiv.getSelectedIndex());
-  }
-  
   private void errorMsg(String error) {
     Alert.alert(MessageType.ERROR, error, this);
   }



Mime
View raw message