Search in sources :

Example 6 with XmlExtractorBgRefresher

use of org.talend.metadata.managment.ui.wizard.metadata.xml.XmlExtractorBgRefresher in project tdi-studio-se by Talend.

the class JSONToXPathLinker method init.

public void init(Tree tree, ExtractionLoopWithJSONXPathEditorView loopTableEditorView, ExtractionFieldsWithJSONXPathEditorView fieldsTableEditorView, AbstractTreePopulator treePopulator) {
    xmlExtractorBgRefresher = new XmlExtractorBgRefresher(this);
    init(tree, new Table[] { loopTableEditorView.getExtendedTableViewer().getTableViewerCreator().getTable(), fieldsTableEditorView.getExtendedTableViewer().getTableViewerCreator().getTable() }, xmlExtractorBgRefresher);
    this.treePopulator = treePopulator;
    this.loopTableEditorView = loopTableEditorView;
    this.fieldsTableEditorView = fieldsTableEditorView;
    this.nodeRetriever = getXmlNodeRetriever(treePopulator.getFilePath(), getCurrentLoopXPath());
    TextCellEditorWithProposal xPathCellEditor = loopTableEditorView.getXPathCellEditor();
    xPathCellEditor.setContentProposalProvider(getJSONXPathProposalProvider(this, false));
    xPathCellEditor = fieldsTableEditorView.getXPathCellEditor();
    xPathCellEditor.setContentProposalProvider(getJSONXPathProposalProvider(this, true));
    init();
}
Also used : TextCellEditorWithProposal(org.talend.commons.ui.swt.proposal.TextCellEditorWithProposal) XmlExtractorBgRefresher(org.talend.metadata.managment.ui.wizard.metadata.xml.XmlExtractorBgRefresher)

Aggregations

XmlExtractorBgRefresher (org.talend.metadata.managment.ui.wizard.metadata.xml.XmlExtractorBgRefresher)6 TextCellEditorWithProposal (org.talend.commons.ui.swt.proposal.TextCellEditorWithProposal)1