use of org.talend.repository.ftp.ui.wizards.forms.FTPForm in project tdi-studio-se by Talend.
the class FTPPage method createControl.
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
*/
@Override
public void createControl(Composite parent) {
ftpForm = new FTPForm(parent, connectionItem, existingNames, this);
ftpForm.setReadOnly(!isRepositoryObjectEditable);
AbstractForm.ICheckListener listener = new AbstractForm.ICheckListener() {
@Override
public void checkPerformed(final AbstractForm source) {
if (source.isStatusOnError()) {
FTPPage.this.setPageComplete(false);
setErrorMessage(source.getStatus());
} else {
FTPPage.this.setPageComplete(isRepositoryObjectEditable);
setErrorMessage(null);
setMessage(source.getStatus(), source.getStatusLevel());
}
}
};
ftpForm.setListener(listener);
setControl(ftpForm);
if (connectionItem.getProperty().getLabel() != null && !connectionItem.getProperty().getLabel().equals("")) {
//$NON-NLS-1$
ftpForm.checkFieldsValue();
}
}
Aggregations