Revision: 6169
          http://sourceforge.net/p/jump-pilot/code/6169
Author:   ma15569
Date:     2019-04-07 10:46:18 +0000 (Sun, 07 Apr 2019)
Log Message:
-----------
few upgrade to lang strings

Modified Paths:
--------------
    core/trunk/src/org/openjump/core/ui/plugin/raster/ManageDataPlugIn.java
    
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToContoursPlugIn.java
    
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToPolygonsPlugIn.java

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/raster/ManageDataPlugIn.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/plugin/raster/ManageDataPlugIn.java     
2019-04-07 10:42:51 UTC (rev 6168)
+++ core/trunk/src/org/openjump/core/ui/plugin/raster/ManageDataPlugIn.java     
2019-04-07 10:46:18 UTC (rev 6169)
@@ -105,6 +105,8 @@
     private final String ERROR = I18N.get("ui.GenericNames.Error");
     private final String SELECT_BAND = I18N
             
.get("org.openjump.core.ui.plugin.raster.HistogramPlugIn.select-one-band");
+    private final static String CHECK_FILE = I18N
+            
.get("plugin.EnableCheckFactory.at-least-one-single-banded-layer-should-exist");
 
     private final ImageIcon icon16 = IconLoader
             .icon("fugue/folder-horizontal-open_16.png");
@@ -134,8 +136,12 @@
     Envelope envWanted = new Envelope();
     Envelope fix = new Envelope();
 
-    private final String CLAYER = RasterMenuNames.Source_Layer;
-    private final String OUTPUT_FILE = RasterMenuNames.Output_file;
+    private final String CLAYER = I18N.get("ui.GenericNames.Source-Layer");
+    private final String OUTPUT_FILE = I18N
+            .get("driver.DriverManager.file-to-save");
+    private final String PROCESSING = I18N
+            .get("jump.plugin.edit.NoderPlugIn.processing");
+
     private final String CHECK = RasterMenuNames.Check_field;
     private final String ACTION = RasterMenuNames.Choose_an_action;
     private final String CHANGE_NODATA_TIP = RasterMenuNames.CHANGE_NODATA_TIP;
@@ -149,8 +155,6 @@
     private final String RESET_TO_MIN = RasterMenuNames.RESET_TO_MIN;
     private final String RESET_TO_MAX = RasterMenuNames.RESET_TO_MAX;
     private final String NAME = RasterMenuNames.DATA_NAME;
-    private final String PROCESSING = RasterMenuNames.PROCESSING;
-    private final static String CHECK_FILE = RasterMenuNames.SINGLE_BAND_EXIST;
 
     List<RasterImageLayer> fLayers = new ArrayList<RasterImageLayer>();
 
@@ -254,13 +258,13 @@
             new EnableCheck() {
                 @Override
                 public String check(JComponent component) {
-                    return uv_field.getText().isEmpty() ? CHECK
+                    return uv_field.getText().isEmpty() ? CHECK.concat(": ")
                             .concat(UPPER_VALUE) : null;
                 }
             }, new EnableCheck() {
                 @Override
                 public String check(JComponent component) {
-                    return lv_field.getText().isEmpty() ? CHECK
+                    return lv_field.getText().isEmpty() ? CHECK.concat(": ")
                             .concat(LOWER_VALUE) : null;
                 }
             }, new EnableCheck() {
@@ -277,7 +281,8 @@
     private final EnableCheck[] chengeNoDataCheck = new EnableCheck[] { new 
EnableCheck() {
         @Override
         public String check(JComponent component) {
-            return target_nodata.getText().isEmpty() ? CHECK.concat(TO) : null;
+            return target_nodata.getText().isEmpty() ? CHECK.concat(": ")
+                    .concat(TO) : null;
         }
     } };
 
@@ -285,7 +290,7 @@
         @Override
         public String check(JComponent component) {
             return jTextField_RasterOut.getText().isEmpty() ? CHECK
-                    .concat(OUTPUT_FILE) : null;
+                    .concat(": ").concat(OUTPUT_FILE) : null;
         }
     } };
 
@@ -359,11 +364,11 @@
             IO.save_ExtractValidData(outFile, rLayer, band, mindata, maxdata);
         } else if (UNIT.equals(RESET_NODATA_TAG)) {
             if (minval) {
-                IO.save_ResetNoDataTag(outFile, rLayer, band, 
rLayer.getMetadata()
-                        .getStats().getMin(0));
+                IO.save_ResetNoDataTag(outFile, rLayer, band, rLayer
+                        .getMetadata().getStats().getMin(0));
             } else if (maxval) {
-                IO.save_ResetNoDataTag(outFile, rLayer, band, 
rLayer.getMetadata()
-                        .getStats().getMax(0));
+                IO.save_ResetNoDataTag(outFile, rLayer, band, rLayer
+                        .getMetadata().getStats().getMax(0));
             }
         } else if (UNIT.equals(SET_DECIMAL)) {
             IO.save_ChangeDecimalValues(outFile, rLayer, band, dimension);

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToContoursPlugIn.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToContoursPlugIn.java
    2019-04-07 10:42:51 UTC (rev 6168)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToContoursPlugIn.java
    2019-04-07 10:46:18 UTC (rev 6169)
@@ -56,7 +56,7 @@
     private final String PROCESSING = I18N
             .get("jump.plugin.edit.NoderPlugIn.processing");
 
-    String sLayer = RasterMenuNames.Source_Layer;
+    String sLayer = I18N.get("ui.GenericNames.Source-Layer");
     String sExplode = RasterMenuNames.ExplodeMultipolygons;
     String NAME = RasterMenuNames.VectorizeToContours;
     String sStyle = RasterMenuNames.ApplyStyle;
@@ -371,7 +371,8 @@
                 });
     }
 
-    private final static String CHECK_FILE = RasterMenuNames.SINGLE_BAND_EXIST;
+    private final static String CHECK_FILE = I18N
+            
.get("plugin.EnableCheckFactory.at-least-one-single-banded-layer-should-exist");
 
     @Override
     public void initialize(PlugInContext context) throws Exception {

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToPolygonsPlugIn.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToPolygonsPlugIn.java
    2019-04-07 10:42:51 UTC (rev 6168)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/raster/VectorizeToPolygonsPlugIn.java
    2019-04-07 10:46:18 UTC (rev 6169)
@@ -44,7 +44,7 @@
     private final String PROCESSING = I18N
             .get("jump.plugin.edit.NoderPlugIn.processing");
 
-    String sLayer = RasterMenuNames.Source_Layer;
+    String sLayer = I18N.get("ui.GenericNames.Source-Layer");
     String sExplode = RasterMenuNames.ExplodeMultipolygons;
     String NAME = RasterMenuNames.VectorizeToPolygon;
     String sStyle = RasterMenuNames.ApplyStyle;
@@ -216,7 +216,8 @@
                 });
     }
 
-    private final static String CHECK_FILE = RasterMenuNames.SINGLE_BAND_EXIST;
+    private final static String CHECK_FILE = I18N
+            
.get("plugin.EnableCheckFactory.at-least-one-single-banded-layer-should-exist");
 
     @Override
     public void initialize(PlugInContext context) throws Exception {



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to