[jsword-svn] bibledesktop/java/main/org/crosswire/bibledesktop/book s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sun Mar 20 19:37:20 MST 2005


Update of /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/book
In directory www.crosswire.org:/tmp/cvs-serv13704/java/main/org/crosswire/bibledesktop/book

Modified Files:
	DictionaryPane.java 
Log Message:
Fixed BD-34. Clicking a Strong's link now switches books and selects the key.

Index: DictionaryPane.java
===================================================================
RCS file: /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/book/DictionaryPane.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** DictionaryPane.java	19 Mar 2005 01:57:09 -0000	1.16
--- DictionaryPane.java	21 Mar 2005 02:37:18 -0000	1.17
***************
*** 267,270 ****
--- 267,275 ----
      */
  
+     public void selectDictionary(Book book)
+     {
+         lstDicts.setSelectedValue(book, true);
+     }
+ 
      /**
       * Called when someone selects a new Dictionary
***************
*** 276,280 ****
          {
              Book book = (Book) selected;
!             if (book.getBookMetaData().getType().equals(BookType.DICTIONARY))
              {
                  dict = book;
--- 281,285 ----
          {
              Book book = (Book) selected;
!             if (book.getType().equals(BookType.DICTIONARY))
              {
                  dict = book;
***************
*** 309,313 ****
          if (book == null)
          {
!             log.warn("no selected commentary"); //$NON-NLS-1$
              return;
          }
--- 314,318 ----
          if (book == null)
          {
!             log.warn("no selected dictionary"); //$NON-NLS-1$
              return;
          }



More information about the jsword-svn mailing list