guiHandler.uninstallDevice(null);
PopupListener popupListener = new PopupListener();
XmldeviceDocument deviceDocument =
XmldeviceDocument.Factory.parse(outputFile);
Xmldevice device = deviceDocument.getXmldevice();
guiHandler.installDevice(device.getManufacturer(), device.getName());
FrameWrapper library = guiHandler.openLibrary();
try {
Xmldriver[] xmldriverArray = device.getXmldrivers().getXmldriverArray();
for (Xmldriver xmldriver : xmldriverArray) {
if (xmldriver.getEditable()) {
Xmleditor xmleditor = xmldriver.getXmleditor();
Xmlpatches xmlpatches = xmleditor.getXmlpatches();
if (xmlpatches != null) {
// Bank editor
Class<?> driverClass = Class.forName(xmldriver.getName());
guiHandler.newPatch(library, device.getName(), driverClass,
popupListener);
FrameWrapper bankEditor = null;
try {
bankEditor =
guiHandler.openPatchEditor(library.table(), -1,