String[] list = innerDir.list();
if(list != null) {
if(list.length >= 1) {
final File workFile = new File(innerDir.getAbsolutePath() + File.separator + list[0]);
if(SwingUtilities.isEventDispatchThread()) {
ITextComponent tc = open(workFile);
if(tc != null) {
try {
Integer tabId = new Integer(dirs[i]);
this.desktop.addTab(tabId, workFile.getName(), workFile.getAbsolutePath(), tc);
} catch (Throwable ex) {
}
}
} else {
final String tmp = dirs[i];
SwingUtilities.invokeLater(new Runnable() {
public void run() {
ITextComponent tc = open(workFile);
if(tc != null) {
try {
Integer tabId = new Integer(tmp);
Notepad.this.desktop.addTab(tabId, workFile.getName(), workFile.getAbsolutePath(), tc);
} catch (Throwable ex) {