Delete association of htmledit.gif for the PHPUnitEditor
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / JavaConventions.java
index d82a30c..3e6575f 100644 (file)
@@ -169,30 +169,30 @@ public final class JavaConventions {
         *              object indicating what is wrong with the name
         * @since 2.0
         */
-       public static IStatus validateClassFileName(String name) {
-               if (name == null) {
-                       return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.nullName"), null); //$NON-NLS-1$
-               }
-               if (!net.sourceforge.phpdt.internal.compiler.util.Util.isClassFileName(name)) {
-                       return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.notClassFileName"), null); //$NON-NLS-1$
-               }
-               String identifier;
-               int index;
-               index = name.lastIndexOf('.');
-               if (index == -1) {
-                       return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.notClassFileName"), null); //$NON-NLS-1$
-               }
-               identifier = name.substring(0, index);
-               IStatus status = validateIdentifier(identifier);
-               if (!status.isOK()) {
-                       return status;
-               }
-               status = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
-               if (!status.isOK()) {
-                       return status;
-               }
-               return JavaModelStatus.VERIFIED_OK;
-       }
+//     public static IStatus validateClassFileName(String name) {
+//             if (name == null) {
+//                     return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.nullName"), null); //$NON-NLS-1$
+//             }
+//             if (!net.sourceforge.phpdt.internal.compiler.util.Util.isClassFileName(name)) {
+//                     return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.notClassFileName"), null); //$NON-NLS-1$
+//             }
+//             String identifier;
+//             int index;
+//             index = name.lastIndexOf('.');
+//             if (index == -1) {
+//                     return new Status(IStatus.ERROR, JavaCore.PLUGIN_ID, -1, Util.bind("convention.classFile.notClassFileName"), null); //$NON-NLS-1$
+//             }
+//             identifier = name.substring(0, index);
+//             IStatus status = validateIdentifier(identifier);
+//             if (!status.isOK()) {
+//                     return status;
+//             }
+//             status = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
+//             if (!status.isOK()) {
+//                     return status;
+//             }
+//             return JavaModelStatus.VERIFIED_OK;
+//     }
 
        /**
         * Validate the given field name.