public void run() { JavaUDIIndicatorParameter newItem = DomainHelper.createJavaUDIIndicatorParameter("key", "value"); // $NON-NLS-1$ //$NON-NLS-2$ content.add(newItem); viewer.refresh(); checkFieldsValue(); }
/* * (non-Javadoc) * * @see org.talend.dataprofiler.core.ui.wizard.indicator.forms.AbstractIndicatorForm#performFinish() */ @Override public boolean performFinish() { boolean isNull = content.isEmpty(); if (!isNull) { Domain indicatorValidDomain = parameters.getIndicatorValidDomain(); if (indicatorValidDomain == null) { indicatorValidDomain = DomainHelper.createDomain("JAVA_UDI_PARAMETERS"); // $NON-NLS-1$ parameters.setIndicatorValidDomain(indicatorValidDomain); } parameters.getIndicatorValidDomain().getJavaUDIIndicatorParameter().clear(); parameters.getIndicatorValidDomain().getJavaUDIIndicatorParameter().addAll(content); } return true; }