@param f File to be checked against this mode's accepted extensions. @return Whether or not the given file name features an extension supported by this mode.
(final File f)
| 943 | * @return Whether or not the given file name features an extension supported by this mode. |
| 944 | */ |
| 945 | public boolean canEdit(final File f) { |
| 946 | final int dot = f.getName().lastIndexOf('.'); |
| 947 | if (dot < 0) { |
| 948 | return false; |
| 949 | } |
| 950 | return validExtension(f.getName().substring(dot + 1)); |
| 951 | } |
| 952 | |
| 953 | /** |
| 954 | * Check this extension (no dots, please) against the list of valid |
no test coverage detected