Extensions which wish to add preference items to BlueJ's Tools/Preferences/Extensions
panel should register an instance of PreferenceGenerator with the BlueJ proxy object.
Request the editor to replace the text between beginning and end with the given newText
If begin and end refer to the same location, the text is inserted.