use of org.talend.repository.services.utils.PortRepositoryObject in project tesb-studio-se by Talend.
the class CreateNewJobAction method repositoryChange.
private void repositoryChange(RepositoryNode nodeOperation, Node nodeProviderRequest) {
IElementParameter param = nodeProviderRequest.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
if (param != null) {
param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).setValue(EmfComponent.REPOSITORY);
ConnectionItem connectionItem = (ConnectionItem) nodeOperation.getObject().getProperty().getItem();
String serviceId = connectionItem.getProperty().getId();
String portId = ((PortRepositoryObject) nodeOperation.getParent().getObject()).getId();
String operationId = ((OperationRepositoryObject) nodeOperation.getObject()).getId();
ChangeValuesFromRepository command2 = new ChangeValuesFromRepository(nodeProviderRequest, connectionItem.getConnection(), param.getName() + ':' + EParameterName.REPOSITORY_PROPERTY_TYPE.getName(), //$NON-NLS-1$
serviceId + " - " + portId + " - " + operationId);
command2.execute();
}
}
use of org.talend.repository.services.utils.PortRepositoryObject in project tesb-studio-se by Talend.
the class ESBService method repositoryChange.
private void repositoryChange(RepositoryNode repNode, INode node, IProcess2 process) {
IElementParameter param = node.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
ConnectionItem connectionItem = (ConnectionItem) repNode.getObject().getProperty().getItem();
if (param != null) {
param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).setValue(EmfComponent.REPOSITORY);
param.getChildParameters().get(EParameterName.REPOSITORY_PROPERTY_TYPE.getName()).setValue("");
connectionItem.getProperty().getId();
((PortRepositoryObject) repNode.getParent().getObject()).getId();
((OperationRepositoryObject) repNode.getObject()).getId();
ChangeValuesFromRepository command2 = new ChangeValuesFromRepository(node, null, param.getName() + ":" + EParameterName.PROPERTY_TYPE.getName(), //$NON-NLS-1$
"BUILT_IN");
IEditorPart editor = process.getEditor();
if (editor == null) {
command2.execute();
} else {
((AbstractMultiPageTalendEditor) editor).getTalendEditor().getCommandStack().execute(command2);
}
}
}
use of org.talend.repository.services.utils.PortRepositoryObject in project tesb-studio-se by Talend.
the class AssignJobAction method repositoryChange.
private void repositoryChange(RepositoryNode repNode, INode node) {
IElementParameter param = node.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
ConnectionItem connectionItem = (ConnectionItem) repNode.getObject().getProperty().getItem();
if (param != null) {
param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).setValue(EmfComponent.REPOSITORY);
String serviceId = connectionItem.getProperty().getId();
String portId = ((PortRepositoryObject) repNode.getParent().getObject()).getId();
String operationId = ((OperationRepositoryObject) repNode.getObject()).getId();
ChangeValuesFromRepository command2 = new ChangeValuesFromRepository(node, connectionItem.getConnection(), param.getName() + ":" + EParameterName.REPOSITORY_PROPERTY_TYPE.getName(), //$NON-NLS-1$
serviceId + " - " + portId + " - " + operationId);
command2.execute();
}
}
Aggregations