Project: JDT
Bug 93162 [api] [open type] Require ability to extend the Type selection mechanism
Reported: 2005-04-28 15:29:34 | Status: closed fixed

The Visual Editor for Java has a ChooseBean dialog which directly extends the internal TypeSelectionDialog2. The ChooseBean dialog is used during UI designing to select a 'bean' from the existing 'types', and drop it onto the designing surface (like adding buttons to shells etc.) Optionally we have a text field to let the user say what he wants the bean to be named as, like 'okButton', 'cancelButton' etc. Currently we have to extend the internal TypeSelectionDialog2 dialog to reap the benefits of the caching of types, the jobs which do searches in the background etc. Since we dont want to rely on internals, we would like to have a public mechanism by which we could make use of all the efficient internals of the Type selection process. Also required is ways by which we could control the contents shown in the list of types - like the label provider, image provider, filter for classes, selection notification etc. Implementaion wise, the person owning the dialog could pass in the composite where JDT can house the type selection text and list, or the other way round. This would be a great for us in effectively making resue of the efficient type selection process.

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfo.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/TypeInfoFilter.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeExceptionsControl.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/MoveMembersWizard.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaUIMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OpenTypeSelectionDialog2.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeInfoViewer.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionComponent.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionDialog2.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/JavaUI.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/dialogs/ITypeInfoFilterExtension.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/dialogs/ITypeInfoImageProvider.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/dialogs/ITypeInfoRequestor.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/dialogs/ITypeSelectionComponent.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/dialogs/TypeSelectionExtension.java