Search in sources :

Example 1 with XmlEditorPanel

use of com.evolveum.midpoint.web.component.wizard.resource.component.XmlEditorPanel in project midpoint by Evolveum.

the class SchemaStep method createSchemaEditor.

private ITab createSchemaEditor() {
    return new AbstractTab(createStringModel("SchemaStep.xml")) {

        @Override
        public WebMarkupContainer getPanel(String panelId) {
            XmlEditorPanel xmlEditorPanel = new XmlEditorPanel(panelId, createXmlEditorModel());
            // quick fix: now changes from XmlEditorPanel are not saved anyhow
            //(e.g. by clicking Finish button in wizard). For now,
            //panel is made disabled for editing
            AceEditor aceEditor = (AceEditor) xmlEditorPanel.get(ID_ACE_EDITOR);
            aceEditor.setReadonly(true);
            return xmlEditorPanel;
        }
    };
}
Also used : XmlEditorPanel(com.evolveum.midpoint.web.component.wizard.resource.component.XmlEditorPanel) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) AceEditor(com.evolveum.midpoint.web.component.AceEditor)

Aggregations

AceEditor (com.evolveum.midpoint.web.component.AceEditor)1 XmlEditorPanel (com.evolveum.midpoint.web.component.wizard.resource.component.XmlEditorPanel)1 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)1