Search in sources :

Example 1 with JSONTree2SchemaLinker

use of org.talend.repository.json.ui.wizards.view.JSONTree2SchemaLinker in project tdi-studio-se by Talend.

the class JSONFileOutputStep2Form method addFields.

@Override
protected void addFields() {
    mainSashFormComposite = new SashForm(this, SWT.HORIZONTAL | SWT.SMOOTH);
    mainSashFormComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
    mainSashFormComposite.setBackgroundMode(SWT.INHERIT_FORCE);
    addSchemaViewer(mainSashFormComposite, 300, 100);
    addJSONFileViewer(mainSashFormComposite, 400, 100);
    mainSashFormComposite.setWeights(new int[] { 40, 60 });
    linker = new JSONFileSchema2TreeLinker(mainSashFormComposite);
    linker.setForm(this);
    linker.init(schemaViewer.getTable(), JSONViewer);
    JSONTree2SchemaLinker oppositeLinker = new JSONTree2SchemaLinker(mainSashFormComposite);
    oppositeLinker.setConnection(getConnection());
    oppositeLinker.setDelegateLinker(linker);
    oppositeLinker.init(JSONViewer, schemaViewer);
}
Also used : SashForm(org.eclipse.swt.custom.SashForm) JSONFileSchema2TreeLinker(org.talend.repository.json.ui.wizards.view.JSONFileSchema2TreeLinker) GridData(org.eclipse.swt.layout.GridData) JSONTree2SchemaLinker(org.talend.repository.json.ui.wizards.view.JSONTree2SchemaLinker)

Aggregations

SashForm (org.eclipse.swt.custom.SashForm)1 GridData (org.eclipse.swt.layout.GridData)1 JSONFileSchema2TreeLinker (org.talend.repository.json.ui.wizards.view.JSONFileSchema2TreeLinker)1 JSONTree2SchemaLinker (org.talend.repository.json.ui.wizards.view.JSONTree2SchemaLinker)1