Package org.erlide.wrangler.refactoring.ui.validator

Examples of org.erlide.wrangler.refactoring.ui.validator.IValidator


    }

    @Override
    protected void validateInput() {
        final IValidator v = new VariableNameValidator();
        if (!v.isValid(newParameterName.getText())) {
            setErrorMessage("New parameter name must be a valid variable name!");
        } else {
            setErrorMessage(null);
        }
View Full Code Here


                        .setUserInput(selectionList.getText());
                setPageComplete(true);
            }
        });

        final IValidator validator = new AtomValidator();

        selectionList.addModifyListener(new ModifyListener() {

            @Override
            public void modifyText(final ModifyEvent e) {
                if (validator.isValid(selectionList.getText())) {
                    ((SimpleWranglerRefactoring) getRefactoring())
                            .setUserInput(selectionList.getText());
                    setErrorMessage(null);
                    setPageComplete(true);
                } else {
View Full Code Here

        setControl(composite);
    }

    @Override
    protected boolean isInputValid() {
        final IValidator theValidator = new AtomValidator();
        boolean valid = theValidator.isValid(recordName.getText());

        final ArrayList<String> fn = new ArrayList<String>();
        for (final Text t : fieldNames) {
            valid = valid && theValidator.isValid(t.getText());
            fn.add(t.getText());
            if (!valid) {
                break;
            }
        }
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.ui.validator.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.