Search in sources :

Example 1 with ExpressionProposalProvider

use of org.talend.designer.xmlmap.parts.directedit.proposal.ExpressionProposalProvider in project tdi-studio-se by Talend.

the class ExpressionCellEditor method createExpressionProposalProvider.

private ExpressionProposalProvider createExpressionProposalProvider() {
    IContentProposalProvider[] contentProposalProviders = new IContentProposalProvider[0];
    contentProposalProviders = new IContentProposalProvider[] { new TalendProposalProvider(mapperManager.getMapperComponent().getProcess()) };
    ExpressionProposalProvider provider = new ExpressionProposalProvider(mapperManager, contentProposalProviders);
    provider.init(source);
    return provider;
}
Also used : IContentProposalProvider(org.eclipse.jface.fieldassist.IContentProposalProvider) TalendProposalProvider(org.talend.core.ui.proposal.TalendProposalProvider) ExpressionProposalProvider(org.talend.designer.xmlmap.parts.directedit.proposal.ExpressionProposalProvider)

Example 2 with ExpressionProposalProvider

use of org.talend.designer.xmlmap.parts.directedit.proposal.ExpressionProposalProvider in project tdi-studio-se by Talend.

the class StyledTextHandler method setSelectedNodePart.

public void setSelectedNodePart(TableEntityPart selectedNode) {
    this.selectedNodePart = selectedNode;
    this.selectedNode = (AbstractNode) selectedNodePart.getModel();
    IContentProposalProvider[] contentProposalProviders = new IContentProposalProvider[0];
    contentProposalProviders = new IContentProposalProvider[] { new TalendProposalProvider(mapperManager.getMapperComponent().getProcess()) };
    ExpressionProposalProvider provider = new ExpressionProposalProvider(mapperManager, contentProposalProviders);
    provider.init(selectedNode);
    getContentProposalAdapter().setContentProposalProvider(provider);
}
Also used : IContentProposalProvider(org.eclipse.jface.fieldassist.IContentProposalProvider) TalendProposalProvider(org.talend.core.ui.proposal.TalendProposalProvider) ExpressionProposalProvider(org.talend.designer.xmlmap.parts.directedit.proposal.ExpressionProposalProvider)

Aggregations

IContentProposalProvider (org.eclipse.jface.fieldassist.IContentProposalProvider)2 TalendProposalProvider (org.talend.core.ui.proposal.TalendProposalProvider)2 ExpressionProposalProvider (org.talend.designer.xmlmap.parts.directedit.proposal.ExpressionProposalProvider)2