Revision: ebc6a6a427b8 Branch: default Author: Brandon Roller <brandon.r.roller@xxxxxxxxx> Date: Tue Jul 16 11:14:37 2013 Log: Fixed select all bug http://code.google.com/p/brailleblaster/source/detail?r=ebc6a6a427b8&repo=newdesign Modified: /src/main/org/brailleblaster/views/TextView.java /src/main/org/brailleblaster/wordprocessor/BBMenu.java =======================================--- /src/main/org/brailleblaster/views/TextView.java Mon Jul 15 11:47:33 2013 +++ /src/main/org/brailleblaster/views/TextView.java Tue Jul 16 11:14:37 2013
@@ -117,7 +117,7 @@ currentChar = e.keyCode; if(e.stateMask == SWT.CONTROL && e.keyCode == 'a'){ - selectAll(); + selectAll(dm); }if(oldCursorPosition == currentStart && oldCursorPosition != previousEnd && e.character == SWT.BS && view.getLineAlignment(view.getLineAtOffset(currentStart)) != SWT.LEFT ){
@@ -920,7 +920,10 @@ view.copy(); } - public void selectAll(){ + public void selectAll(DocumentManager dm){ + if(textChanged = true){ + sendUpdate(dm); + } view.selectAll(); setSelection(0, view.getCharCount()); } =======================================--- /src/main/org/brailleblaster/wordprocessor/BBMenu.java Mon Jul 15 11:47:33 2013 +++ /src/main/org/brailleblaster/wordprocessor/BBMenu.java Tue Jul 16 11:14:37 2013
@@ -481,7 +481,7 @@ public void widgetSelected(SelectionEvent e) { int index= wp.getFolder().getSelectionIndex(); if(index != -1){ - wp.getList().get(index).text.selectAll(); + wp.getList().get(index).text.selectAll(wp.getList().get(index)); } } });