editor.setOpenMode(EditorDescriptor.OPEN_EXTERNAL);
editor.setProgram(programs[i]);
// determine the program icon this editor would need (do not let it
// be cached in the workbench registry)
ImageDescriptor desc = new ExternalProgramImageDescriptor(
programs[i]);
editor.setImageDescriptor(desc);
externalEditors.add(editor);
}