Revision: 6434 http://sourceforge.net/p/jump-pilot/code/6434 Author: ma15569 Date: 2020-09-07 11:46:22 +0000 (Mon, 07 Sep 2020) Log Message: ----------- corrected undocumented bug. FileChooser of Save/Load style was freezing OJ whenever it was used more than one time
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/style/LoadStylePlugIn.java core/trunk/src/org/openjump/core/ui/plugin/style/SaveStylePlugIn.java Modified: core/trunk/src/org/openjump/core/ui/plugin/style/LoadStylePlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/style/LoadStylePlugIn.java 2020-09-07 11:08:48 UTC (rev 6433) +++ core/trunk/src/org/openjump/core/ui/plugin/style/LoadStylePlugIn.java 2020-09-07 11:46:22 UTC (rev 6434) @@ -83,7 +83,7 @@ File file; Layer layer; - private final JFCWithEnterAction fc = new JFCWithEnterAction(); + private JFileChooser fc;// = new JFCWithEnterAction(); private final FileNameExtensionFilter filter = new FileNameExtensionFilter( "JUMP layer symbology", "style.xml"); private final FileNameExtensionFilter filter2 = new FileNameExtensionFilter( @@ -95,7 +95,7 @@ @Override public boolean execute(PlugInContext context) throws Exception { layer = context.getSelectedLayer(0); - + fc = new JFCWithEnterAction(); if (PersistentBlackboardPlugIn.get(context.getWorkbenchContext()).get( FILE_CHOOSER_DIRECTORY_KEY) != null) { fc.setCurrentDirectory(new File((String) PersistentBlackboardPlugIn Modified: core/trunk/src/org/openjump/core/ui/plugin/style/SaveStylePlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/style/SaveStylePlugIn.java 2020-09-07 11:08:48 UTC (rev 6433) +++ core/trunk/src/org/openjump/core/ui/plugin/style/SaveStylePlugIn.java 2020-09-07 11:46:22 UTC (rev 6434) @@ -88,7 +88,7 @@ "JUMP layer symbology", "style.xml"); private final FileNameExtensionFilter filter2 = new FileNameExtensionFilter( "Spatial layer descriptor", "sld"); - private final JFCWithEnterAction fc = new GUIUtil.FileChooserWithOverwritePrompting(); + private JFileChooser fc;// = new GUIUtil.FileChooserWithOverwritePrompting(); private static final String FILE_CHOOSER_DIRECTORY_KEY = SaveFileDataSourceQueryChooser.class .getName() + " - FILE CHOOSER DIRECTORY"; @@ -95,7 +95,7 @@ @Override public boolean execute(PlugInContext context) throws Exception { reportNothingToUndoYet(context); - + fc = new GUIUtil.FileChooserWithOverwritePrompting(); layer = context.getSelectedLayer(0); if (PersistentBlackboardPlugIn.get(context.getWorkbenchContext()).get( _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel