package org.brailleblaster.wordprocessor;

import org.eclipse.swt.*;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormAttachment;
import org.brailleblaster.localization.LocaleHandler;

public class BBToolBar {

private ToolBar toolBar;

public BBToolBar (DocumentManager dm) {
LocaleHandler lh = new LocaleHandler();
toolBar = new ToolBar (dm.documentWindow, SWT.BORDER);
FormData location = new FormData();
location.left = new FormAttachment(0);
location.right = new FormAttachment(100);
location.top = new FormAttachment (8);
location.bottom = new FormAttachment(13);
toolBar.setLayoutData (location);
ToolItem trranslateItem = new ToolItem (toolBar, SWT.PUSH);
translateItem.setText (lh.localValue ("translate");
toolBar.pack();
}

}


@@ -34,17 +34,19 @@
 ocessor;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -63,16 +63,17 @@
 e.swt.*;
+%0D
 %0Aimport 
@@ -104,16 +104,17 @@
 ToolBar;
+%0D
 %0Aimport 
@@ -146,16 +146,17 @@
 oolItem;
+%0D
 %0Aimport 
@@ -185,16 +185,17 @@
 s.Shell;
+%0D
 %0Aimport 
@@ -226,16 +226,17 @@
 ormData;
+%0D
 %0Aimport 
@@ -273,16 +273,17 @@
 achment;
+%0D
 %0Aimport 
@@ -328,17 +328,19 @@
 Handler;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -356,17 +356,19 @@
 oolBar %7B
-%0A
+%0D%0A%0D
 %0Aprivate
@@ -384,17 +384,19 @@
 toolBar;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -427,16 +427,17 @@
 er dm) %7B
+%0D
 %0ALocaleH
@@ -468,16 +468,17 @@
 ndler();
+%0D
 %0AtoolBar
@@ -524,16 +524,17 @@
 BORDER);
+%0D
 %0AFormDat
@@ -561,16 +561,17 @@
 mData();
+%0D
 %0Alocatio
@@ -601,16 +601,17 @@
 ment(0);
+%0D
 %0Alocatio
@@ -644,16 +644,17 @@
 nt(100);
+%0D
 %0Alocatio
@@ -684,16 +684,17 @@
 ent (8);
+%0D
 %0Alocatio
@@ -727,16 +727,17 @@
 ent(13);
+%0D
 %0AtoolBar
@@ -762,16 +762,17 @@
 cation);
+%0D
 %0AToolIte
@@ -775,17 +775,16 @@
 lItem tr
-r
 anslateI
@@ -822,16 +822,17 @@
 T.PUSH);
+%0D
 %0Atransla
@@ -874,17 +874,19 @@
 nslate%22)
-;
+);%0D
 %0AtoolBar
@@ -897,11 +897,16 @@
 k();
+%0D
 %0A%7D
-%0A%0A%7D%0A
+%0D%0A%0D%0A%7D%0D%0A%0D
 %0A

Fixing a few typos