editor.openMap();
String startLocation = TiledConfiguration.node("recent").get("file0", "");  JFileChooser ch = new JFileChooser(startLocation);  try { MapReader[] readers = editor.getPluginLoader().getReaders(); for(int i = 0; i < readers.length; i++) { ch.addChoosableFileFilter(new TiledFileFilter( readers[i].getFilter(), readers[i].getName())); } } catch (Exception e) { JOptionPane.showMessageDialog(editor.getAppFrame(), "Error while loading plugins: " + e.getLocalizedMessage(), OPEN_ERROR_TITLE, JOptionPane.ERROR_MESSAGE); e.printStackTrace(); }  ch.addChoosableFileFilter( new TiledFileFilter(TiledFileFilter.FILTER_TMX));  int ret = ch.showOpenDialog(editor.getAppFrame()); if (ret == JFileChooser.APPROVE_OPTION) { editor.loadMap(ch.getSelectedFile().getAbsolutePath()); }
    protected void doPerformAction() {        editor.openMap();    }