Toolkit.getDefaultToolkit().beep();
return;
}
try {
DataObject dob = DataObject.find(file);
EditorCookie ed = dob.getLookup().lookup(EditorCookie.class);
if (ed != null && file == dob.getPrimaryFile()) {
if (lineNum == -1) {
ed.open();
} else {
ed.openDocument();
try {
Line l = ed.getLineSet().getOriginal(lineNum - 1);
if (! l.isDeleted()) {
l.show(Line.ShowOpenType.REUSE, Line.ShowVisibilityType.FOCUS);
}
} catch (IndexOutOfBoundsException ioobe) {
// Probably harmless. Bogus line number.
ed.open();
}
}
// attachAllInFile(ed, this);
} else {
Toolkit.getDefaultToolkit().beep();