Package org.eclipse.jdt.ui.dialogs
Class TypeSelectionExtension
java.lang.Object
org.eclipse.jdt.ui.dialogs.TypeSelectionExtension
The class provides API to extend type selection dialogs like the
open type dialog.
The class should be subclassed by clients wishing to extend the type selection dialog.
- Since:
- 3.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ControlcreateContentArea(org.eclipse.swt.widgets.Composite parent) Creates the content area which the extensions contributes to the type selection dialog.Returns the filter extension ornullif no additional filtering is required.Returns an image provider ornullif the standard images should be used.org.eclipse.ui.dialogs.ISelectionStatusValidatorReturns the selection validator ornullif selection validation is not required.final ITypeSelectionComponentReturns the type selection dialog ornullif the extension has not been initialized yet.final voidinitialize(ITypeSelectionComponent component) Initializes the type dialog extension with the given type dialog
-
Constructor Details
-
TypeSelectionExtension
public TypeSelectionExtension()
-
-
Method Details
-
initialize
Initializes the type dialog extension with the given type dialog- Parameters:
component- the type dialog hosting this extension
-
getTypeSelectionComponent
Returns the type selection dialog ornullif the extension has not been initialized yet.- Returns:
- the type selection dialog or
null
-
createContentArea
public org.eclipse.swt.widgets.Control createContentArea(org.eclipse.swt.widgets.Composite parent) Creates the content area which the extensions contributes to the type selection dialog. The area will be presented between the table showing the list of types and the optional status line.- Parameters:
parent- the parent of the additional content area- Returns:
- the additional content area or
nullif no additional content area is required
-
getFilterExtension
Returns the filter extension ornullif no additional filtering is required.- Returns:
- the additional filter extension
-
getSelectionValidator
public org.eclipse.ui.dialogs.ISelectionStatusValidator getSelectionValidator()Returns the selection validator ornullif selection validation is not required. The elements passed to the selection validator are of typeIType.- Returns:
- the selection validator or
null
-
getImageProvider
Returns an image provider ornullif the standard images should be used.- Returns:
- the image provider
-