True if this Mode can edit this file (usually meaning that its extension matches one that is supported by the Mode).
(final File file)
| 729 | * its extension matches one that is supported by the Mode). |
| 730 | */ |
| 731 | public boolean canEdit(final File file) { |
| 732 | final int dot = file.getName().lastIndexOf('.'); |
| 733 | if (dot < 0) { |
| 734 | return false; |
| 735 | } |
| 736 | return validExtension(file.getName().substring(dot + 1)); |
| 737 | } |
| 738 | |
| 739 | |
| 740 | public boolean canEdit(Sketch sketch) { |
no test coverage detected