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);
}
Aggregations