Search in sources :

Example 1 with SchemaXMLLinker

use of org.talend.designer.hl7.ui.edit.SchemaXMLLinker in project tdi-studio-se by Talend.

the class HL7OutputUI method createContent.

/**
     * Comment method "createContent".
     *
     * @param child
     */
private void createContent(Composite mainComposite) {
    // this.isRepository);
    if (this.hl7Manager.isRepetable()) {
    // header.updateStatus("");
    }
    // Splitter
    xmlToSchemaSash = new SashForm(mainComposite, SWT.HORIZONTAL | SWT.SMOOTH);
    xmlToSchemaSash.setLayoutData(new GridData(GridData.FILL_BOTH));
    xmlToSchemaSash.setBackgroundMode(SWT.INHERIT_FORCE);
    canModify = externalNode.getProcess().isReadOnly();
    if (externalNode.getOriginalNode().getJobletNode() != null) {
        canModify = externalNode.getOriginalNode().isReadOnly();
    }
    IElementParameter propertyParam = externalNode.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
    if (propertyParam != null) {
        isRespo = propertyParam.getValue().equals("REPOSITORY");
    }
    addSchemaViewer(xmlToSchemaSash, 300, 110);
    addXMLViewer(xmlToSchemaSash, 400, 110);
    xmlToSchemaSash.setWeights(new int[] { 40, 60 });
    linker = new SchemaXMLLinker(this.xmlToSchemaSash);
    linker.init(schemaViewer.getTable(), xmlViewer);
    linker.setManager(hl7Manager);
    initSchemaTable();
    new FooterComposite(mainComposite, SWT.NONE, hl7Manager);
    redrawLinkers();
}
Also used : SashForm(org.eclipse.swt.custom.SashForm) FooterComposite(org.talend.designer.hl7.ui.footer.FooterComposite) GridData(org.eclipse.swt.layout.GridData) IElementParameter(org.talend.core.model.process.IElementParameter) SchemaXMLLinker(org.talend.designer.hl7.ui.edit.SchemaXMLLinker)

Aggregations

SashForm (org.eclipse.swt.custom.SashForm)1 GridData (org.eclipse.swt.layout.GridData)1 IElementParameter (org.talend.core.model.process.IElementParameter)1 SchemaXMLLinker (org.talend.designer.hl7.ui.edit.SchemaXMLLinker)1 FooterComposite (org.talend.designer.hl7.ui.footer.FooterComposite)1