- Timestamp:
- 2021-08-02T02:35:03+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/AbstractFileChooser.java
r11023 r18113 7 7 import java.util.Locale; 8 8 9 import javax.swing.ActionMap; 9 10 import javax.swing.filechooser.FileFilter; 10 11 … … 215 216 */ 216 217 public abstract int showSaveDialog(Component parent); 218 219 /** 220 * Gets the list of action names. 221 * 222 * @return a <code>ActionMap</code> array containing all the action names 223 * @since 18113 224 */ 225 public abstract ActionMap getActionMap(); 217 226 } -
trunk/src/org/openstreetmap/josm/gui/widgets/FileChooserManager.java
r17333 r18113 8 8 import java.util.function.Predicate; 9 9 10 import javax.swing.Action; 10 11 import javax.swing.JFileChooser; 11 12 import javax.swing.filechooser.FileFilter; … … 37 38 PlatformManager.isPlatformOsx()); 38 39 40 /** 41 * Property to use the details view in file dialogs. 42 */ 43 public static final BooleanProperty PROP_USE_DETAILS_VIEW_FILE_DIALOG = new BooleanProperty("use.details.view.file.dialog", false); 44 39 45 private final boolean open; 40 46 private final String lastDirProperty; … … 303 309 } else { 304 310 fc = new SwingFileChooser(f); 311 if (PROP_USE_DETAILS_VIEW_FILE_DIALOG.get()) { 312 // See sun.swing.FilePane.ACTION_VIEW_DETAILS 313 Action details = fc.getActionMap().get("viewTypeDetails"); 314 if (details != null) { 315 details.actionPerformed(null); 316 } 317 } 305 318 } 306 319 -
trunk/src/org/openstreetmap/josm/gui/widgets/NativeFileChooser.java
r15287 r18113 9 9 import java.util.List; 10 10 11 import javax.swing.ActionMap; 11 12 import javax.swing.JFileChooser; 12 13 import javax.swing.filechooser.FileFilter; … … 162 163 } 163 164 165 @Override 166 public ActionMap getActionMap() { 167 return new ActionMap(); 168 } 169 164 170 /** 165 171 * Determines if the selection mode is suuported by the native file chooser. -
trunk/src/org/openstreetmap/josm/gui/widgets/SwingFileChooser.java
r7937 r18113 5 5 import java.io.File; 6 6 7 import javax.swing.ActionMap; 7 8 import javax.swing.JFileChooser; 8 9 import javax.swing.filechooser.FileFilter; … … 106 107 return jFileChooser.showSaveDialog(parent); 107 108 } 109 110 @Override 111 public ActionMap getActionMap() { 112 return jFileChooser.getActionMap(); 113 } 108 114 }
Note:
See TracChangeset
for help on using the changeset viewer.