You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/10/05 01:45:53 UTC

svn commit: r1529349 [8/44] - in /pivot/trunk: charts/src/org/apache/pivot/charts/ charts/src/org/apache/pivot/charts/skin/ core/src/org/apache/pivot/beans/ core/src/org/apache/pivot/collections/ core/src/org/apache/pivot/collections/adapter/ core/src/...

Modified: pivot/trunk/eclipse/src/org/apache/pivot/eclipse/PivotScriptApplicationLaunchShortcut.java
URL: http://svn.apache.org/viewvc/pivot/trunk/eclipse/src/org/apache/pivot/eclipse/PivotScriptApplicationLaunchShortcut.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/eclipse/src/org/apache/pivot/eclipse/PivotScriptApplicationLaunchShortcut.java (original)
+++ pivot/trunk/eclipse/src/org/apache/pivot/eclipse/PivotScriptApplicationLaunchShortcut.java Fri Oct  4 23:45:40 2013
@@ -45,7 +45,7 @@ public class PivotScriptApplicationLaunc
     @Override
     public void launch(ISelection selection, String mode) {
         if (selection instanceof IStructuredSelection) {
-            IStructuredSelection structuredSelection = (IStructuredSelection)selection;
+            IStructuredSelection structuredSelection = (IStructuredSelection) selection;
             Object[] elements = structuredSelection.toArray();
 
             if (elements.length == 1) {
@@ -61,7 +61,7 @@ public class PivotScriptApplicationLaunc
 
     private void launch(Object element, String mode) {
         if (element instanceof IAdaptable) {
-            IFile file = (IFile)((IAdaptable)element).getAdapter(IFile.class);
+            IFile file = (IFile) ((IAdaptable) element).getAdapter(IFile.class);
 
             if (file != null) {
                 ILaunchConfiguration launchConfiguration = getExistingLaunchConfiguration(file);
@@ -79,22 +79,24 @@ public class PivotScriptApplicationLaunc
 
     private ILaunchConfiguration getExistingLaunchConfiguration(IFile file) {
         ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
-        ILaunchConfigurationType launchConfigurationType =
-            launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
+        ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
 
         ILaunchConfiguration existingLaunchConfiguration = null;
         try {
             String fileProjectName = file.getProject().getName();
 
-            ILaunchConfiguration[] launchConfigurations =
-                DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(launchConfigurationType);
+            ILaunchConfiguration[] launchConfigurations = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(
+                launchConfigurationType);
 
             for (int i = 0; i < launchConfigurations.length; i++) {
                 ILaunchConfiguration launchConfiguration = launchConfigurations[i];
 
-                String mainTypeName = launchConfiguration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "");
-                String projectName = launchConfiguration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
-                String programArguments = launchConfiguration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "");
+                String mainTypeName = launchConfiguration.getAttribute(
+                    IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "");
+                String projectName = launchConfiguration.getAttribute(
+                    IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
+                String programArguments = launchConfiguration.getAttribute(
+                    IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, "");
 
                 if (mainTypeName.equals(PivotPlugin.MAIN_TYPE_NAME)
                     && projectName.equals(fileProjectName)
@@ -104,8 +106,7 @@ public class PivotScriptApplicationLaunc
                 }
             }
         } catch (CoreException exception) {
-            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(),
-                exception.getMessage(),
+            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(), exception.getMessage(),
                 exception.getStatus().getMessage());
         }
 
@@ -120,23 +121,22 @@ public class PivotScriptApplicationLaunc
             String fileName = file.getName();
 
             ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
-            ILaunchConfigurationType configurationType =
-                launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
+            ILaunchConfigurationType configurationType = launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
             String name = launchManager.generateUniqueLaunchConfigurationNameFrom(fileName);
 
-            ILaunchConfigurationWorkingCopy workingLaunchConfiguration = configurationType.newInstance(null, name);
-            workingLaunchConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,
-                PivotPlugin.MAIN_TYPE_NAME);
-            workingLaunchConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,
-                fileProjectName);
-            workingLaunchConfiguration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
-                getProgramArguments(file));
-            workingLaunchConfiguration.setMappedResources(new IResource[] {file});
+            ILaunchConfigurationWorkingCopy workingLaunchConfiguration = configurationType.newInstance(
+                null, name);
+            workingLaunchConfiguration.setAttribute(
+                IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, PivotPlugin.MAIN_TYPE_NAME);
+            workingLaunchConfiguration.setAttribute(
+                IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, fileProjectName);
+            workingLaunchConfiguration.setAttribute(
+                IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, getProgramArguments(file));
+            workingLaunchConfiguration.setMappedResources(new IResource[] { file });
 
             launchConfiguration = workingLaunchConfiguration.doSave();
         } catch (CoreException exception) {
-            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(),
-                exception.getMessage(),
+            MessageDialog.openError(PivotPlugin.getActiveWorkbenchShell(), exception.getMessage(),
                 exception.getStatus().getMessage());
         }
 
@@ -145,7 +145,7 @@ public class PivotScriptApplicationLaunc
 
     private static final String getProgramArguments(IFile file) {
         IContainer parent = file.getParent();
-        IJavaElement javaElement = (IJavaElement)parent.getAdapter(IJavaElement.class);
+        IJavaElement javaElement = (IJavaElement) parent.getAdapter(IJavaElement.class);
         String src = "/" + javaElement.getElementName().replace('.', '/') + "/" + file.getName();
 
         return APPLICATION_TYPE_NAME + " " + "--" + SRC_ARGUMENT + "=" + src;

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/builder/BuilderExample.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/builder/BuilderExample.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/builder/BuilderExample.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/builder/BuilderExample.java Fri Oct  4 23:45:40 2013
@@ -27,8 +27,7 @@ public class BuilderExample extends Appl
     private MyWindow myWindow = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         myWindow = buildWindow();
         myWindow.open(display);
     }
@@ -46,23 +45,28 @@ public class BuilderExample extends Appl
         final HashMap<String, Object> namespace = new HashMap<>();
 
         return new MyWindow() {
-            {   setContent(new TabPane() {
-                    {   namespace.put("tabPane", this);
+            {
+                setContent(new TabPane() {
+                    {
+                        namespace.put("tabPane", this);
 
                         getTabs().add(new Label() {
-                            {   setText("Label 1");
+                            {
+                                setText("Label 1");
                                 TabPane.setTabData(this, "Label 1");
                             }
                         });
 
                         getTabs().add(new Label() {
-                            {   setText("Label 2");
+                            {
+                                setText("Label 2");
                                 TabPane.setTabData(this, "Label 2");
                             }
                         });
 
                         getTabs().add(new Label() {
-                            {   setText("Label 3");
+                            {
+                                setText("Label 3");
                                 TabPane.setTabData(this, "Label 3");
                             }
                         });

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/deployment/DeploymentExample.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/deployment/DeploymentExample.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/deployment/DeploymentExample.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/deployment/DeploymentExample.java Fri Oct  4 23:45:40 2013
@@ -28,7 +28,8 @@ public class DeploymentExample implement
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(DeploymentExample.class, "deployment_example_window.bxml");
+        window = (Window) bxmlSerializer.readObject(DeploymentExample.class,
+            "deployment_example_window.bxml");
         window.open(display);
     }
 

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/effects/BorderDecorator.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/effects/BorderDecorator.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/effects/BorderDecorator.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/effects/BorderDecorator.java Fri Oct  4 23:45:40 2013
@@ -31,8 +31,8 @@ public class BorderDecorator implements 
     public Graphics2D prepare(Component component, Graphics2D graphics) {
         graphics.setColor(Color.RED);
         graphics.setStroke(new BasicStroke(1));
-        graphics.draw(new Rectangle2D.Double(-1, -1,
-            component.getWidth() + 1, component.getHeight() + 1));
+        graphics.draw(new Rectangle2D.Double(-1, -1, component.getWidth() + 1,
+            component.getHeight() + 1));
         return graphics;
     }
 

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/keyboard/ComponentKeyListenerExample.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/keyboard/ComponentKeyListenerExample.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/keyboard/ComponentKeyListenerExample.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/keyboard/ComponentKeyListenerExample.java Fri Oct  4 23:45:40 2013
@@ -31,12 +31,12 @@ import org.apache.pivot.wtk.Window;
 public class ComponentKeyListenerExample extends Window implements Bindable {
     @Override
     public void initialize(Map<String, Object> namespace, URL location, Resources resources) {
-        TextInput textInput = (TextInput)namespace.get("textInput");
+        TextInput textInput = (TextInput) namespace.get("textInput");
         textInput.getComponentKeyListeners().add(new ComponentKeyListener.Adapter() {
             @Override
-            public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
-                if (keyCode == Keyboard.KeyCode.S
-                    && Keyboard.isPressed(Keyboard.Modifier.CTRL)) {
+            public boolean keyPressed(Component component, int keyCode,
+                Keyboard.KeyLocation keyLocation) {
+                if (keyCode == Keyboard.KeyCode.S && Keyboard.isPressed(Keyboard.Modifier.CTRL)) {
                     Alert.alert("You pressed Control-S!", component.getWindow());
                 }
 

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/scripting/JavaWindow.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/scripting/JavaWindow.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/scripting/JavaWindow.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/scripting/JavaWindow.java Fri Oct  4 23:45:40 2013
@@ -30,11 +30,11 @@ import org.apache.pivot.wtk.PushButton;
 import org.apache.pivot.wtk.Window;
 
 public class JavaWindow extends Window implements Bindable {
-    @BXML private PushButton sayHelloButton = null;
+    @BXML
+    private PushButton sayHelloButton = null;
 
     @Override
-    public void initialize(Map<String, Object> namespace, URL location,
-        Resources resources) {
+    public void initialize(Map<String, Object> namespace, URL location, Resources resources) {
         sayHelloButton.getButtonPressListeners().add(new ButtonPressListener() {
             @Override
             public void buttonPressed(Button button) {

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/sheets/EditGreetingSheet.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/sheets/EditGreetingSheet.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/sheets/EditGreetingSheet.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/sheets/EditGreetingSheet.java Fri Oct  4 23:45:40 2013
@@ -37,10 +37,14 @@ import org.apache.pivot.wtk.Window;
  * Edit greeting sheet.
  */
 public class EditGreetingSheet extends Sheet implements Bindable {
-    @BXML private Form form = null;
-    @BXML private TextInput greetingTextInput = null;
-    @BXML private PushButton cancelButton = null;
-    @BXML private PushButton okButton = null;
+    @BXML
+    private Form form = null;
+    @BXML
+    private TextInput greetingTextInput = null;
+    @BXML
+    private PushButton cancelButton = null;
+    @BXML
+    private PushButton okButton = null;
 
     private Resources resources = null;
 
@@ -76,8 +80,8 @@ public class EditGreetingSheet extends S
 
         if (result) {
             if (greetingTextInput.getCharacterCount() == 0) {
-                Form.setFlag(greetingTextInput, new Form.Flag(MessageType.ERROR,
-                    (String)resources.get("greetingRequired")));
+                Form.setFlag(greetingTextInput,
+                    new Form.Flag(MessageType.ERROR, (String) resources.get("greetingRequired")));
             }
         }
 

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetExampleWindow.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetExampleWindow.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetExampleWindow.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetExampleWindow.java Fri Oct  4 23:45:40 2013
@@ -34,8 +34,10 @@ import org.apache.pivot.wtk.Window;
  * Main window.
  */
 public class SheetExampleWindow extends Window implements Bindable {
-    @BXML EditGreetingSheet editGreetingSheet = null;
-    @BXML private PushButton editGreetingButton = null;
+    @BXML
+    EditGreetingSheet editGreetingSheet = null;
+    @BXML
+    private PushButton editGreetingButton = null;
 
     @Override
     public void initialize(Map<String, Object> namespace, URL location, Resources resources) {

Modified: pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetSlideDirectionWindow.java
URL: http://svn.apache.org/viewvc/pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetSlideDirectionWindow.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetSlideDirectionWindow.java (original)
+++ pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetSlideDirectionWindow.java Fri Oct  4 23:45:40 2013
@@ -42,10 +42,14 @@ import org.apache.pivot.wtk.skin.terra.T
 
 public class SheetSlideDirectionWindow extends Window implements Bindable {
 
-    @BXML Sheet sheet;
-    @BXML TablePane tablePane;
-    @BXML Form form;
-    @BXML ListButton listButton;
+    @BXML
+    Sheet sheet;
+    @BXML
+    TablePane tablePane;
+    @BXML
+    Form form;
+    @BXML
+    ListButton listButton;
 
     @Override
     public void initialize(Map<String, Object> namespace, URL location, Resources resources) {

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ActionMappingTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ActionMappingTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ActionMappingTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ActionMappingTest.java Fri Oct  4 23:45:40 2013
@@ -48,9 +48,11 @@ public class ActionMappingTest extends A
         });
 
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(ActionMappingTest.class, "action_mapping_test.bxml");
-        window.getActionMappings().add(new Window.ActionMapping(new Keyboard.KeyStroke(Keyboard.KeyCode.B,
-            Keyboard.Modifier.SHIFT.getMask()), "action2"));
+        window = (Window) bxmlSerializer.readObject(ActionMappingTest.class,
+            "action_mapping_test.bxml");
+        window.getActionMappings().add(
+            new Window.ActionMapping(new Keyboard.KeyStroke(Keyboard.KeyCode.B,
+                Keyboard.Modifier.SHIFT.getMask()), "action2"));
 
         window.open(display);
         window.requestFocus();

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ApplicationHandlerTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ApplicationHandlerTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ApplicationHandlerTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ApplicationHandlerTest.java Fri Oct  4 23:45:40 2013
@@ -24,14 +24,14 @@ import org.apache.pivot.wtk.Display;
 import org.apache.pivot.wtk.Keyboard;
 import org.apache.pivot.wtk.Window;
 
-public class ApplicationHandlerTest extends Application.Adapter
-    implements Application.UnprocessedKeyHandler {
+public class ApplicationHandlerTest extends Application.Adapter implements
+    Application.UnprocessedKeyHandler {
     private Window window = null;
 
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(ApplicationHandlerTest.class,
+        window = (Window) bxmlSerializer.readObject(ApplicationHandlerTest.class,
             "application_handler_test.bxml");
         window.open(display);
     }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/BXMLDictionaryTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/BXMLDictionaryTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/BXMLDictionaryTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/BXMLDictionaryTest.java Fri Oct  4 23:45:40 2013
@@ -24,8 +24,7 @@ public class BXMLDictionaryTest {
     public static void main(String[] args) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
         @SuppressWarnings("unchecked")
-        HashMap<String, Object> hashMap =
-            (HashMap<String, Object>)bxmlSerializer.readObject(BXMLDictionaryTest.class.getResource("bxml_dictionary_test.bxml"));
+        HashMap<String, Object> hashMap = (HashMap<String, Object>) bxmlSerializer.readObject(BXMLDictionaryTest.class.getResource("bxml_dictionary_test.bxml"));
         System.out.println(JSONSerializer.toString(hashMap));
     }
 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/BaselineTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/BaselineTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/BaselineTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/BaselineTest.java Fri Oct  4 23:45:40 2013
@@ -30,7 +30,8 @@ public class BaselineTest extends Applic
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("baseline_test.bxml")));
+        window = new Window((Component) bxmlSerializer.readObject(getClass().getResource(
+            "baseline_test.bxml")));
         window.setTitle("Baseline Test");
         window.setMaximized(true);
         window.open(display);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/BorderTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/BorderTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/BorderTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/BorderTest.java Fri Oct  4 23:45:40 2013
@@ -24,15 +24,14 @@ import org.apache.pivot.wtk.DesktopAppli
 import org.apache.pivot.wtk.Display;
 import org.apache.pivot.wtk.Frame;
 
-
 public class BorderTest extends Application.Adapter {
     private Frame frame = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("border_test.bxml")));
+        frame = new Frame((Component) bxmlSerializer.readObject(getClass().getResource(
+            "border_test.bxml")));
         frame.setTitle("Border Test");
         frame.setPreferredSize(480, 360);
         frame.open(display);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ButtonGroupTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ButtonGroupTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ButtonGroupTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ButtonGroupTest.java Fri Oct  4 23:45:40 2013
@@ -31,8 +31,7 @@ public class ButtonGroupTest extends App
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         ButtonGroup buttonGroup = new ButtonGroup();
         buttonGroup.getButtonGroupListeners().add(new ButtonGroupListener() {
             @Override

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/CalendarTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/CalendarTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/CalendarTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/CalendarTest.java Fri Oct  4 23:45:40 2013
@@ -35,14 +35,16 @@ import org.apache.pivot.wtk.Window;
 public class CalendarTest extends Application.Adapter {
     private Window window = null;
 
-    @BXML private Calendar calendar = null;
-    @BXML private CalendarButton calendarButton = null;
+    @BXML
+    private Calendar calendar = null;
+    @BXML
+    private CalendarButton calendarButton = null;
 
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
 
-        window = (Window)bxmlSerializer.readObject(CalendarTest.class, "calendar_test.bxml");
+        window = (Window) bxmlSerializer.readObject(CalendarTest.class, "calendar_test.bxml");
         bxmlSerializer.bind(this, CalendarTest.class);
 
         Filter<CalendarDate> todayFilter = new Filter<CalendarDate>() {

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/CardPaneTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/CardPaneTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/CardPaneTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/CardPaneTest.java Fri Oct  4 23:45:40 2013
@@ -40,8 +40,7 @@ public class CardPaneTest extends Applic
     private ButtonGroup sizeGroup = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         frame = new Frame(new BoxPane());
         frame.getStyles().put("padding", 0);
         frame.setTitle("Component Pane Test");
@@ -49,19 +48,21 @@ public class CardPaneTest extends Applic
         frame.setLocation(20, 20);
 
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        sheet = (Sheet)bxmlSerializer.readObject(CardPaneTest.class, "card_pane_test.bxml");
-        cardPane = (CardPane)bxmlSerializer.getNamespace().get("cardPane");
-        sizeGroup = (ButtonGroup)bxmlSerializer.getNamespace().get("sizeGroup");
+        sheet = (Sheet) bxmlSerializer.readObject(CardPaneTest.class, "card_pane_test.bxml");
+        cardPane = (CardPane) bxmlSerializer.getNamespace().get("cardPane");
+        sizeGroup = (ButtonGroup) bxmlSerializer.getNamespace().get("sizeGroup");
 
         sizeGroup.getButtonGroupListeners().add(new ButtonGroupListener.Adapter() {
             @Override
             public void selectionChanged(ButtonGroup buttonGroup, Button previousSelection) {
                 final Button selection = buttonGroup.getSelection();
-                int selectedIndex = selection == null ? -1 : selection.getParent().indexOf(selection);
+                int selectedIndex = selection == null ? -1 : selection.getParent().indexOf(
+                    selection);
 
                 cardPane.getCardPaneListeners().add(new CardPaneListener.Adapter() {
                     @Override
-                    public Vote previewSelectedIndexChange(CardPane cardPaneArgument, int selectedIndexArgument) {
+                    public Vote previewSelectedIndexChange(CardPane cardPaneArgument,
+                        int selectedIndexArgument) {
                         if (selection != null) {
                             selection.getParent().setEnabled(false);
                         }
@@ -71,14 +72,14 @@ public class CardPaneTest extends Applic
 
                     @Override
                     public void selectedIndexChangeVetoed(CardPane cardPaneArgument, Vote reason) {
-                        if (selection != null
-                            && reason == Vote.DENY) {
+                        if (selection != null && reason == Vote.DENY) {
                             selection.getParent().setEnabled(true);
                         }
                     }
 
                     @Override
-                    public void selectedIndexChanged(CardPane cardPaneArgument, int previousSelectedIndex) {
+                    public void selectedIndexChanged(CardPane cardPaneArgument,
+                        int previousSelectedIndex) {
                         if (selection != null) {
                             selection.getParent().setEnabled(true);
                         }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/CheckedListViewTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/CheckedListViewTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/CheckedListViewTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/CheckedListViewTest.java Fri Oct  4 23:45:40 2013
@@ -30,14 +30,13 @@ import org.apache.pivot.wtk.ListView;
 import org.apache.pivot.wtk.Span;
 import org.apache.pivot.wtk.Window;
 
-
 public class CheckedListViewTest extends Application.Adapter {
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
-        final ListView listView = new ListView(JSONSerializer.parseList("['One', 'Two', 'Three', 'Four']"));
+    public void startup(Display display, Map<String, String> properties) throws Exception {
+        final ListView listView = new ListView(
+            JSONSerializer.parseList("['One', 'Two', 'Three', 'Four']"));
         listView.setSelectMode(ListView.SelectMode.MULTI);
         listView.setCheckmarksEnabled(true);
         listView.setItemChecked(0, true);
@@ -45,15 +44,17 @@ public class CheckedListViewTest extends
 
         listView.getComponentKeyListeners().add(new ComponentKeyListener.Adapter() {
             @Override
-            public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation) {
+            public boolean keyPressed(Component component, int keyCode,
+                Keyboard.KeyLocation keyLocation) {
                 if (keyCode == Keyboard.KeyCode.DELETE) {
                     @SuppressWarnings("unchecked")
-                    List<Object> listData = (List<Object>)listView.getListData();
+                    List<Object> listData = (List<Object>) listView.getListData();
 
                     Sequence<Span> selectedRanges = listView.getSelectedRanges();
                     for (int i = selectedRanges.getLength() - 1; i >= 0; i--) {
                         Span selectedRange = selectedRanges.get(i);
-                        listData.remove(selectedRange.start, selectedRange.end - selectedRange.start + 1);
+                        listData.remove(selectedRange.start, selectedRange.end
+                            - selectedRange.start + 1);
                     }
                 }
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ColorListButtonTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ColorListButtonTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ColorListButtonTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ColorListButtonTest.java Fri Oct  4 23:45:40 2013
@@ -31,12 +31,11 @@ public class ColorListButtonTest extends
     private ListButton listButton = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        BoxPane boxPane = (BoxPane)bxmlSerializer.readObject(ColorListButtonTest.class,
+        BoxPane boxPane = (BoxPane) bxmlSerializer.readObject(ColorListButtonTest.class,
             "color_list_button_test.bxml");
-        listButton = (ListButton)bxmlSerializer.getNamespace().get("listButton");
+        listButton = (ListButton) bxmlSerializer.getNamespace().get("listButton");
         // test the getListPopup() method
         listButton.getListPopup().getDecorators().add(new ReflectionDecorator());
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ColorPaletteTest.java Fri Oct  4 23:45:40 2013
@@ -36,8 +36,7 @@ public class ColorPaletteTest extends Ap
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         TablePane tablePane = new TablePane();
         tablePane.getColumns().add(new TablePane.Column(1, true));
         tablePane.getColumns().add(new TablePane.Column(1, true));

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenuTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenuTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenuTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenuTest.java Fri Oct  4 23:45:40 2013
@@ -30,15 +30,17 @@ import org.apache.pivot.wtk.Window;
 public class ContextMenuTest extends Application.Adapter {
     private Window window = null;
 
-    @BXML private Menu.Section globalSection;
-    @BXML private Menu.Section helpSection;
-    @BXML private Menu.Section hoursSection;
+    @BXML
+    private Menu.Section globalSection;
+    @BXML
+    private Menu.Section helpSection;
+    @BXML
+    private Menu.Section hoursSection;
 
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(ContextMenuTest.class,
-            "context_menu_test.bxml");
+        window = (Window) bxmlSerializer.readObject(ContextMenuTest.class, "context_menu_test.bxml");
         bxmlSerializer.bind(this, ContextMenuTest.class);
 
         window.setMenuHandler(new MenuHandler.Adapter() {

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenusSampleMenuHandlerAdapter.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenusSampleMenuHandlerAdapter.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenusSampleMenuHandlerAdapter.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenusSampleMenuHandlerAdapter.java Fri Oct  4 23:45:40 2013
@@ -57,7 +57,8 @@ public class ContextMenusSampleMenuHandl
         whatIsThisMenuItem.setAction(new Action() {
             @Override
             public void perform(Component source) {
-                String description = (descendant != null) ? (String)descendant.getUserData().get("description") : "empty";
+                String description = (descendant != null) ? (String) descendant.getUserData().get(
+                    "description") : "empty";
                 String message = "This is a " + description + " description.";
 
                 System.out.println("perform: " + message);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/CustomPanel.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/CustomPanel.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/CustomPanel.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/CustomPanel.java Fri Oct  4 23:45:40 2013
@@ -27,14 +27,15 @@ import org.apache.pivot.wtk.Window;
 
 /**
  * Test Component to ensure that BXMLSerializer will use public setter methods
- * instead of setting private fields directly (possible in trusted code
- * when run in a sandboxed environment, like in not trusted applets).
+ * instead of setting private fields directly (possible in trusted code when run
+ * in a sandboxed environment, like in not trusted applets).
  */
 public class CustomPanel extends Window implements Bindable {
 
-    @BXML private String field;
-    @BXML private TextInput textInput = null;
-
+    @BXML
+    private String field;
+    @BXML
+    private TextInput textInput = null;
 
     public CustomPanel() {
     }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/DataBindingTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/DataBindingTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/DataBindingTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/DataBindingTest.java Fri Oct  4 23:45:40 2013
@@ -86,14 +86,15 @@ public class DataBindingTest extends App
         }
     }
 
-    public static class TestBindMapping implements ListView.ItemBindMapping, Spinner.ItemBindMapping {
+    public static class TestBindMapping implements ListView.ItemBindMapping,
+        Spinner.ItemBindMapping {
         @Override
         public int indexOf(List<?> list, Object value) {
             int i = 0;
             int n = list.getLength();
             while (i < n) {
                 @SuppressWarnings("unchecked")
-                Map<String, ?> map = (Map<String, ?>)list.get(i);
+                Map<String, ?> map = (Map<String, ?>) list.get(i);
                 if (map.get("id").equals(value)) {
                     break;
                 }
@@ -111,7 +112,7 @@ public class DataBindingTest extends App
         @Override
         public Object get(List<?> list, int index) {
             @SuppressWarnings("unchecked")
-            Map<String, ?> map = (Map<String, ?>)list.get(index);
+            Map<String, ?> map = (Map<String, ?>) list.get(index);
             return map.get("id");
         }
     }
@@ -121,7 +122,7 @@ public class DataBindingTest extends App
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(DataBindingTest.class, "data_binding_test.bxml");
+        window = (Window) bxmlSerializer.readObject(DataBindingTest.class, "data_binding_test.bxml");
         window.open(display);
 
         HashMap<String, Object> context = new HashMap<>();

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/DragDropTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/DragDropTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/DragDropTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/DragDropTest.java Fri Oct  4 23:45:40 2013
@@ -55,15 +55,15 @@ public class DragDropTest extends Applic
 
             @Override
             public boolean beginDrag(Component component, int x, int y) {
-                ImageView imageView = (ImageView)component;
+                ImageView imageView = (ImageView) component;
                 image = imageView.getImage();
 
                 if (image != null) {
-                    imageView.setImage((Image)null);
+                    imageView.setImage((Image) null);
                     content = new LocalManifest();
                     content.putImage(image);
-                    offset = new Point(x - (imageView.getWidth() - image.getWidth()) / 2,
-                        y - (imageView.getHeight() - image.getHeight()) / 2);
+                    offset = new Point(x - (imageView.getWidth() - image.getWidth()) / 2, y
+                        - (imageView.getHeight() - image.getHeight()) / 2);
                 }
 
                 return (image != null);
@@ -72,7 +72,7 @@ public class DragDropTest extends Applic
             @Override
             public void endDrag(Component component, DropAction dropAction) {
                 if (dropAction == null) {
-                    ImageView imageView = (ImageView)component;
+                    ImageView imageView = (ImageView) component;
                     imageView.setImage(image);
                 }
 
@@ -113,9 +113,8 @@ public class DragDropTest extends Applic
                 int supportedDropActions, DropAction userDropAction) {
                 DropAction dropAction = null;
 
-                ImageView imageView = (ImageView)component;
-                if (imageView.getImage() == null
-                    && dragContent.containsImage()
+                ImageView imageView = (ImageView) component;
+                if (imageView.getImage() == null && dragContent.containsImage()
                     && DropAction.MOVE.isSelected(supportedDropActions)) {
                     dropAction = DropAction.MOVE;
                     component.getStyles().put("backgroundColor", IMAGE_VIEW_DROP_HIGHLIGHT_COLOR);
@@ -147,11 +146,11 @@ public class DragDropTest extends Applic
                 DropAction dropAction = null;
 
                 if (dragContent.containsImage()) {
-                    ImageView imageView = (ImageView)component;
+                    ImageView imageView = (ImageView) component;
                     try {
                         imageView.setImage(dragContent.getImage());
                         dropAction = DropAction.MOVE;
-                    } catch(IOException exception) {
+                    } catch (IOException exception) {
                         System.err.println(exception);
                     }
                 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/EnumBean.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/EnumBean.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/EnumBean.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/EnumBean.java Fri Oct  4 23:45:40 2013
@@ -51,11 +51,10 @@ import org.apache.pivot.wtk.text.Numbere
 
 /**
  * Simple bean for testing String to enum coercion.
- * {@link BeanAdapter#coerce(Object, Class)}.
- * <p>
- * All accessors were created using Eclipse's 'Generate Getters & Setters"
- * source generation.  No additional code has been added to them, so they
- * can safely be deleted and regenerated if required.
+ * {@link BeanAdapter#coerce(Object, Class)}. <p> All accessors were created
+ * using Eclipse's 'Generate Getters & Setters" source generation. No additional
+ * code has been added to them, so they can safely be deleted and regenerated if
+ * required.
  */
 public class EnumBean {
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/EnumBeanTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/EnumBeanTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/EnumBeanTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/EnumBeanTest.java Fri Oct  4 23:45:40 2013
@@ -63,9 +63,8 @@ public class EnumBeanTest {
             (value == null) ? "[null]" : value.getClass().getName()));
 
         value = ba.get("orientationField");
-        System.out.println(String.format("%-40s %-20s %s",
-            "BeanAdapter.get(\"orientationField\")", value, (value == null) ? "[null]"
-                : value.getClass().getName()));
+        System.out.println(String.format("%-40s %-20s %s", "BeanAdapter.get(\"orientationField\")",
+            value, (value == null) ? "[null]" : value.getClass().getName()));
     }
 
     private static void dumpSetter(EnumBean enumBean, BeanAdapter ba) {
@@ -75,7 +74,6 @@ public class EnumBeanTest {
 
         value = ba.get("orientation");
         System.out.println(String.format("%-40s %-20s %s", "BeanAdapter.get(\"orientation\")",
-            value,
-            (value == null) ? "[null]" : value.getClass().getName()));
+            value, (value == null) ? "[null]" : value.getClass().getName()));
     }
 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ExpanderTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ExpanderTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ExpanderTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ExpanderTest.java Fri Oct  4 23:45:40 2013
@@ -23,15 +23,13 @@ import org.apache.pivot.wtk.DesktopAppli
 import org.apache.pivot.wtk.Display;
 import org.apache.pivot.wtk.Window;
 
-
 public class ExpanderTest extends Application.Adapter {
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(ExpanderTest.class, "expander_test.bxml");
+        window = (Window) bxmlSerializer.readObject(ExpanderTest.class, "expander_test.bxml");
         window.open(display);
     }
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/FileBrowserWithCharsetTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/FileBrowserWithCharsetTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/FileBrowserWithCharsetTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/FileBrowserWithCharsetTest.java Fri Oct  4 23:45:40 2013
@@ -42,8 +42,7 @@ import org.apache.pivot.wtk.VerticalAlig
 import org.apache.pivot.wtk.Window;
 import org.apache.pivot.wtk.skin.terra.TerraFileBrowserSheetSkin;
 
-public class FileBrowserWithCharsetTest extends FileBrowserSheet implements Application
-{
+public class FileBrowserWithCharsetTest extends FileBrowserSheet implements Application {
     private ArrayList<String> choices = new ArrayList<>();
     private ListButton lb = new ListButton();
 
@@ -53,7 +52,7 @@ public class FileBrowserWithCharsetTest 
 
     public FileBrowserWithCharsetTest(Mode mode) {
         super(mode);
-        TerraFileBrowserSheetSkin skin = (TerraFileBrowserSheetSkin)getSkin();
+        TerraFileBrowserSheetSkin skin = (TerraFileBrowserSheetSkin) getSkin();
         BoxPane box = new BoxPane();
         box.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
         box.add(new Label("Character set:"));
@@ -71,22 +70,21 @@ public class FileBrowserWithCharsetTest 
     }
 
     public String getCharsetName() {
-        return (String)lb.getSelectedItem();
+        return (String) lb.getSelectedItem();
     }
 
-
     private Frame frame = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties) throws Exception
-    {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BoxPane windowContent = new BoxPane();
         PushButton button = new PushButton("Open Sheet");
         button.getButtonPressListeners().add(new ButtonPressListener() {
             @Override
             public void buttonPressed(Button buttonArgument) {
                 final Window window = FileBrowserWithCharsetTest.getActiveWindow();
-                final FileBrowserSheet fileBrowserSheet = new FileBrowserWithCharsetTest(FileBrowserSheet.Mode.OPEN);
+                final FileBrowserSheet fileBrowserSheet = new FileBrowserWithCharsetTest(
+                    FileBrowserSheet.Mode.OPEN);
 
                 fileBrowserSheet.open(window, new SheetCloseListener() {
                     @Override
@@ -130,7 +128,6 @@ public class FileBrowserWithCharsetTest 
         // empty block
     }
 
-
     @Override
     public void suspend() {
         // empty block
@@ -141,4 +138,3 @@ public class FileBrowserWithCharsetTest 
     }
 
 }
-

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/FormTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/FormTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/FormTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/FormTest.java Fri Oct  4 23:45:40 2013
@@ -28,10 +28,10 @@ public class FormTest extends Applicatio
     private Frame frame = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        frame = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("form_test.bxml")));
+        frame = new Frame((Component) bxmlSerializer.readObject(getClass().getResource(
+            "form_test.bxml")));
         frame.setTitle("Form Test");
         frame.setPreferredSize(480, 360);
         frame.open(display);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/GridPaneTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/GridPaneTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/GridPaneTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/GridPaneTest.java Fri Oct  4 23:45:40 2013
@@ -27,10 +27,9 @@ public class GridPaneTest extends Applic
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(GridPaneTest.class, "gridpane_test.bxml");
+        window = (Window) bxmlSerializer.readObject(GridPaneTest.class, "gridpane_test.bxml");
         window.open(display);
     }
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/IterationTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/IterationTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/IterationTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/IterationTest.java Fri Oct  4 23:45:40 2013
@@ -29,6 +29,7 @@ public class IterationTest {
 
         long t1 = System.currentTimeMillis();
 
-        System.out.println(Math.log10(COUNT) + " " + (t1 - t0) + "; " + Math.log10(COUNT) / Math.log10(2));
+        System.out.println(Math.log10(COUNT) + " " + (t1 - t0) + "; " + Math.log10(COUNT)
+            / Math.log10(2));
     }
 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/JSONBeanTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/JSONBeanTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/JSONBeanTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/JSONBeanTest.java Fri Oct  4 23:45:40 2013
@@ -47,4 +47,3 @@ public class JSONBeanTest {
         System.out.println(JSONSerializer.toString(a));
     }
 }
-

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/JavascriptConsoleTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/JavascriptConsoleTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/JavascriptConsoleTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/JavascriptConsoleTest.java Fri Oct  4 23:45:40 2013
@@ -31,14 +31,13 @@ import org.apache.pivot.wtk.Display;
 import org.apache.pivot.wtk.Window;
 
 /**
- * Sample Test Application (not fully working) to show how to interact
- * between Java code and JavaScript code (interpreted by the JVM) inside bxml files.
+ * Sample Test Application (not fully working) to show how to interact between
+ * Java code and JavaScript code (interpreted by the JVM) inside bxml files.
  * Many things usually done in Java code are here shown but from the JS side.
- * <p>
- * Some utility methods present here could be moved in a dedicated utility class.
- * <p>
- * Note that there are many comments inside this and related sources,
- * and it's to show different ways to do the same things, even as iterative development.
+ * <p> Some utility methods present here could be moved in a dedicated utility
+ * class. <p> Note that there are many comments inside this and related sources,
+ * and it's to show different ways to do the same things, even as iterative
+ * development.
  */
 public class JavascriptConsoleTest extends Application.Adapter {
     public static final String LANGUAGE_KEY = "language";
@@ -63,11 +62,13 @@ public class JavascriptConsoleTest exten
 
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
 
-        // add a reference to the application itself in bxml namespace, to be used by JS inside bxml files
+        // add a reference to the application itself in bxml namespace, to be
+        // used by JS inside bxml files
         bxmlSerializer.getNamespace().put("application", this);
         logObject("put a reference to application in serializer namespace");
         bxmlSerializer.getNamespace().put("mainClassName", MAIN_CLASS_NAME);
-        logObject("put a reference to main class name in serializer namespace \"" + MAIN_CLASS_NAME + "\"");
+        logObject("put a reference to main class name in serializer namespace \"" + MAIN_CLASS_NAME
+            + "\"");
 
         window = loadWindow("javascript_console_test.bxml", bxmlSerializer);
         initializeFields(bxmlSerializer);
@@ -85,10 +86,10 @@ public class JavascriptConsoleTest exten
         return false;
     }
 
-
     /**
-     * Utility method to initialize secondary fields/elements during application startup.
-     *
+     * Utility method to initialize secondary fields/elements during application
+     * startup.
+     * 
      * @param serializer the BXMLSerializer instance to use
      */
     private void initializeFields(BXMLSerializer serializer) {
@@ -100,11 +101,12 @@ public class JavascriptConsoleTest exten
         logObject("initializeFields: end");
     }
 
-
     /**
-     * Load resource files for the given classname, or if null a default will be used.
-     *
-     * @param className the full class name (to use as a base name), for loading resources
+     * Load resource files for the given classname, or if null a default will be
+     * used.
+     * 
+     * @param className the full class name (to use as a base name), for loading
+     * resources
      */
     private void loadResources(String className) {
         try {
@@ -112,11 +114,12 @@ public class JavascriptConsoleTest exten
             // but only if not already loaded ...
             if (resources == null) {
                 resources = new Resources(MAIN_CLASS_NAME, locale);
-                logObject("buildResources, load resources from "
-                    + "\""
-                    + ((className != null && className.length() > 0) ? className : MAIN_CLASS_NAME)  // set a useful default
-                    + "\", with locale " + locale
-                );
+                logObject("buildResources, load resources from " + "\""
+                    + ((className != null && className.length() > 0) ? className : MAIN_CLASS_NAME) // set
+                                                                                                    // a
+                                                                                                    // useful
+                                                                                                    // default
+                    + "\", with locale " + locale);
             }
         } catch (Exception e) {
             e.printStackTrace();
@@ -124,13 +127,11 @@ public class JavascriptConsoleTest exten
 
     }
 
-
     /**
-     * Load (and returns) a Window, given its file name
-     * <p>
-     * Note that if public this method could be called even from JS in a bxml file
-     * (but a reference to the current application has to be put in serializer namespace).
-     *
+     * Load (and returns) a Window, given its file name <p> Note that if public
+     * this method could be called even from JS in a bxml file (but a reference
+     * to the current application has to be put in serializer namespace).
+     * 
      * @param fileName the file name for the bxml file to load
      * @return the Window instance
      * @throws SerializationException in case of error
@@ -143,9 +144,10 @@ public class JavascriptConsoleTest exten
 
     /**
      * Load (and returns) a Window, given its file name and serializer to use
-     *
+     * 
      * @param fileName the file name for the bxml file to load
-     * @param bxmlSerializer the serializer to use, or if null a new one will be created
+     * @param bxmlSerializer the serializer to use, or if null a new one will be
+     * created
      * @return the Window instance
      * @throws SerializationException in case of error
      * @throws IOException in case of error
@@ -159,21 +161,23 @@ public class JavascriptConsoleTest exten
             serializer = new BXMLSerializer();
         }
 
-        // return (Window)bxmlSerializer.readObject(JavascriptConsoleTest.class, fileName); // ok
-        // better, to allow usage of resources (without having to call setLocation or setResources in the serializer) ...
-        return (Window)serializer.readObject(JavascriptConsoleTest.class, fileName, true);
+        // return (Window)bxmlSerializer.readObject(JavascriptConsoleTest.class,
+        // fileName); // ok
+        // better, to allow usage of resources (without having to call
+        // setLocation or setResources in the serializer) ...
+        return (Window) serializer.readObject(JavascriptConsoleTest.class, fileName, true);
     }
 
     /**
-     * Load (and returns) a Window, given its URL and serializer to use
-     * <p>
-     * Note that if public this method could be called even from JS in a bxml file
-     * (but a reference to the current application has to be put in serializer namespace).
-     * <p>
-     * Note that all Exceptions are catched inside this method, to not expose them to JS code.
-     *
+     * Load (and returns) a Window, given its URL and serializer to use <p> Note
+     * that if public this method could be called even from JS in a bxml file
+     * (but a reference to the current application has to be put in serializer
+     * namespace). <p> Note that all Exceptions are catched inside this method,
+     * to not expose them to JS code.
+     * 
      * @param urlString the URL of the bxml file to load, as a String
-     * @param bxmlSerializer the serializer to use, or if null a new one will be created
+     * @param bxmlSerializer the serializer to use, or if null a new one will be
+     * created
      * @return the Window instance
      */
     public Window loadWindowFromURL(String urlString, final BXMLSerializer bxmlSerializer) {
@@ -188,10 +192,11 @@ public class JavascriptConsoleTest exten
         try {
             URL url = new URL(urlString);
 
-            // force the location, so it will be possible to decode resources like labels ...
+            // force the location, so it will be possible to decode resources
+            // like labels ...
             serializer.setLocation(url);
 
-            loadedWindow = (Window)serializer.readObject(url);
+            loadedWindow = (Window) serializer.readObject(url);
         } catch (MalformedURLException e) {
             e.printStackTrace();
         } catch (IOException e) {
@@ -203,11 +208,10 @@ public class JavascriptConsoleTest exten
         return loadedWindow;
     }
 
-
     /**
-     * Return the value for the given label,
-     * from the resource file loaded at application startup.
-     *
+     * Return the value for the given label, from the resource file loaded at
+     * application startup.
+     * 
      * @param name the label name
      * @return the value or the label, or empty string if not found
      */
@@ -217,7 +221,8 @@ public class JavascriptConsoleTest exten
             throw new IllegalArgumentException("name must be a valid string");
         }
 
-        // note that if called from bxml files, resources could be not already loaded,
+        // note that if called from bxml files, resources could be not already
+        // loaded,
         // so try to force its load with a default value ...
         if (resources == null) {
             loadResources(null);
@@ -226,28 +231,28 @@ public class JavascriptConsoleTest exten
         label = (String) resources.get(name);
         logObject("search label with name \"" + name + "\", find value \"" + label + "\"");
 
-        return ((label == null) ? "": label);
+        return ((label == null) ? "" : label);
     }
 
-
     /**
-     * Sample utility method to log a formatted dump of the given object to System.out .
-     * <p>
-     * Note that it has been set public, static, and accepting Object (and not String as usual),
-     * even to make some tests on it from JS code.
-     *
+     * Sample utility method to log a formatted dump of the given object to
+     * System.out . <p> Note that it has been set public, static, and accepting
+     * Object (and not String as usual), even to make some tests on it from JS
+     * code.
+     * 
      * @param msg the object (or message) to log
      */
     public static final void logObject(Object obj) {
         if (obj != null) {
-            System.out.println(new java.util.Date() + ", log: { class: \"" + obj.getClass().getName() + "\", msg:\"" + obj + "\" }");
+            System.out.println(new java.util.Date() + ", log: { class: \""
+                + obj.getClass().getName() + "\", msg:\"" + obj + "\" }");
         }
     }
 
-
     /**
-     * Application entry point, when run as a Standard (Desktop) Java Application.
-     *
+     * Application entry point, when run as a Standard (Desktop) Java
+     * Application.
+     * 
      * @param args command line arguments
      */
     public static void main(String[] args) {

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/LabelAntialiasTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/LabelAntialiasTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/LabelAntialiasTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/LabelAntialiasTest.java Fri Oct  4 23:45:40 2013
@@ -48,22 +48,21 @@ public class LabelAntialiasTest extends 
         label.getStyles().put("color", Color.RED);
         label.getStyles().put("font", fontDerived);
         label.getStyles().put("horizontalAlignment", HorizontalAlignment.CENTER);
-        label.getStyles().put("verticalAlignment",   VerticalAlignment.TOP);
+        label.getStyles().put("verticalAlignment", VerticalAlignment.TOP);
 
         return label;
     }
 
     /**
      * Write to console some details of Desktop Hints, for Font Rendering.
-     *
+     * 
      * @see org.apache.pivot.wtk.Platform#initializeFontRenderContext
      */
     private void showFontDesktopHints() {
         System.out.println("Show Font Desktop Hints:");
 
         Toolkit toolkit = Toolkit.getDefaultToolkit();
-        java.util.Map<?, ?> fontDesktopHints =
-            (java.util.Map<?, ?>)toolkit.getDesktopProperty("awt.font.desktophints");
+        java.util.Map<?, ?> fontDesktopHints = (java.util.Map<?, ?>) toolkit.getDesktopProperty("awt.font.desktophints");
 
         System.out.println(fontDesktopHints);
     }
@@ -75,10 +74,10 @@ public class LabelAntialiasTest extends 
         System.out.println("Show Font Families:");
 
         GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
-        String []fontFamilies = ge.getAvailableFontFamilyNames();
+        String[] fontFamilies = ge.getAvailableFontFamilyNames();
         int fontFamiliesNumber = fontFamilies.length;
         StringBuffer fontFamilyNames = new StringBuffer(1024);
-        for (int i=0; i < fontFamiliesNumber; i++) {
+        for (int i = 0; i < fontFamiliesNumber; i++) {
             if (i > 0) {
                 fontFamilyNames.append(", ");
             }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/LabelTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/LabelTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/LabelTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/LabelTest.java Fri Oct  4 23:45:40 2013
@@ -57,13 +57,13 @@ public class LabelTest extends Applicati
         label1.getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT);
         boxPane.add(label1);
 
-        Label label2 = new Label(line2);  // strikethrough
+        Label label2 = new Label(line2); // strikethrough
         label2.getStyles().put("wrapText", true);
         label2.getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT);
         label2.getStyles().put("textDecoration", TextDecoration.STRIKETHROUGH);
         boxPane.add(label2);
 
-        Label label3 = new Label(line2);  // disabled
+        Label label3 = new Label(line2); // disabled
         label3.getStyles().put("wrapText", true);
         label3.getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT);
         label3.setEnabled(false);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ListViewSelectionTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ListViewSelectionTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ListViewSelectionTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ListViewSelectionTest.java Fri Oct  4 23:45:40 2013
@@ -32,7 +32,7 @@ public class ListViewSelectionTest exten
 
     public ListViewSelectionTest() {
         @SuppressWarnings("unchecked")
-        List<Object> listData = (List<Object>)listView.getListData();
+        List<Object> listData = (List<Object>) listView.getListData();
 
         listData.add("0");
         listData.add("1");
@@ -119,7 +119,8 @@ public class ListViewSelectionTest exten
 
         listView.getListViewSelectionListeners().add(new ListViewSelectionListener.Adapter() {
             @Override
-            public void selectedRangesChanged(ListView listViewArgument, Sequence<Span> previousSelectedRanges) {
+            public void selectedRangesChanged(ListView listViewArgument,
+                Sequence<Span> previousSelectedRanges) {
                 System.out.println("Selection changed");
             }
         });
@@ -144,7 +145,8 @@ public class ListViewSelectionTest exten
 
     public static void main(String[] args) {
         // Note that when run as Application, no List elements will be displayed
-        // on the screen, but only some messages will be displayed to the text console
+        // on the screen, but only some messages will be displayed to the text
+        // console
         DesktopApplicationContext.main(ListViewSelectionTest.class, args);
     }
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ListViewTest2.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ListViewTest2.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ListViewTest2.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ListViewTest2.java Fri Oct  4 23:45:40 2013
@@ -29,17 +29,18 @@ public class ListViewTest2 extends Appli
     private Window menu = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
 
         System.out.println("Left   Click on List elements to Select a Row");
 
-        window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("listview_test2.bxml")));
-        menu = (Window)bxmlSerializer.readObject(TableViewTest2.class, "context_menus.bxml");
+        window = new Window((Component) bxmlSerializer.readObject(getClass().getResource(
+            "listview_test2.bxml")));
+        menu = (Window) bxmlSerializer.readObject(TableViewTest2.class, "context_menus.bxml");
 
         window.setMenuHandler(new ContextMenusSampleMenuHandlerAdapter());
-        System.out.println("Right  Click on Window (and List elements) to display Contextual Menu: " + menu);
+        System.out.println("Right  Click on Window (and List elements) to display Contextual Menu: "
+            + menu);
 
         window.setTitle("ListView Test2");
         window.setMaximized(true);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/MenuBarTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/MenuBarTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/MenuBarTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/MenuBarTest.java Fri Oct  4 23:45:40 2013
@@ -37,9 +37,12 @@ public class MenuBarTest extends Applica
     private Frame frame1 = null;
     private Frame frame2 = null;
 
-    @BXML private TextInput textInput1 = null;
-    @BXML private TextInput textInput2 = null;
-    @BXML private TextInput textInput3 = null;
+    @BXML
+    private TextInput textInput1 = null;
+    @BXML
+    private TextInput textInput2 = null;
+    @BXML
+    private TextInput textInput3 = null;
 
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
@@ -52,23 +55,22 @@ public class MenuBarTest extends Applica
         frame1.setPreferredSize(320, 240);
         frame1.setTitle("Frame 1");
 
-        // put this before loading the related bxml, or an IllegalArgumentException will be thrown
+        // put this before loading the related bxml, or an
+        // IllegalArgumentException will be thrown
         Action.getNamedActions().put("about", new Action() {
             @Override
             public void perform(Component source) {
-                String msg = "Hello from Pivot-"
-                    + ApplicationContext.getPivotVersion().toString()
+                String msg = "Hello from Pivot-" + ApplicationContext.getPivotVersion().toString()
                     + ", running from Java "
                     // + ApplicationContext.getJVMVersion().toString()
-                    + System.getProperty("java.version")
-                ;
-                Alert.alert(msg, frame2.getRootOwner());  // frame2);
+                    + System.getProperty("java.version");
+                Alert.alert(msg, frame2.getRootOwner()); // frame2);
                 System.out.println("Help triggered");
             }
         });
 
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        frame2 = (Frame)bxmlSerializer.readObject(MenuBarTest.class, "menu_bar_test.bxml");
+        frame2 = (Frame) bxmlSerializer.readObject(MenuBarTest.class, "menu_bar_test.bxml");
         frame2.setTitle("Frame 2, from bxml");
         bxmlSerializer.bind(this, MenuBarTest.class);
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/MessageBusTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/MessageBusTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/MessageBusTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/MessageBusTest.java Fri Oct  4 23:45:40 2013
@@ -21,23 +21,22 @@ import org.apache.pivot.util.MessageBusL
 
 public class MessageBusTest {
     public enum TestMessage {
-        HELLO,
-        GOODBYE
+        HELLO, GOODBYE
     }
 
     public static void main(String[] args) {
-        MessageBusListener<TestMessage> testMessageListener =
-            new MessageBusListener<TestMessage>() {
-                @Override
-                public void messageSent(TestMessage message) {
-                    System.out.println(message);
-                }
-            };
+        MessageBusListener<TestMessage> testMessageListener = new MessageBusListener<TestMessage>() {
+            @Override
+            public void messageSent(TestMessage message) {
+                System.out.println(message);
+            }
+        };
 
-        MessageBus.subscribe(TestMessage.class, testMessageListener);  // subscribe
-        MessageBus.sendMessage(TestMessage.HELLO);  // a message will be printed
+        MessageBus.subscribe(TestMessage.class, testMessageListener); // subscribe
+        MessageBus.sendMessage(TestMessage.HELLO); // a message will be printed
 
-        MessageBus.unsubscribe(TestMessage.class, testMessageListener);  // unsubscribe
-        MessageBus.sendMessage(TestMessage.GOODBYE);  // the message will not be printed
+        MessageBus.unsubscribe(TestMessage.class, testMessageListener); // unsubscribe
+        MessageBus.sendMessage(TestMessage.GOODBYE); // the message will not be
+                                                     // printed
     }
 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/NamespaceTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/NamespaceTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/NamespaceTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/NamespaceTest.java Fri Oct  4 23:45:40 2013
@@ -28,10 +28,9 @@ public class NamespaceTest extends Appli
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(NamespaceTest.class, "namespace_test.bxml");
+        window = (Window) bxmlSerializer.readObject(NamespaceTest.class, "namespace_test.bxml");
         System.out.println(JSON.get(bxmlSerializer.getNamespace(), "content.text"));
         System.out.println(JSON.get(bxmlSerializer.getNamespace(), "content['text']"));
         window.open(display);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/NativeDragDropTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/NativeDragDropTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/NativeDragDropTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/NativeDragDropTest.java Fri Oct  4 23:45:40 2013
@@ -40,8 +40,7 @@ public class NativeDragDropTest extends 
     private Frame frame = null;
 
     @Override
-    public void startup(final Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(final Display display, Map<String, String> properties) throws Exception {
         final Label label = new Label("http://pivot.apache.org/");
         label.getStyles().put("font", new Font("Arial", Font.PLAIN, 24));
         label.getStyles().put("horizontalAlignment", HorizontalAlignment.CENTER);
@@ -125,10 +124,10 @@ public class NativeDragDropTest extends 
                 DropAction dropAction = null;
 
                 if (dragContent.containsText()) {
-                    Label labelLocal = (Label)component;
+                    Label labelLocal = (Label) component;
                     try {
                         labelLocal.setText(dragContent.getText());
-                    } catch(IOException exception) {
+                    } catch (IOException exception) {
                         System.err.println(exception);
                     }
                 }

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/PanoramaTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/PanoramaTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/PanoramaTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/PanoramaTest.java Fri Oct  4 23:45:40 2013
@@ -31,8 +31,7 @@ public class PanoramaTest extends Applic
     private Frame frame2 = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         frame1 = new Frame();
         frame1.setTitle("Panorama Test 1");
 
@@ -46,7 +45,8 @@ public class PanoramaTest extends Applic
         frame1.open(display);
 
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        frame2 = new Frame((Component)bxmlSerializer.readObject(getClass().getResource("panorama_test.bxml")));
+        frame2 = new Frame((Component) bxmlSerializer.readObject(getClass().getResource(
+            "panorama_test.bxml")));
         frame2.setTitle("Panorama Test 2");
         frame2.setPreferredSize(480, 360);
         frame2.open(display);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/PushButtonTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/PushButtonTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/PushButtonTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/PushButtonTest.java Fri Oct  4 23:45:40 2013
@@ -29,8 +29,7 @@ public class PushButtonTest extends Appl
     private Window window = null;
 
     @Override
-    public void startup(Display display, Map<String, String> properties)
-        throws Exception {
+    public void startup(Display display, Map<String, String> properties) throws Exception {
         window = new Window();
         BoxPane boxPane = new BoxPane();
         boxPane.getStyles().put("horizontalAlignment", HorizontalAlignment.RIGHT);

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ResolveTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ResolveTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ResolveTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ResolveTest.java Fri Oct  4 23:45:40 2013
@@ -29,7 +29,7 @@ public class ResolveTest extends Applica
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(ResolveTest.class, "resolve_test.bxml", true);
+        window = (Window) bxmlSerializer.readObject(ResolveTest.class, "resolve_test.bxml", true);
         window.open(display);
     }
 

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/ResultListTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/ResultListTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/ResultListTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/ResultListTest.java Fri Oct  4 23:45:40 2013
@@ -44,35 +44,28 @@ public class ResultListTest {
 
             resultSet = statement.executeQuery("SELECT * FROM result_list_test");
             resultList = new ResultList(resultSet);
-            resultList.setFields(new ResultList.Field("i"),
-                new ResultList.Field("f"),
-                new ResultList.Field("s"),
-                new ResultList.Field("b"));
+            resultList.setFields(new ResultList.Field("i"), new ResultList.Field("f"),
+                new ResultList.Field("s"), new ResultList.Field("b"));
             out.println(JSONSerializer.toString(resultList));
 
             resultSet = statement.executeQuery("SELECT * FROM result_list_test");
             resultList = new ResultList(resultSet);
-            resultList.setFields(new ResultList.Field("i", "integer"),
-                new ResultList.Field("f", "float"),
-                new ResultList.Field("s", "string"),
-                new ResultList.Field("b", "boolean"));
+            resultList.setFields(new ResultList.Field("i", "integer"), new ResultList.Field("f",
+                "float"), new ResultList.Field("s", "string"), new ResultList.Field("b", "boolean"));
             out.println(JSONSerializer.toString(resultList));
 
             resultSet = statement.executeQuery("SELECT * FROM result_list_test");
             resultList = new ResultList(resultSet);
             resultList.setFields(new ResultList.Field("i", "integer", Integer.class),
-                new ResultList.Field("f", "float", Float.class),
-                new ResultList.Field("s", "string", String.class),
-                new ResultList.Field("b", "boolean", Boolean.class));
+                new ResultList.Field("f", "float", Float.class), new ResultList.Field("s",
+                    "string", String.class), new ResultList.Field("b", "boolean", Boolean.class));
             out.println(JSONSerializer.toString(resultList));
 
             // Test forward and backward iteration
             resultSet = statement.executeQuery("SELECT * FROM result_list_test");
             resultList = new ResultList(resultSet);
-            resultList.setFields(new ResultList.Field("i"),
-                new ResultList.Field("f"),
-                new ResultList.Field("s"),
-                new ResultList.Field("b"));
+            resultList.setFields(new ResultList.Field("i"), new ResultList.Field("f"),
+                new ResultList.Field("s"), new ResultList.Field("b"));
 
             Iterator<Map<String, Object>> iterator = resultList.iterator();
             while (iterator.hasNext()) {

Modified: pivot/trunk/tests/src/org/apache/pivot/tests/SaturationDecoratorTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/SaturationDecoratorTest.java?rev=1529349&r1=1529348&r2=1529349&view=diff
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/SaturationDecoratorTest.java (original)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/SaturationDecoratorTest.java Fri Oct  4 23:45:40 2013
@@ -29,7 +29,7 @@ public class SaturationDecoratorTest ext
     @Override
     public void startup(Display display, Map<String, String> properties) throws Exception {
         BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(SaturationDecoratorTest.class,
+        window = (Window) bxmlSerializer.readObject(SaturationDecoratorTest.class,
             "saturation_decorator_test.bxml");
 
         window.open(display);
@@ -37,7 +37,7 @@ public class SaturationDecoratorTest ext
 
     @Override
     public boolean shutdown(boolean optional) {
-        if (window!= null) {
+        if (window != null) {
             window.close();
         }