Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.ui.dialogs
Class TypeSelectionExtension

java.lang.Object
  extended by 
org.eclipse.jdt.ui.dialogs.TypeSelectionExtension

public abstract class TypeSelectionExtension
extends Object

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:
JavaUI.createTypeDialog(org.eclipse.swt.widgets.Shell, org.eclipse.jface.operation.IRunnableContext, org.eclipse.jdt.core.search.IJavaSearchScope, int, boolean, String, TypeSelectionExtension)

Constructor Summary
TypeSelectionExtension ()
           
 
Method Summary
  Control createContentArea ( Composite parent)
          Creates the content area which the extensions contributes to the type selection dialog.
  ITypeInfoFilterExtension getFilterExtension ()
          Returns the filter extension or null if no additional filtering is required.
  ITypeInfoImageProvider getImageProvider ()
          Returns an image provider or null if the standard images should be used.
  ISelectionStatusValidator getSelectionValidator ()
          Returns the selection validator or null if selection validation is not required.
  ITypeSelectionComponent getTypeSelectionComponent ()
          Returns the type selection dialog or null if the extension has not been initialized yet.
 void initialize ( ITypeSelectionComponent component)
          Initializes the type dialog extension with the given type dialog
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeSelectionExtension

public TypeSelectionExtension()
Method Detail

initialize

public final void initialize(
ITypeSelectionComponent component)
Initializes the type dialog extension with the given type dialog

Parameters:
component - the type dialog hosting this extension

getTypeSelectionComponent

public final 
ITypeSelectionComponent getTypeSelectionComponent()
Returns the type selection dialog or null if the extension has not been initialized yet.

Returns:
the type selection dialog or null

createContentArea

public 
Control createContentArea(
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 null if no additional content area is required

getFilterExtension

public 
ITypeInfoFilterExtension getFilterExtension()
Returns the filter extension or null if no additional filtering is required.

Returns:
the additional filter extension

getSelectionValidator

public 
ISelectionStatusValidator getSelectionValidator()
Returns the selection validator or null if selection validation is not required. The elements passed to the selection validator are of type IType.

Returns:
the selection validator or null

getImageProvider

public 
ITypeInfoImageProvider getImageProvider()
Returns an image provider or null if the standard images should be used.

Returns:
the image provider

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire