.java added to tab names, changed name of prefs file

This commit is contained in:
benfry
2004-07-07 17:03:35 +00:00
parent 75750ffb8d
commit 0b76098fa6
3 changed files with 32 additions and 11 deletions

View File

@@ -212,8 +212,11 @@ public class PdeEditorHeader extends JComponent /*implements MouseListener*/ {
for (int i = 0; i < sketch.codeCount; i++) {
PdeCode code = sketch.code[i];
String codeName = (code.flavor == PdeSketch.PDE) ?
code.name : code.file.getName();
// if modified, add the li'l glyph next to the name
String text = " " + code.name + (code.modified ? " \u00A7" : " ");
String text = " " + codeName + (code.modified ? " \u00A7" : " ");
//System.out.println("code " + i + " " + text);
int textWidth = metrics.stringWidth(text);