Changeset 5874 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2013-04-16T19:57:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java
r4996 r5874 38 38 import org.openstreetmap.josm.tools.MultiMap; 39 39 import org.openstreetmap.josm.tools.Shortcut; 40 import org.openstreetmap.josm.tools.Utils; 40 41 import org.xml.sax.SAXException; 41 42 … … 48 49 public class OpenFileAction extends DiskAccessAction { 49 50 51 /** 52 * The {@link ExtensionFileFilter} matching .url files 53 */ 50 54 public static final ExtensionFileFilter urlFileFilter = new ExtensionFileFilter("url", "url", tr("URL Files") + " (*.url)"); 51 55 … … 57 61 Shortcut.registerShortcut("system:open", tr("File: {0}", tr("Open...")), KeyEvent.VK_O, Shortcut.CTRL)); 58 62 putValue("help", ht("/Action/Open")); 59 60 63 } 61 64 … … 296 299 } 297 300 } 298 reader.close();301 Utils.close(reader); 299 302 } catch (Exception e) { 300 303 System.err.println(e.getMessage()); … … 333 336 } 334 337 338 /** 339 * Replies the list of files that have been successfully opened. 340 * @return The list of files that have been successfully opened. 341 */ 335 342 public List<File> getSuccessfullyOpenedFiles() { 336 343 return successfullyOpenedFiles;
Note:
See TracChangeset
for help on using the changeset viewer.