findJavaFileWithName(javaFileName, awlFileName,
rootDirectories[index], components);
}
if (!components.isEmpty()) {
// open the first one by default
VirtualFile javaFile = (VirtualFile)components.firstElement();
OpenFileDescriptor fd = new OpenFileDescriptor(project,javaFile);
Editor newEditor = FileEditorManager.getInstance(project).
openTextEditor(fd,true);
if (newEditor == null) {
showError("Can't open editor", project);