((PatchBasket) JSLDesktop.getSelectedFrame()).ExportPatch(file);
((PatchBasket) JSLDesktop.getSelectedFrame()).exportPatch(file);
        public void actionPerformed(ActionEvent e) {            CompatibleFileDialog fc3 = new CompatibleFileDialog();            FileFilter type1 = new ExtensionFilter("Sysex Files (*.syx)", ".syx");            fc3.addChoosableFileFilter(type1);            fc3.setFileFilter(type1);            fc3.setCurrentDirectory(new File (appConfig.getSysexPath()));            if (fc3.showSaveDialog(PatchEdit.getInstance()) != JFileChooser.APPROVE_OPTION)		return;	    File file = fc3.getSelectedFile();	    try {		if (JSLDesktop.getSelectedFrame() == null) {		    ErrorMsg.reportError("Error",					 "Patch to export must be hilighted\n"					 + "in the currently focuses Library");		} else {		    if (!file.getName().toUpperCase().endsWith(".SYX"))			file = new File(file.getPath() + ".syx");		    if (file.exists())			if (JOptionPane.showConfirmDialog(null,							  "Are you sure?",							  "File Exists",							  JOptionPane.YES_NO_OPTION) == JOptionPane.NO_OPTION)			    return;		    ((PatchBasket) JSLDesktop.getSelectedFrame()).ExportPatch(file);		}	    } catch (IOException ex) {		ErrorMsg.reportError("Error", "Unable to Save Exported Patch", ex);	    }	}