[brailleblaster] 2 new revisions pushed by brandon....@xxxxxxxxx on 2014-12-12 16:22 GMT

  • From: brailleblaster@xxxxxxxxxxxxxx
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 12 Dec 2014 16:23:02 +0000

2 new revisions:

Revision: ffd002185464
Branch:   rt1835-UndoRemoveElement
Author:   Brandon Roller<brandon.r.roller@xxxxxxxxx>
Date:     Fri Dec 12 16:00:18 2014 UTC
Log:      Fixed bug when queue is full
https://code.google.com/p/brailleblaster/source/detail?r=ffd002185464

Revision: a7f648497ebe
Branch:   rt1835-UndoRemoveElement
Author:   Brandon Roller<brandon.r.roller@xxxxxxxxx>
Date:     Fri Dec 12 16:18:58 2014 UTC
Log:      Fixed bug in event queue with new documents
https://code.google.com/p/brailleblaster/source/detail?r=a7f648497ebe

==============================================================================
Revision: ffd002185464
Branch:   rt1835-UndoRemoveElement
Author:   Brandon Roller<brandon.r.roller@xxxxxxxxx>
Date:     Fri Dec 12 16:00:18 2014 UTC
Log:      Fixed bug when queue is full
https://code.google.com/p/brailleblaster/source/detail?r=ffd002185464

Modified:
/src/main/org/brailleblaster/perspectives/braille/eventQueue/EventQueue.java

=======================================
--- /src/main/org/brailleblaster/perspectives/braille/eventQueue/EventQueue.java Wed Dec 3 14:32:23 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/eventQueue/EventQueue.java Fri Dec 12 16:00:18 2014 UTC
@@ -25,6 +25,14 @@

                return null;
        }
+
+       @Override
+       public boolean add(EventFrame f) {
+               if(size() == SIZE)
+                       removeLast();
+
+               return super.add(f);
+       }

protected abstract void handleEvent(EventFrame f, ViewInitializer vi, BrailleDocument doc, MapList list, Manager manager);
 }

==============================================================================
Revision: a7f648497ebe
Branch:   rt1835-UndoRemoveElement
Author:   Brandon Roller<brandon.r.roller@xxxxxxxxx>
Date:     Fri Dec 12 16:18:58 2014 UTC
Log:      Fixed bug in event queue with new documents
https://code.google.com/p/brailleblaster/source/detail?r=a7f648497ebe

Modified:
/src/main/org/brailleblaster/perspectives/braille/viewInitializer/WebInitializer.java

=======================================
--- /src/main/org/brailleblaster/perspectives/braille/viewInitializer/WebInitializer.java Fri Nov 21 17:40:12 2014 UTC +++ /src/main/org/brailleblaster/perspectives/braille/viewInitializer/WebInitializer.java Fri Dec 12 16:18:58 2014 UTC
@@ -11,6 +11,7 @@
 import org.brailleblaster.document.SemanticFileHandler;
 import org.brailleblaster.perspectives.braille.Manager;
 import org.brailleblaster.perspectives.braille.document.BrailleDocument;
+import org.brailleblaster.perspectives.braille.mapping.elements.BrailleMapElement; import org.brailleblaster.perspectives.braille.mapping.elements.SectionElement; import org.brailleblaster.perspectives.braille.mapping.elements.TextMapElement;
 import org.brailleblaster.perspectives.braille.mapping.maps.MapList;
@@ -82,8 +83,13 @@
SemanticFileHandler sfh = new SemanticFileHandler(m.getArchiver().getCurrentConfig()); p.addAttribute(new Attribute("semantics","styles," + sfh.getDefault("p")));
                        p.appendChild(new Text(""));
+                       Element brl = new Element("brl");
+                       brl.appendChild(new Text(""));
+                       p.appendChild(brl);
                        ((Element)n.get(0)).appendChild(p);
-                       list.add(new TextMapElement(0, 0, 
n.get(0).getChild(0).getChild(0)));
+ TextMapElement t = new TextMapElement(0, 0, n.get(0).getChild(0).getChild(0));
+                       t.brailleList.add(new BrailleMapElement(0,0, 
brl.getChild(0)));
+                       list.add(t);
                }
        }
 }

Other related posts:

  • » [brailleblaster] 2 new revisions pushed by brandon....@xxxxxxxxx on 2014-12-12 16:22 GMT - brailleblaster