Package org.objectstyle.wolips.bindings.wod

Examples of org.objectstyle.wolips.bindings.wod.BindingValidationRule


    tagShortcuts.add(new TagShortcut("link", "WOHyperlink"));
    tagShortcuts.add(new TagShortcut("actionURL", "WOActionURL"));
    prefs.setDefault(PreferenceConstants.TAG_SHORTCUTS_KEY, TagShortcut.toPreferenceString(tagShortcuts));

    List<BindingValidationRule> validationRules = new ArrayList<BindingValidationRule>();
    validationRules.add(new BindingValidationRule(".*", "^session\\.localizer\\..*"));
    validationRules.add(new BindingValidationRule(".*", "^d2wContext\\..*"));
    validationRules.add(new BindingValidationRule(".*", "^localContext\\..*"));
    validationRules.add(new BindingValidationRule(".*", "^localizer\\..*"));
    validationRules.add(new BindingValidationRule(".*", "^nonCachingContext\\..*"));
    prefs.setDefault(PreferenceConstants.BINDING_VALIDATION_RULES_KEY, BindingValidationRule.toPreferenceString(validationRules));

    prefs.setDefault(PreferenceConstants.USE_INLINE_BINDINGS_KEY, false);

    prefs.setDefault(PreferenceConstants.VALIDATE_TEMPLATES_KEY, true);
View Full Code Here


        return null;
      }

      @Override
      protected void doEdit(Object obj) {
        BindingValidationRule bindingValidationRule = (BindingValidationRule) obj;
        BindingValidationRuleDialog dialog = new BindingValidationRuleDialog(getShell(), bindingValidationRule);
        if (dialog.open() == Window.OK) {
          BindingValidationRule newElement = dialog.getBindingValidationRule();
          bindingValidationRule.setTypeRegex(newElement.getTypeRegex());
          bindingValidationRule.setValidBindingRegex(newElement.getValidBindingRegex());
        }
      }

      @Override
      protected ITableLabelProvider createLabelProvider() {
View Full Code Here

        return;
      }

      String typeRegex = _typeRegex.getText();
      String validBindingRegex = _validBindingRegex.getText();
      _bindingValidationRule = new BindingValidationRule(typeRegex, validBindingRegex);

      super.okPressed();
    }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.bindings.wod.BindingValidationRule

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.