Search in sources :

Example 1 with FTPForm

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();
    }
}
Also used : FTPForm(org.talend.repository.ftp.ui.wizards.forms.FTPForm) AbstractForm(org.talend.metadata.managment.ui.wizard.AbstractForm)

Aggregations

AbstractForm (org.talend.metadata.managment.ui.wizard.AbstractForm)1 FTPForm (org.talend.repository.ftp.ui.wizards.forms.FTPForm)1