Search in sources :

Example 6 with LabelText

use of org.talend.commons.ui.swt.formtools.LabelText in project tdi-studio-se by Talend.

the class ConnectionFormComposite method removeListeners.

private void removeListeners() {
    repositoryCombo.removePostSelectionChangedListener(repositoryListener);
    nameText.removeModifyListener(standardTextListener);
    descriptionText.removeModifyListener(standardTextListener);
    userText.removeModifyListener(standardTextListener);
    passwordText.removeModifyListener(standardTextListener);
    workSpaceText.removeModifyListener(standardTextListener);
    for (IRepositoryFactory f : dynamicControls.keySet()) {
        for (LabelText control : dynamicControls.get(f).values()) {
            control.removeModifyListener(standardTextListener);
        }
    }
    for (IRepositoryFactory f : dynamicChoices.keySet()) {
        for (LabelledCombo control : dynamicChoices.get(f).values()) {
            control.getCombo().removeModifyListener(standardTextListener);
        }
    }
    deleteProjectsButton.removeSelectionListener(deleteProjectClickListener);
}
Also used : LabelledCombo(org.talend.commons.ui.swt.formtools.LabelledCombo) IRepositoryFactory(org.talend.core.repository.model.IRepositoryFactory) LabelText(org.talend.commons.ui.swt.formtools.LabelText)

Aggregations

LabelText (org.talend.commons.ui.swt.formtools.LabelText)6 LabelledCombo (org.talend.commons.ui.swt.formtools.LabelledCombo)5 IRepositoryFactory (org.talend.core.repository.model.IRepositoryFactory)4 DynamicChoiceBean (org.talend.core.repository.model.DynamicChoiceBean)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)1 Button (org.eclipse.swt.widgets.Button)1 Combo (org.eclipse.swt.widgets.Combo)1 ConnectionBean (org.talend.core.model.general.ConnectionBean)1 ILoginConnectionService (org.talend.core.repository.services.ILoginConnectionService)1 IBrandingService (org.talend.core.ui.branding.IBrandingService)1