Search in sources :

Example 31 with EConnectionType

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

the class ConnectionCreateActionTest method testRun4.

private void testRun4() {
    EConnectionType ct = EConnectionType.TABLE;
    String connectionName = null;
    if (ct.hasConnectionCategory(IConnectionCategory.FLOW)) {
        connectionName = node.getProcess().generateUniqueConnectionName(Process.DEFAULT_ROW_CONNECTION_NAME);
        // 61
        assertEquals(connectionName, "row1");
    } else {
        connectionName = curNodeConnector.getLinkName();
    }
}
Also used : EConnectionType(org.talend.core.model.process.EConnectionType)

Example 32 with EConnectionType

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

the class ConnectionCreateActionTest method testRun3.

private void testRun3() {
    EConnectionType ct = EConnectionType.TABLE;
    String text = "TALEND.JOBS (Table)";
    //$NON-NLS-1$
    int end = text.lastIndexOf("(") - 1;
    int start = 0;
    String connectionName = text.substring(start, end);
    // 3
    assertEquals(connectionName, "TALEND.JOBS");
    IMetadataTable meta = node.getMetadataList().get(0);
    meta.setAttachedConnector(curNodeConnector.getName());
}
Also used : IMetadataTable(org.talend.core.model.metadata.IMetadataTable) EConnectionType(org.talend.core.model.process.EConnectionType)

Aggregations

EConnectionType (org.talend.core.model.process.EConnectionType)32 INode (org.talend.core.model.process.INode)9 INodeConnector (org.talend.core.model.process.INodeConnector)9 ArrayList (java.util.ArrayList)8 IConnection (org.talend.core.model.process.IConnection)7 Node (org.talend.designer.core.ui.editor.nodes.Node)7 Point (org.eclipse.draw2d.geometry.Point)5 IMetadataTable (org.talend.core.model.metadata.IMetadataTable)5 List (java.util.List)4 EConnectionCategory (org.talend.core.model.process.EConnectionCategory)4 Dimension (org.eclipse.draw2d.geometry.Dimension)3 Rectangle (org.eclipse.draw2d.geometry.Rectangle)3 ConnectionType (org.talend.designer.core.model.utils.emf.talendfile.ConnectionType)3 ProcessType (org.talend.designer.core.model.utils.emf.talendfile.ProcessType)3 MalformedPatternException (org.apache.oro.text.regex.MalformedPatternException)2 PointList (org.eclipse.draw2d.geometry.PointList)2 CreateConnectionRequest (org.eclipse.gef.requests.CreateConnectionRequest)2 IComponentConversion (org.talend.core.model.components.conversions.IComponentConversion)2 IComponentFilter (org.talend.core.model.components.filters.IComponentFilter)2 HL7FileNode (org.talend.core.model.metadata.builder.connection.HL7FileNode)2