Search in sources :

Example 21 with Binding

use of org.eclipse.core.databinding.Binding in project portfolio by buchen.

the class SecurityTaxonomyPage method recreateTaxonomyPicker.

private void recreateTaxonomyPicker(final Composite taxonomyPicker) {
    // invalid bindings and error messages
    for (ValidationStatusProvider validator : validators) {
        if (validator instanceof Binding)
            bindings.getBindingContext().removeBinding((Binding) validator);
        else
            bindings.getBindingContext().removeValidationStatusProvider(validator);
    }
    validators.clear();
    Composite parent = taxonomyPicker.getParent();
    taxonomyPicker.dispose();
    createTaxonomyPicker(parent);
    parent.layout();
}
Also used : Binding(org.eclipse.core.databinding.Binding) Composite(org.eclipse.swt.widgets.Composite) ScrolledComposite(org.eclipse.swt.custom.ScrolledComposite) ValidationStatusProvider(org.eclipse.core.databinding.ValidationStatusProvider)

Aggregations

Binding (org.eclipse.core.databinding.Binding)21 Label (org.eclipse.swt.widgets.Label)14 RequiredControlDecorationUpdater (org.jboss.tools.openshift.internal.common.ui.databinding.RequiredControlDecorationUpdater)14 Button (org.eclipse.swt.widgets.Button)11 Text (org.eclipse.swt.widgets.Text)10 Composite (org.eclipse.swt.widgets.Composite)8 IObservableValue (org.eclipse.core.databinding.observable.value.IObservableValue)7 IStatus (org.eclipse.core.runtime.IStatus)6 IValidator (org.eclipse.core.databinding.validation.IValidator)4 ObservableListContentProvider (org.eclipse.jface.databinding.viewers.ObservableListContentProvider)4 ComboViewer (org.eclipse.jface.viewers.ComboViewer)4 ObservableTreeItem2ModelConverter (org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem2ModelConverter)4 MultiValidator (org.eclipse.core.databinding.validation.MultiValidator)3 StructuredViewer (org.eclipse.jface.viewers.StructuredViewer)3 Group (org.eclipse.swt.widgets.Group)3 IProject (com.openshift.restclient.model.IProject)2 ValidationStatusProvider (org.eclipse.core.databinding.ValidationStatusProvider)2 TextContentAdapter (org.eclipse.jface.fieldassist.TextContentAdapter)2 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2