hey Mike,

stumbled over a problem that was introduced with the macro recording. see 
below. 
you can reproduce the addressed issue by
1. disable the reset temporarily
2. open an archive eg. a zip with shp files
3. try to open an ordinary shp file

i just patched it up but you probably want to fix it properly.. just a heads 
up.. ede


-------- Forwarded Message --------
Subject: [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[4193] 
core/trunk/src/org/openjump/core/ui/io/file/ DataSourceFileLayerLoader.java
Date: Sun, 14 Dec 2014 21:15:53 +0000
From: [email protected]
Reply-To: [email protected]
To: [email protected]

Revision: 4193
          http://sourceforge.net/p/jump-pilot/code/4193
Author:   edso
Date:     2014-12-14 21:15:52 +0000 (Sun, 14 Dec 2014)
Log Message:
-----------
hotfix:
opening archives prevents opening non-compressed files thereafter.

Modified Paths:
--------------
    core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java

Modified: 
core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java  
2014-12-14 12:28:19 UTC (rev 4192)
+++ core/trunk/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java  
2014-12-14 21:15:52 UTC (rev 4193)
@@ -114,6 +114,12 @@
         return parameters;
     }
     // [mmichaud 2014-10-01] end
+    
+    // this probably clashes with the above, but DataSourceFileLayerLoader is 
reused for opening files
+    // so any "old" parameters lingering during open have a probably 
detrimental effect on the next open
+    public void resetParameters() {
+        this.parameters = new HashMap<String, Object>();
+    }
 
   /** The {@link DataSource} class. */
   private Class dataSourceClass;
@@ -238,6 +244,8 @@
    * @return True if the file could be loaded false otherwise.
    */
   public boolean open(TaskMonitor monitor, URI uri, Map<String, Object> 
options) {
+      //reset old parameters away
+      resetParameters();
       addParameter(DATASOURCE_CLASSNAME, dataSourceClass.getName());
       addParameter(URI, uri.toString());
       Map<String,Object> properties = toProperties(uri, options);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-svn-notify mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-svn-notify



------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to