properly delete .class files from applet folder, and error msg for

reference
This commit is contained in:
benfry
2003-09-23 19:18:16 +00:00
parent 0dd941c787
commit 143e0135f5
3 changed files with 36 additions and 61 deletions

View File

@@ -426,8 +426,17 @@ public class PdeBase extends Frame
public void actionPerformed(ActionEvent e) {
if (editor.textarea.isSelectionActive()) {
String text = editor.textarea.getSelectedText();
String referenceFile = (String) keywords.get(text);
showReference(referenceFile);
if (text.length() == 0) {
editor.message("First select a word to find in the reference.");
} else {
String referenceFile = (String) keywords.get(text);
if (referenceFile == null) {
editor.message("No reference available for \"" + text + "\"");
} else {
showReference(referenceFile);
}
}
}
}
});