use of org.talend.daikon.properties.presentation.Form in project tdi-studio-se by Talend.
the class TestProperties method setupLayout.
@Override
public void setupLayout() {
super.setupLayout();
Form mainForm = Form.create(this, Form.MAIN);
mainForm.addRow(userId);
mainForm.addRow(nestedProps.getForm(Form.MAIN));
mainForm.addRow(contactProps.getForm(Form.MAIN));
Form refForm = Form.create(this, Form.REFERENCE);
Widget compListWidget = widget(referencePros).setWidgetType(Widget.COMPONENT_REFERENCE_WIDGET_TYPE);
refForm.addRow(compListWidget);
refForm.addRow(mainForm);
}
use of org.talend.daikon.properties.presentation.Form in project tdi-studio-se by Talend.
the class RepositoryUpdateTest method testRepositoryResetParams.
@Test
public void testRepositoryResetParams() throws PersistenceException {
//$NON-NLS-1$
String id = "testId";
try {
//$NON-NLS-1$ //$NON-NLS-2$
IComponent component = ComponentsFactoryProvider.getInstance().get("tSalesforceInput", "DI");
Node node = new Node(component, new Process(new FakePropertyImpl()));
GenericConnection connection = (GenericConnection) createBasicConnection(id).getConnection();
setupPropertiesWithoutProxy(id);
updateNode(id, node, connection);
//$NON-NLS-1$ //$NON-NLS-2$
testRepositoryValue(node, "connection.userPassword.userId", "\"myUser\"");
IElementParameter param = node.getElementParameter("connection.userPassword.userId");
assertTrue(param.isRepositoryValueUsed());
assertNotNull(param.getRepositoryValue());
Form form = node.getComponentProperties().getForm(Form.MAIN);
List<ElementParameter> parameters = new ArrayList<>();
parameters = ComponentsUtils.getParametersFromForm(node, false, EComponentCategory.BASIC, node.getComponentProperties(), form);
node.setElementParameters(parameters);
param = node.getElementParameter("connection.userPassword.userId");
assertTrue(param.isRepositoryValueUsed());
assertNotNull(param.getRepositoryValue());
} finally {
IRepositoryViewObject object = ProxyRepositoryFactory.getInstance().getLastVersion(id);
if (object != null) {
ProxyRepositoryFactory.getInstance().deleteObjectPhysical(object);
}
}
}
use of org.talend.daikon.properties.presentation.Form in project tdi-studio-se by Talend.
the class SchemaProperties method setupLayout.
@Override
public void setupLayout() {
super.setupLayout();
//$NON-NLS-1$
Form schemaForm = Form.create(this, Form.MAIN);
schemaForm.addRow(widget(schema).setWidgetType(Widget.SCHEMA_EDITOR_WIDGET_TYPE));
//$NON-NLS-1$
Form schemaRefForm = Form.create(this, Form.REFERENCE);
schemaRefForm.addRow(widget(schema).setWidgetType(Widget.SCHEMA_REFERENCE_WIDGET_TYPE));
}
use of org.talend.daikon.properties.presentation.Form in project tdi-studio-se by Talend.
the class TestProperties method setupLayout.
@Override
public void setupLayout() {
super.setupLayout();
Form form = Form.create(this, Form.MAIN);
form.addRow(name);
form.addRow(userId);
form.addRow(nestedProps.getForm(Form.MAIN));
}
Aggregations