case 2:
List l = (List) Display.getDisplay(m).getCurrent();
int j = l.getSelectedIndex();
String file_or_path = l.getTitle() + l.getString(j);
Displayable f = null;
currentPath = file_or_path;
if (file_or_path.endsWith("/")) {
f = new DirectoryEditor(file_or_path);
f.addCommand(saveCommand);
} else if (file_or_path.endsWith(".mp3")) {
f = new FileEditor(file_or_path);
f.addCommand(saveCommand);
} else if (file_or_path.endsWith(".txt")) {
f = new VisorDeTexto(file_or_path);
}
Display.getDisplay(m).setCurrent(f);
f.setCommandListener(this);
f.addCommand(backCommand);
}
q = s;
}