File associations dialog

## File associations dialog |
previous | up | next

The file associations dialog is shown when clicking on the [Configure file association] button on the "File association" screen in the Installer features tab of the Installer step.

| The control buttons allow you to modify the contents of the list of file associations: Add file association (key `INS`) A new row with a blank file association is added. You have to fill in the extension of the file association without any leading *., as well as the description which is displayed as a checkbox to the user. If you have to internationalize the description of the file association for different media files, please use a user variable. In the launcher combo box you have to choose a launcher that should be invoked when a file with the configured extension is double clicked. In addition, you can choose icon files for Windows (*.ico) and Mac (*.icns), whether the file association should be initially selected or not and whether the association should be offered on Windows, Mac OS X or on both of them. Remove file association (key `DEL`) Removes the currently selected file association after a confirmation dialog. Also available from the context menu. Move file association up (key `ALT-UP`) Moves the selected file association up one position in the list. Also available from the context menu. Move file association down (key `ALT-DOWN`) Moves the selected file association down one position in the list. Also available from the context menu. In order to edit any column with text, please double-click on it. If you leave the dialog with the [Ok] button, your modifications are stored, if you hit [Cancel] or close the window, they are discarded.

- | On Mac OS X, the user might have to log off and on again so that the Finder can pick up the associations. Additionally, the file open events are not passed to the application via the main method, but via AppleEvents after the application startup. The application is started only once. You have to add listeners at the beginning of your application to Apple's framework classes to receive these events: Java 1.4 Also see the corresponding documentation on Apple's website. Example:
          Application.getApplication().addApplicationListener(new
          ApplicationAdapter() {
              public void handleOpenFile(ApplicationEvent evt) {
                System.out.println("opening " + evt.getFilename());
              }

              public void handleQuit (ApplicationEvent event) {
                event.setHandled (true);
              }
          });
- Java 1.3 Also see the corresponding documentation on Apple's website. Example:
          MRJApplicationUtils.registerOpenApplicationHandler(new
          MRJOpenDocumentHandler(){
              public void handleOpenFile(File fileName) {
                System.out.println("opening " + fileName);
              }
          });