コード例 #1
0
 public FileTypeAssociation(
     String extention,
     String mimeType,
     String executable,
     String verb,
     String description,
     String iconPath) {
   this.extention = extention;
   this.mimeType = mimeType;
   this.executable = executable;
   this.verb = verb;
   Action action = new Action(verb, executable);
   association.addAction(action);
   association.addFileExtension(extention);
   association.setMimeType(mimeType);
   association.setName(description); // only used on unix
   association.setDescription(description);
   if (iconPath != null) // don't chance passing null to jdic
   association.setIconFileName(iconPath);
 }