Revision: 5680 http://sourceforge.net/p/jump-pilot/code/5680 Author: ma15569 Date: 2018-01-25 13:57:11 +0000 (Thu, 25 Jan 2018) Log Message: ----------- modify status message
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/raster/RasterQueryCursorTool.java Modified: core/trunk/src/org/openjump/core/ui/plugin/raster/RasterQueryCursorTool.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/raster/RasterQueryCursorTool.java 2018-01-25 13:20:24 UTC (rev 5679) +++ core/trunk/src/org/openjump/core/ui/plugin/raster/RasterQueryCursorTool.java 2018-01-25 13:57:11 UTC (rev 5680) @@ -150,11 +150,8 @@ coord.y, b); if (cellValue != null) { if (rLayer.isNoData(cellValue)) { - cellValues = "(" - + RASTER_NODATA - + ") " - + cellValues.concat(Double - .toString(cellValue)); + cellValues = cellValues.concat(Double + .toString(cellValue)); } else { cellValues = cellValues.concat(Double .toString(cellValue)); @@ -185,7 +182,8 @@ .getFeatureSchema())); } getPanel().getContext().setStatusMessage( - "(" + name + ") " + VALUE + ": " + lastClick); + "[" + LAYER + ": " + name + "] " + VALUE + ": " + + lastClick); getPanel().setViewportInitialized(true); } else { getPanel() @@ -322,7 +320,11 @@ tentativeCoordinate.y, b); if (cellValue != null) { if (aLayer.isNoData(cellValue)) { - cellValues = Double.toString(Double.NaN); + cellValues = cellValues.concat(Double + .toString(cellValue)) + + "(" + + RASTER_NODATA + + ") "; } else { cellValues = cellValues.concat(Double .toString(cellValue)); @@ -349,6 +351,7 @@ // + cellValues.toString()); getPanel().getContext().setStatusMessage( - "(" + name + ") " + VALUE + ": " + cellValues.toString()); + "[" + LAYER + ": " + name + "] " + VALUE + ": " + + cellValues.toString()); } } \ No newline at end of file ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel