import org.eclipse.swt.program.Program;
public class MainClass {
public static void main(String[] args) {
String[] extensions = Program.getExtensions();
for (String s : extensions) {
Program program = Program.findProgram(s);
if(program != null){
System.out.println(s+ ":"+program.getName());
}
}
}
}