diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/CrossSectionChartThemePanel.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents 67ae70259011
children 05405292a7ca
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/CrossSectionChartThemePanel.java	Thu Jan 18 20:10:59 2018 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/CrossSectionChartThemePanel.java	Thu Jan 18 20:12:01 2018 +0100
@@ -69,7 +69,8 @@
 
     /** Service to query measurement points of cross sections. */
     CrossSectionKMServiceAsync kmService = GWT.create(
-        org.dive4elements.river.client.client.services.CrossSectionKMService.class);
+        org.dive4elements.river.client.client.services
+        .CrossSectionKMService.class);
 
     /** UUID of the current "master" cross section. */
     protected String currentCSMasterUUID;
@@ -83,7 +84,8 @@
     /** Data item name for CrossSections reference ('master') flag. */
     protected static String CS_IS_MASTER = "cross_section.master?";
 
-    /** List of cross-section themes through which is moved through synchronously. */
+    /** List of cross-section themes through which is moved
+     * through synchronously. */
     protected HashSet synchronCrossSectionThemes = new HashSet();
 
     /** Data for master artifact combobox.*/
@@ -286,8 +288,8 @@
             return Double.NaN;
         }
         Arrays.sort(in);
-        GWT.log ("Closest match for " + (up ? "next" : "previous") + " value to: " +
-                to + " candidates: " + Arrays.toString(in));
+        GWT.log ("Closest match for " + (up ? "next" : "previous")
+            + " value to: " + to + " candidates: " + Arrays.toString(in));
         if (up) {
             double max = in[in.length - 1];
             for (int i = 0; i < in.length; i++) {
@@ -333,7 +335,8 @@
             new AsyncCallback<List<Artifact>>() {
                 @Override
                 public void onFailure(Throwable caught) {
-                    GWT.log("Could not feed many artifacts " + caught.getMessage());
+                    GWT.log("Could not feed many artifacts "
+                        + caught.getMessage());
                     SC.warn(MSG.getString(caught.getMessage()));
                     enable();
                 }
@@ -451,13 +454,15 @@
                     Double closest =
                         CrossSectionChartThemePanel.closest(kms, enteredKm, up);
                     if (Double.isNaN(closest)) {
-                        GWT.log("Failed to find a closest km. Staying on current km.");
+                        GWT.log("Failed to find a closest km. "
+                            + "Staying on current km.");
                         updateCollection();
                         enable();
                         return;
                     }
 
-                    GWT.log("Got single km close to " + enteredKm + " for " + dbid + ", it is "
+                    GWT.log("Got single km close to "
+                        + enteredKm + " for " + dbid + ", it is "
                         + closest);
 
                     // Do not set value, as it will trigger strange
@@ -472,9 +477,11 @@
                             final Theme theme = themes.getThemeAt(i+1);
                             if (theme.getFacet().equals("cross_section") &&
                                 theme.getActive() == 1 &&
-                                synchronCrossSectionThemes.contains(themeHash(theme))
+                                synchronCrossSectionThemes.contains(
+                                    themeHash(theme))
                                 ) {
-                                artifacts.add(artifactReference(theme.getArtifact()));
+                                artifacts.add(
+                                    artifactReference(theme.getArtifact()));
                             }
                         }
                         sendFeed(artifacts, closest);
@@ -515,8 +522,11 @@
                     // Place KMSpinner in Grid with currently chosen km value.
                     if (fieldName.equals(GRID_FIELD_ACTIONS)) {
                         double currentValue =
-                            Double.valueOf(facetRecord.getTheme().getCollectionItem().getData().get(CS_KM));
-                        KMSpinner kmSpinner = new KMSpinner(currentValue, facetRecord);
+                            Double.valueOf(
+                                facetRecord.getTheme().getCollectionItem()
+                                .getData().get(CS_KM));
+                        KMSpinner kmSpinner = new KMSpinner(
+                            currentValue, facetRecord);
                         kmSpinner.addChangeListener(parent);
                         return kmSpinner;
                     }
@@ -634,7 +644,8 @@
             MenuItem synchronNavigationMenuItem = new MenuItem();
             final String themeHash = themeHash(facetTheme);
             if (synchronCrossSectionThemes.contains(themeHash)) {
-                synchronNavigationMenuItem.setTitle(MSG.chart_themepanel_asynchron());
+                synchronNavigationMenuItem.setTitle(
+                    MSG.chart_themepanel_asynchron());
                 synchronNavigationMenuItem.addClickHandler(new ClickHandler() {
                     @Override
                     public void onClick(MenuItemClickEvent evt) {
@@ -643,7 +654,8 @@
                 });
             }
             else {
-                synchronNavigationMenuItem.setTitle(MSG.chart_themepanel_synchron());
+                synchronNavigationMenuItem.setTitle(
+                    MSG.chart_themepanel_synchron());
                 synchronNavigationMenuItem.addClickHandler(new ClickHandler() {
                     @Override
                     public void onClick(MenuItemClickEvent evt) {

http://dive4elements.wald.intevation.org