Search in sources :

Example 16 with IElement

use of org.talend.core.model.process.IElement in project tdi-studio-se by Talend.

the class ExpressionTest method createMockParameterWithNodeElement.

private ElementParameter createMockParameterWithNodeElement(String paraName) {
    ElementParameter param = mock(ElementParameter.class);
    IElement testElement = mock(INode.class);
    when(param.getName()).thenReturn(paraName);
    when(param.getElement()).thenReturn(testElement);
    when(param.getElement().getElementName()).thenReturn("testComponent");
    return param;
}
Also used : IElementParameter(org.talend.core.model.process.IElementParameter) TextElementParameter(org.talend.core.model.runprocess.shadow.TextElementParameter) IElement(org.talend.core.model.process.IElement)

Example 17 with IElement

use of org.talend.core.model.process.IElement in project tdi-studio-se by Talend.

the class ExpressionTest method createMockParameter.

private ElementParameter createMockParameter(String paraName, String value) {
    ElementParameter param = mock(ElementParameter.class);
    IElement testElement = mock(IElement.class);
    when(param.getName()).thenReturn(paraName);
    when(param.getValue()).thenReturn(value);
    when(param.getElement()).thenReturn(testElement);
    when(param.getElement().getElementName()).thenReturn("testComponent");
    return param;
}
Also used : IElementParameter(org.talend.core.model.process.IElementParameter) TextElementParameter(org.talend.core.model.runprocess.shadow.TextElementParameter) IElement(org.talend.core.model.process.IElement)

Aggregations

IElement (org.talend.core.model.process.IElement)17 IElementParameter (org.talend.core.model.process.IElementParameter)13 ArrayList (java.util.ArrayList)9 Map (java.util.Map)8 INode (org.talend.core.model.process.INode)8 List (java.util.List)6 IMetadataColumn (org.talend.core.model.metadata.IMetadataColumn)6 IMetadataTable (org.talend.core.model.metadata.IMetadataTable)6 IConnection (org.talend.core.model.process.IConnection)5 Node (org.talend.designer.core.ui.editor.nodes.Node)5 HashMap (java.util.HashMap)4 IProcess (org.talend.core.model.process.IProcess)4 CellEditor (org.eclipse.jface.viewers.CellEditor)2 ComboBoxCellEditor (org.eclipse.jface.viewers.ComboBoxCellEditor)2 CCombo (org.eclipse.swt.custom.CCombo)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 Test (org.junit.Test)2 CellEditorValueAdapter (org.talend.commons.ui.runtime.swt.tableviewer.behavior.CellEditorValueAdapter)2 ColumnCellModifier (org.talend.commons.ui.runtime.swt.tableviewer.behavior.ColumnCellModifier)2 TableViewerCreatorColumn (org.talend.commons.ui.swt.tableviewer.TableViewerCreatorColumn)2