Search in sources :

Example 1 with FooterComposite

use of org.talend.designer.fileoutputxml.ui.footer.FooterComposite in project tdi-studio-se by Talend.

the class FOXUI method createContent.

/**
     * Comment method "createContent".
     * 
     * @param child
     */
private void createContent(Composite mainComposite) {
    header = new HeaderComposite(mainComposite, SWT.NONE);
    if (this.foxManager.isNoLoopInComponent()) {
        //$NON-NLS-1$
        header.updateStatus(Messages.getString("FOXUI.NoLoop"));
    }
    // 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 elem = externalNode.getElementParameter("PROPERTY_TYPE");
    if (elem != null) {
        String value = (String) elem.getValue();
        if (value != null && value.equals("REPOSITORY")) {
            isRepository = true;
        }
    }
    addSchemaViewer(xmlToSchemaSash, 300, 110);
    addXMLViewer(xmlToSchemaSash, 400, 110);
    xmlToSchemaSash.setWeights(new int[] { 40, 60 });
    linker = new Schema2XMLLinker(this.xmlToSchemaSash);
    linker.init(schemaViewer.getTable(), xmlViewer);
    linker.setManager(foxManager);
    initSchemaTable();
    footerComp = new FooterComposite(mainComposite, SWT.NONE, foxManager);
    xmlViewer.expandToLevel(3);
    linker.createLinks();
}
Also used : SashForm(org.eclipse.swt.custom.SashForm) Schema2XMLLinker(org.talend.designer.fileoutputxml.ui.edit.Schema2XMLLinker) FooterComposite(org.talend.designer.fileoutputxml.ui.footer.FooterComposite) HeaderComposite(org.talend.designer.fileoutputxml.ui.header.HeaderComposite) GridData(org.eclipse.swt.layout.GridData) IElementParameter(org.talend.core.model.process.IElementParameter)

Aggregations

SashForm (org.eclipse.swt.custom.SashForm)1 GridData (org.eclipse.swt.layout.GridData)1 IElementParameter (org.talend.core.model.process.IElementParameter)1 Schema2XMLLinker (org.talend.designer.fileoutputxml.ui.edit.Schema2XMLLinker)1 FooterComposite (org.talend.designer.fileoutputxml.ui.footer.FooterComposite)1 HeaderComposite (org.talend.designer.fileoutputxml.ui.header.HeaderComposite)1