[brailleblaster] [brailleblaster.newdesign] push by kcre...@xxxxxxxxx - Braille/Translate now calls refresh() on the current document. on 2013-07-05 18:27 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 05 Jul 2013 18:27:19 +0000

Revision: e098f5655eb7
Branch:   default
Author:   Keith Creasy <kcreasy@xxxxxxx>
Date:     Fri Jul  5 11:26:57 2013
Log:      Braille/Translate now calls refresh() on the current document.
http://code.google.com/p/brailleblaster/source/detail?r=e098f5655eb7&repo=newdesign

Modified:
 /src/main/org/brailleblaster/wordprocessor/BBMenu.java

=======================================
--- /src/main/org/brailleblaster/wordprocessor/BBMenu.java Fri Jul 5 11:12:03 2013 +++ /src/main/org/brailleblaster/wordprocessor/BBMenu.java Fri Jul 5 11:26:57 2013
@@ -672,7 +672,9 @@
                xtranslateItem.setText(lh.localValue("&Translate"));
                xtranslateItem.addSelectionListener(new SelectionAdapter() {
                        public void widgetSelected(SelectionEvent e) {
-
+                               int index = wp.getFolder().getSelectionIndex();
+                               if(index != -1)
+                                       wp.getList().get(index).refresh();
                        }
                });
                backTranslateItem = new MenuItem(brailleMenu, SWT.PUSH);

Other related posts:

  • » [brailleblaster] [brailleblaster.newdesign] push by kcre...@xxxxxxxxx - Braille/Translate now calls refresh() on the current document. on 2013-07-05 18:27 GMT - brailleblaster