public void dumpArchive(Archive archive) {
		dull = true;
		try {
			String name = null;
			if (archive == interfaces) {
				name = "interface";
			}
			if (archive == media) {
				name = "media";
			}
			DataUtils.writeFile(Constants.getExportDirectory() + name + ".jag", archive.recompile());
			JOptionPane.showMessageDialog(this, "Archive dumped successfully.");
		} catch (Exception e) {
			JOptionPane.showMessageDialog(this, "An error occurred while dumping the archive.");
			e.printStackTrace();
		}
		dull = false;
	}