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

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


    private InputDialog getModuleInput(final String name, final String mesg) {
        return new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                .getShell(), name, mesg, "", new IInputValidator() {

            public IValidator internalV = new ModuleNameValidator();

            @Override
            public String isValid(final String newText) {
                if (internalV.isValid(newText)) {
                    return null;
                }
                return "Please type a correct module name!";
            }
        });
View Full Code Here


        final InputDialog dialog = new InputDialog(PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getShell(), "Add user-defined refactoring",
                "Please type callback module name!", "", new IInputValidator() {

                    public IValidator internalV = new ModuleNameValidator();

                    @Override
                    public String isValid(final String newText) {
                        if (internalV.isValid(newText)) {
                            return null;
                        }
                        return "Please type a correct module name!";
                    }
                });
View Full Code Here

TOP

Related Classes of org.erlide.wrangler.refactoring.ui.validator.ModuleNameValidator

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.