Revision: 5766
          http://sourceforge.net/p/jump-pilot/code/5766
Author:   edso
Date:     2018-04-15 13:07:35 +0000 (Sun, 15 Apr 2018)
Log Message:
-----------
fix "[JPP-Devel] Open File does not show file type menu"
activating the open file menu a second time resulted in an empty file type 
selection 

Modified Paths:
--------------
    core/trunk/src/org/openjump/core/ui/plugin/file/open/SelectFilesPanel.java

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/file/open/SelectFilesPanel.java
===================================================================
--- core/trunk/src/org/openjump/core/ui/plugin/file/open/SelectFilesPanel.java  
2018-04-12 06:31:49 UTC (rev 5765)
+++ core/trunk/src/org/openjump/core/ui/plugin/file/open/SelectFilesPanel.java  
2018-04-15 13:07:35 UTC (rev 5766)
@@ -107,9 +107,11 @@
 
   public void setState(OpenFileWizardState state) {
     this.state = state;
-    for (FileFilter filter : getChoosableFileFilters()) {
-      removeChoosableFileFilter(filter);
-    }
+    // [2018.04 ede] deactivated as it makes no sense to delete & recreate file
+    // filters on every display of the same file chooser
+    // for (FileFilter filter : getChoosableFileFilters()) {
+    // removeChoosableFileFilter(filter);
+    // }
   }
 
   public WizardDialog getDialog() {
@@ -124,7 +126,6 @@
     // make sure we only initialize once
     if (initialized)
       return;
-    initialized = true;
 
     blackboard = PersistentBlackboardPlugIn.get(workbenchContext);
     Registry registry = workbenchContext.getRegistry();
@@ -211,6 +212,8 @@
     addPropertyChangeListener(changeListener);
 
     addActionListener(new InvokeMethodActionListener(dialog, "next"));
+
+    initialized = true;
   }
 
   /**


------------------------------------------------------------------------------
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

Reply via email to