# Context-Sensitive Help UI Implementation

Java code examples of dynamic help context implementation in a view and a dialog, with context abstraction, are from the Eclipse Data Tools Platform (DTP) 1.6 source code.

- View Implementation Example
  The DataSourceExplorerView (in org.eclipse.datatools.connectivity.ui.dse) first implements the org.eclipse.help.IContextProvider interface, and then it creates an instance of the org.eclipse.datatools.help.ContextProviderDelegate.
- Dialog Implementation Example
  Dialogs must set the help context in the createDialogArea method (to provide context-sensitive help for the dialog itself).
- helpKey Constants Interface Class
  To reference the externalized help context IDs, which are defined in a ResourceBundle properties file, UI components must implement an interface class to declare the abstract helpKey constants.