Bug 88926 [Preferences] IDE should subclass FileEditorsPreferencePage
Currently the link to the content types editor page lives in Workbench despite the target living in IDE. This should be resolved for 3.1
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/NewContentTypeFileAssociationDialog.java
private String getText() {
        return textArea.getText();
    }
    
    private boolean isFileExtension() {
        return extButton.getSelection();
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
     */
    protected void configureShell(Shell newShell) {
        super.configureShell(newShell);
        newShell.setText("Add New File Association"); 
    }
    
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.Dialog#okPressed()
     */
    protected void okPressed() {
        try {
            contentType.addFileSpec(getText(), isFileExtension() ? IContentType.FILE_EXTENSION_SPEC : IContentType.FILE_NAME_SPEC);
        } catch (CoreException e) {
            e.printStackTrace();
        }
        super.okPressed();
    }
}