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/ContentTypesPreferencePage.java
public void widgetSelected(SelectionEvent e) {
                try {
                    String text = charsetField.getText().trim();
                    if (text.length() == 0)
                        text = null;
                    getSelectedContentType().setDefaultCharset(text);
                    setButton.setEnabled(false);
                } catch (CoreException e1) {
                    ErrorDialog.openError(e.widget.getDisplay()
                            .getActiveShell(), null, null, e1.getStatus());
                }
            }
        });
        charsetField.addKeyListener(new KeyAdapter() {
            /*
             * (non-Javadoc)
             * 
             * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent)
             */
            public void keyReleased(KeyEvent e) {
                IContentType contentType = getSelectedContentType();
                String charset = contentType.getDefaultCharset();
                if (charset == null)
                    charset = ""; 
                setButton.setEnabled(!charset.equals(charsetField.getText()));
            }
        });
    }
    /**
     * @param composite