Program: getName() : Program « org.eclipse.swt.program « Java by API






Program: getName()

/*
 * 
Adobe Acrobat Document
Adobe Acrobat Forms Document
Adobe Acrobat Rights Management Document
Adobe Acrobat XML Data Package File
Adobe Form Client Data File
Adobe Acrobat Forms Document
acwfile
AIFF Format Sound
Windows Media Audio/Video file
Windows Media Audio/Video playlist
AudioCD
AU Format Sound
Video Clip
MS-DOS Batch File
Briefcase
URL: CallTo Protocol
Security Catalog
CD Audio Track
Security Certificate
Digital ID File
Channel File
Compiled HTML Help file
CHROME
....
....
 * 
 * */
import org.eclipse.swt.program.Program;

public class MainClass {

  public static void main(String[] a) {

    // Put all the known programs into the list box
    Program[] programs = Program.getPrograms();
    for (int i = 0, n = programs.length; i < n; i++) {
      String name = programs[i].getName();
      System.out.println(name);
    }

  }
}


           
       








Related examples in the same category

1.Program: execute(String arg0)
2.Program: findProgram(String p)
3.Program: launch(String name)