Examples of XMLEditor


Examples of org.apache.uima.taeconfigurator.editors.xml.XMLEditor

    // when the source is "initially" invalid
    if (sourceTextEditor != null) {
      return;
    }
    try {
      sourceTextEditor = new XMLEditor(cde);
      sourceIndex = cde.addPage(sourceTextEditor, cde.getEditorInput());
      cde.setPageTextSuper(sourceIndex, "Source");
    } catch (PartInitException e) {
      ErrorDialog.openError(cde.getSite().getShell(), "Error creating nested text editor", null, e
              .getStatus());
View Full Code Here

Examples of org.apache.uima.taeconfigurator.editors.xml.XMLEditor

      if (allPages || isExtResAndBindingsDescriptor()) {
        resourcesIndex = addPageAndSetTabTitle(resourcesPage = new ResourcesPage(this), Messages
                .getString("MultiPageEditor.resourcesTab")); //$NON-NLS-1$
      }

      sourceIndex = addPageAndSetTabTitle(sourceTextEditor = new XMLEditor(this), getEditorInput(),
              Messages.getString("MultiPageEditor.sourceTab")); //$NON-NLS-1$

    } catch (PartInitException e) {
      e.printStackTrace(); // TODO fix this
    }
View Full Code Here

Examples of org.jsynthlib.driver.Xmleditor

        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);
View Full Code Here

Examples of org.jsynthlib.driver.Xmleditor

    @Override
    public Xmleditor handlePatchEditor(Xmldriver driver, boolean editable,
            String editorName, List<PopupContainer> popups) {
        driver.setEditable(editable);
        Xmleditor editor = driver.addNewXmleditor();
        editor.setName(editorName);
        if (!popups.isEmpty()) {
            XmlPopups editorPopups = editor.addNewXmlPopups();
            for (PopupContainer popup : popups) {
                XmlPopup editorPopup = editorPopups.addNewXmlPopup();
                editorPopup.setTitle(popup.getTitle());
                editorPopup.setContent(popup.getContents());
            }
View Full Code Here

Examples of org.jsynthlib.driver.Xmleditor

        assertEquals("Check driver array " + device.getName(),
                driverArray.length, testedItems.size());
        for (Xmldriver driver : driverArray) {
            if (driver.getEditable()) {
                Set<Xmlparam> set = testedItems.get(driver);
                Xmleditor editor = driver.getXmleditor();
                Xmlparams params = editor.getXmlparams();
                if (params != null) {
                    Integer integer = editorParamsMap.get(editor);
                    assertNotNull(
                            "Check editor all params " + editor.getName(),
                            integer);
                    assertEquals(
                            "Check editor num all params " + editor.getName(),
                            editor.getNumparams(), integer.intValue());
                    Xmlparam[] paramArray = params.getXmlparamArray();
                    assertEquals("Check editor num params " + editor.getName(),
                            paramArray.length, set.size());
                }
            }
        }
    }
View Full Code Here

Examples of org.jsynthlib.driver.Xmleditor

                testedItems.containsKey(driver));
        testedItems.put(driver, new HashSet<Xmlparam>());
        assertEquals("Check " + driverName + " is editable",
                driver.getEditable(), editable);
        if (driver.getEditable()) {
            Xmleditor editor = driver.getXmleditor();
            assertEquals("Check " + driverName + " editor " + editorName,
                    editor.getName(), editorName.trim());
            XmlPopups editorPopups = editor.getXmlPopups();
            if (editorPopups == null) {
                assertTrue("Check " + driverName + " no popup",
                        popups.isEmpty());
            } else {
                XmlPopup[] editorPopupArray = editorPopups.getXmlPopupArray();
View Full Code Here

Examples of tk.eclipse.plugin.xmleditor.editors.XMLEditor

            variablePage = new DesignerVariableEditorPage(this);
            addPage(2, variablePage, getEditorInput());
            setPageText(2, Messages.getString("DesignerEditor.title.variables"));

            sourcePage = new XMLEditor();
            addPage(3, sourcePage, getEditorInput());
            setPageText(3, Messages.getString("DesignerEditor.title.source"));

            definition.validateDefinition(definitionFile);
        } catch (PartInitException e) {
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.