Package org.freeplane.core.resources.components

Examples of org.freeplane.core.resources.components.IValidator


  private DecimalFormat defaultNumberFormat;
  private HashMap<String, DecimalFormat> numberFormatCache = new HashMap<String, DecimalFormat>();
    static private boolean firstError = true;

  public IValidator createValidator (){
      return new IValidator() {
      public ValidationResult validate(Properties properties) {
        final ValidationResult result = new ValidationResult();
        try {
                    createDateFormat(properties.getProperty(RESOURCES_DATE_FORMAT));
                    if (properties.getProperty(RESOURCES_DATE_FORMAT).isEmpty())
View Full Code Here


    private void addPropertiesToOptionPanel() {
        final URL preferences = this.getClass().getResource("preferences.xml");
        if (preferences == null)
            throw new RuntimeException("cannot open preferences");
        Controller.getCurrentController().addOptionValidator(new IValidator() {
            @Override
            public ValidationResult validate(Properties properties) {
                final ValidationResult result = new ValidationResult();
                final String readAccessString = properties
                    .getProperty(ScriptingPermissions.RESOURCES_EXECUTE_SCRIPTS_WITHOUT_READ_RESTRICTION);
View Full Code Here

TOP

Related Classes of org.freeplane.core.resources.components.IValidator

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.