Package org.eclipse.core.internal.resources

Examples of org.eclipse.core.internal.resources.LocationValidator.validateName()


                setErrorMessage("Name must not start with number");
                return false;
            }
            String fileName = textField + ".cls";
            String metaName = textField + ".cls-meta.xml";
            IStatus status = v.validateName(fileName, 0); //type didn't seem to matter, so just used 0
            if (status.getCode() != IStatus.OK) {
                setErrorMessage("Creating a file name of " + fileName + " is invalid because: " + status.getMessage());
                return false;
            }
            status = v.validateName(metaName, 0); //type didn't seem to matter, so just used 0
View Full Code Here


            IStatus status = v.validateName(fileName, 0); //type didn't seem to matter, so just used 0
            if (status.getCode() != IStatus.OK) {
                setErrorMessage("Creating a file name of " + fileName + " is invalid because: " + status.getMessage());
                return false;
            }
            status = v.validateName(metaName, 0); //type didn't seem to matter, so just used 0
            if (status.getCode() != IStatus.OK) {
                setErrorMessage("Creating a file name of" + metaName + "is invalid because: " + status.getMessage());
                return false;
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.