fix for a minor "new tab" bug, along with some additional documentation

for methods requested by casey
This commit is contained in:
benfry
2005-05-02 23:32:05 +00:00
parent 61af3f577c
commit bf3ec90c72
6 changed files with 108 additions and 16 deletions

View File

@@ -320,7 +320,8 @@ public class Sketch {
newFlavor = PDE;
} else if (newName.endsWith(".java")) {
if (code[0] == current) {
// don't show this error if creating a new tab
if (renamingCode && (code[0] == current)) {
Base.showWarning("Problem with rename",
"The main .pde file cannot be .java file.\n" +
"(It may be time for your to graduate to a\n" +