/* (non-Javadoc)
   * Method declared on IContentProvider.
   */
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    super.inputChanged(viewer, oldInput, newInput);

    if (newInput instanceof Collection) {
      // Get a template object from the collection
      Collection col = (Collection) newInput;
      if (!col.isEmpty()) newInput = col.iterator().next();
      else newInput = null;
    }
    fInput = newInput;
  }
 /* (non-Javadoc)
  * Method declared on IContentProvider.
  */
 public void dispose() {
   super.dispose();
   JavaScriptCore.removeElementChangedListener(this);
 }