Package tool.model.validation

Examples of tool.model.validation.ToolNameValidator


    IObservableValue attributeNameObserveValue = BeansObservables.observeValue(attribute, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    if (this.attribute instanceof ToolWindowAttribute){
      strategy.setAfterConvertValidator(new ToolNameValidatorWithBrackets(nameText));
    } else {
      strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    }
    bindingContext.bindValue(nameTextObserveTextObserveWidget, attributeNameObserveValue, strategy, null);
    //
    IObservableValue typeTextObserveTextObserveWidget = SWTObservables.observeText(typeText, SWT.Modify);
    IObservableValue attributeTypeObserveValue = BeansObservables.observeValue(attribute, "type");
View Full Code Here


    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(text, SWT.Modify);
    IObservableValue eventNameObserveValue = BeansObservables.observeValue(event, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(text));
    bindingContext.bindValue(textObserveTextObserveWidget, eventNameObserveValue, strategy, null);
    //
    IObservableValue buttonObserveSelectionObserveWidget = SWTObservables.observeSelection(button);
    IObservableValue eventPublicObserveValue = BeansObservables.observeValue(event, "public");
    bindingContext.bindValue(buttonObserveSelectionObserveWidget, eventPublicObserveValue, null, null);
View Full Code Here

    bindingContext.bindValue(btnLoadBalancedObserveSelectionObserveWidget, soLoadBalanceObserveValue, null, null);
    //
    IObservableValue soNameTextObserveTextObserveWidget = SWTObservables.observeText(soNameText, SWT.Modify);
    IObservableValue soToolNameObserveValue = BeansObservables.observeValue(so, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(soNameText));
    bindingContext.bindValue(soNameTextObserveTextObserveWidget, soToolNameObserveValue, strategy, null);
    //
    IObservableValue searchPathTextObserveTextObserveWidget = SWTObservables.observeText(searchPathText, SWT.Modify);
    IObservableValue soSearchPathObserveValue = BeansObservables.observeValue(so, "searchPath");
    bindingContext.bindValue(searchPathTextObserveTextObserveWidget, soSearchPathObserveValue, null, null);
View Full Code Here

    bindingContext.bindValue(textObserveTextObserveWidget, virtualAttributeSetExpressionObserveValue, null, null);
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue virtualAttributeNameObserveValue = BeansObservables.observeValue(virtualAttribute, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, virtualAttributeNameObserveValue, strategy, null);
    //
    return bindingContext;
  }
View Full Code Here

    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue nameTextObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue methodNameObserveValue = BeansObservables.observeValue(method, "name");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(this.nameText));
    bindingContext.bindValue(nameTextObserveTextObserveWidget, methodNameObserveValue, strategy, null);
    //
    IObservableValue returnTypeTextObserveTextObserveWidget = SWTObservables.observeText(returnTypeText, SWT.Modify);
    IObservableValue methodReturnTypeObserveValue = BeansObservables.observeValue(method, "returnType");
    bindingContext.bindValue(returnTypeTextObserveTextObserveWidget, methodReturnTypeObserveValue, null, null);
View Full Code Here

    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue classNameTextObserveTextObserveWidget = SWTObservables.observeText(classNameText, SWT.Modify);
    IObservableValue cdfNameObserveValue = BeansObservables.observeValue(cdf, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(classNameText));
    bindingContext.bindValue(classNameTextObserveTextObserveWidget, cdfNameObserveValue, strategy, null);
    //
    IObservableValue superClassTextObserveTextObserveWidget = SWTObservables.observeText(superClassText, SWT.FocusOut);
    IObservableValue cdfSuperClassObserveValue = BeansObservables.observeValue(cdf, "superClass");
    bindingContext.bindValue(superClassTextObserveTextObserveWidget, cdfSuperClassObserveValue, null, null);
View Full Code Here

    DataBindingContext bindingContext = new DataBindingContext();
    //
    IObservableValue textObserveTextObserveWidget = SWTObservables.observeText(nameText, SWT.Modify);
    IObservableValue constantNameObserveValue = BeansObservables.observeValue(constant, "toolName");
    UpdateValueStrategy strategy = new UpdateValueStrategy();
    strategy.setAfterConvertValidator(new ToolNameValidator(nameText));
    bindingContext.bindValue(textObserveTextObserveWidget, constantNameObserveValue, strategy, null);
    //
    IObservableValue text_1ObserveTextObserveWidget = SWTObservables.observeText(valueText, SWT.Modify);
    IObservableValue constantValueObserveValue = BeansObservables.observeValue(constant, "value");
    bindingContext.bindValue(text_1ObserveTextObserveWidget, constantValueObserveValue, null, null);
View Full Code Here

TOP

Related Classes of tool.model.validation.ToolNameValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.