Revision: 4318
          http://sourceforge.net/p/jump-pilot/code/4318
Author:   michaudm
Date:     2015-02-23 06:10:00 +0000 (Mon, 23 Feb 2015)
Log Message:
-----------
Fix Save dataset as Postgis Table (insert all Features as New Rows)

Modified Paths:
--------------
    core/trunk/ChangeLog
    
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/PostGISSaveDriverPanel.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2015-02-07 18:42:19 UTC (rev 4317)
+++ core/trunk/ChangeLog        2015-02-23 06:10:00 UTC (rev 4318)
@@ -1,5 +1,8 @@
 # for display continuity sake please use 2 spaces instead of tabs
 
+2015-02-23 mmichaud <[email protected]>
+    - Fix Save dataset as Postgis Table (insert all Features as New Rows)
+
 2014_01_24 Giuseppe Aruta (ma15569) - RasterQueryPlugIn
        - Extended inspection to multiband raster layers. 
        - Multiple measure are now displayed (and saved) by default. 

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/PostGISSaveDriverPanel.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/PostGISSaveDriverPanel.java
    2015-02-07 18:42:19 UTC (rev 4317)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/PostGISSaveDriverPanel.java
    2015-02-23 06:10:00 UTC (rev 4318)
@@ -336,6 +336,7 @@
        
        
        public String getPrimaryKey() {
+        if (!primaryKeyComboBox.isEnabled()) return null;
            Object selection = primaryKeyComboBox.getSelectedItem();
            if (selection == null) return null;
            //else if (selection.equals(NO_PK)) return 
SaveToPostGISDataSource.NO_LOCAL_ID;
@@ -343,7 +344,7 @@
        }
        
        public boolean isCreatePrimaryKeyColumnSelected() {
-           return createPrimaryKeyCheckBox.isSelected();
+           return createPrimaryKeyCheckBox.isEnabled() && 
createPrimaryKeyCheckBox.isSelected();
        }
        
 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to