public HTMLOutlineContentProvider(AbstractThemeableEditor editor) {
    addSubLanguage(ICSSConstants.CONTENT_TYPE_CSS, new CSSOutlineContentProvider());
    addSubLanguage(IJSConstants.CONTENT_TYPE_JS, new JSOutlineContentProvider());

    showTextNode = HTMLPreferenceUtil.getShowTextNodesInOutline();
    InstanceScope.INSTANCE
        .getNode(HTMLPlugin.PLUGIN_ID)
        .addPreferenceChangeListener(preferenceListener);
    fEditor = editor;
  }
 public void preferenceChange(PreferenceChangeEvent event) {
   if (IPreferenceConstants.HTML_OUTLINE_SHOW_TEXT_NODES.equals(event.getKey())) {
     showTextNode = HTMLPreferenceUtil.getShowTextNodesInOutline();
   }
 }