Examples of FrameWrapper


Examples of org.jsynthlib.core.TitleFinder.FrameWrapper

        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,
                                            0, popupListener, false);
                            verifyBankEditorNames(bankEditor);
View Full Code Here

Examples of org.jsynthlib.core.TitleFinder.FrameWrapper

                testedCells.add(tableCell);
                LOG.info("Selecting patch on " + row + " row " + col + " col.");
                table.cell(tableCell).enterValue(patchName);
                table.cell(tableCell).requireValue(
                        "[\\w\\-]+\\s+" + patchName + "\\s*");
                FrameWrapper patchEditor = null;
                try {
                    patchEditor =
                            guiHandler.openPatchEditor(table, row, col,
                                    new PopupListener(), false);
                    if (patchEditor != null) {
View Full Code Here

Examples of org.jsynthlib.core.TitleFinder.FrameWrapper

        guiHandler.uninstallDevice(null);

        LOG.info("Installing " + manufacturer + "/" + deviceName);
        String infoText = guiHandler.installDevice(manufacturer, deviceName);

        FrameWrapper library = guiHandler.openLibrary();
        JTableFixture table = library.table();

        LOG.info("Receiving drivers for device " + deviceName);
        List<Class<? extends IDriver>> driversForDevice =
                guiHandler.getDriversForDevice(deviceName);

        boolean deviceCreated = false;
        Device device = null;
        try {
            for (Class<? extends IDriver> driverClass : driversForDevice) {
                StringBuilder popupBuilder = new StringBuilder();

                LOG.info("Using driver: " + driverClass.getName());
                PopupListener driverPopupListener = new PopupListener();
                guiHandler.newPatch(library, deviceName, driverClass,
                        driverPopupListener);
                List<PopupContainer> driverPopups =
                        driverPopupListener.getPopups();
                for (PopupContainer popup : driverPopups) {
                    popupBuilder.append(popup.getContents());
                    popupBuilder.append("\n\n--------------------------\n\n");
                }

                LOG.info("Opening patch editor");
                PopupListener editorPopupListener = new PopupListener();
                FrameWrapper patchEditor =
                        guiHandler.openPatchEditor(table, -1, 0,
                                editorPopupListener, true);
                List<PopupContainer> editorPopups =
                        editorPopupListener.getPopups();
                for (PopupContainer popup : editorPopups) {
                    popupBuilder.append(popup.getContents());
                    popupBuilder.append("\n\n--------------------------\n\n");
                }

                try {
                    if (patchEditor == null) {
                        // No editor at all showed up.
                        continue;
                    }

                    Container component = patchEditor.component();
                    if (component instanceof MDIFrameProxy) {
                        MDIFrameProxy proxy = (MDIFrameProxy) component;
                        JSLFrame jslFrame = proxy.getJSLFrame();
                        if (jslFrame instanceof PatchEditorFrame) {
                            PatchEditorFrame frame =
View Full Code Here

Examples of org.jsynthlib.core.TitleFinder.FrameWrapper

        for (int i = 0; i < contents.length; i++) {
            for (int j = 0; j < contents[0].length; j++) {
                LoadedBank loadedBank =
                        handleLoadedBank(patchFile, index, contents[i][j]);

                FrameWrapper bankPatchEditor =
                        guiHandler.openPatchEditor(table, i, j,
                                new IPopupListener() {
                                    @Override
                                    public void onPopupDetected(
                                            DialogFixture dialog) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.