title: Eclipse 3.5.1 RCP Styled string not updating in package navigator
body: <p>I have a problem presumably with eclipse 3.5.1. I have a plugin that, besides other things, adds a string decoration to files that have been changed. Everything works fine in eclipse 3.7.1, but on the target application which stands on eclipse 3.5.1 the navigator does not display the styled string correctly.</p>
  
  <p>The code for string decorations is as follows (it also adds the file version, which also does not work on eclipse 3.5.1):</p>
  
  <pre><code>public class CustomLabelProvider extends ResourceExtensionLabelProvider implements
      org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider {
  
  @Override
  public StyledString getStyledText(Object element) {
  
      StyledString label = new StyledString();
  
      try {
          Set modifiedFiles =
                  CustomContentProvider.getModifiedSegments().get(
                          ((Resource) element).toString().substring(1));
          if ((modifiedFiles != null) &amp;&amp; (modifiedFiles.size() &gt; 0)) {
              label.append("&gt;", StyledString.DECORATIONS_STYLER);
          }
          label.append(getText(element));
          if (element instanceof ExtendedFile) {
              Integer fileVersion = ((ExtendedFile) element).getFileVersion();
              if (fileVersion != null) {
                  label.append("  ").append(fileVersion.toString(), StyledString.DECORATIONS_STYLER);
              }
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
      return label;
  }
  </code></pre>
  
  <p>A comparison between both eclipse versions:</p>
  
  <p><img src="https://i.stack.imgur.com/QFQ5e.png" alt="eclipse 3.5.1"></p>
  
  <p><img src="https://i.stack.imgur.com/Tu8rJ.png" alt="eclipse 3.7.1"></p>
  
  <p>Both eclipse 3.5.1 and 3.7.1 implement IStyledLabelProvider. The plugin starts in both eclipse versions, osgi lists it as ACTIVE, and there is some logging that I cut out, that works in both eclipse versions. What could be the reason for this behaviour?</p>
  
  <p><strong>UPDATE</strong>: The label provider plugin.xml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
  &lt;extension
          point="org.eclipse.ui.navigator.viewer"&gt;
        &lt;viewer
             viewerId="myApplication.NavigatorView"&gt;
        &lt;/viewer&gt;
  
        &lt;viewerContentBinding viewerId="myApplication.NavigatorView"&gt;
           &lt;includes&gt;                    
              &lt;contentExtension pattern="NavigatorLabelProvider.NavigatorContent"/&gt;
           &lt;/includes&gt;
        &lt;/viewerContentBinding&gt;
  &lt;/extension&gt;
  
  &lt;extension  
       point="org.eclipse.ui.navigator.navigatorContent"&gt;
  
        &lt;navigatorContent
             name="myNavigatorContent"            
             activeByDefault="true"
             contentProvider="labelprovider.CustomContentProvider"
              labelProvider="labelprovider.CustomLabelProvider"                                      
             id="NavigatorLabelProvider.NavigatorContent"&gt;        
                    &lt;enablement&gt;
                           &lt;or&gt;        
                              &lt;adapt type="org.eclipse.core.resources.IProject" /&gt;
                              &lt;instanceof
                                          value="org.eclipse.core.resources.IResource" /&gt;
                           &lt;/or&gt;
           &lt;/enablement&gt;
  
          &lt;commonSorter
               class="org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionSorter"
               id="org.eclipse.ui.navigator.resources.sorters.defaultSorter"&gt;
             &lt;parentExpression&gt;
                            &lt;or&gt;          
                              &lt;instanceof value="org.eclipse.core.resources.IResource" /&gt;
                           &lt;/or&gt;
                     &lt;/parentExpression&gt;
          &lt;/commonSorter&gt;
          &lt;dropAssistant
               class="org.eclipse.ui.navigator.resources.ResourceDropAdapterAssistant"
               id="org.eclipse.ui.navigator.resources.resourceDropAdapter"&gt;
             &lt;possibleDropTargets&gt;
                &lt;or&gt;
                   &lt;adapt type="org.eclipse.core.resources.IProject"/&gt;
                   &lt;adapt type="org.eclipse.core.resources.IFolder"/&gt;
                   &lt;adapt type="org.eclipse.core.resources.IFile"/&gt;
                &lt;/or&gt;
             &lt;/possibleDropTargets&gt;
          &lt;/dropAssistant&gt;        
  
          &lt;actionProvider
               class="org.eclipse.ui.internal.navigator.resources.actions.EditActionProvider"
               id="org.eclipse.ui.navigator.resources.actions.EditActions"/&gt;        
          &lt;actionProvider
               class="org.eclipse.ui.internal.navigator.resources.actions.RefactorActionProvider"
               id="org.eclipse.ui.navigator.resources.actions.RefactorActions"/&gt;        
  
                &lt;!-- Menu Shortcut Actions for Wizards --&gt;
                &lt;commonWizard
                                  type="new"
                                          wizardId="org.eclipse.ui.wizards.new.folder"&gt;
                                  &lt;enablement&gt;
                                          &lt;or&gt;
                                                  &lt;adapt type="org.eclipse.core.resources.IFile" /&gt;      
                                                  &lt;adapt type="org.eclipse.core.resources.IFolder" /&gt;
                                          &lt;adapt type="org.eclipse.core.resources.IProject" /&gt;
                                  &lt;adapt type="org.eclipse.core.resources.IWorkspaceRoot" /&gt;     
                                          &lt;/or&gt;
                           &lt;/enablement&gt;
                          &lt;/commonWizard&gt;  
                  &lt;commonWizard
                      type="new"
                      wizardId="org.eclipse.ui.wizards.new.file"&gt;
                                  &lt;enablement&gt;
                                          &lt;or&gt;
                                                  &lt;adapt type="org.eclipse.core.resources.IFile" /&gt;      
                                                  &lt;adapt type="org.eclipse.core.resources.IFolder" /&gt;
                                          &lt;adapt type="org.eclipse.core.resources.IProject" /&gt;
                                  &lt;adapt type="org.eclipse.core.resources.IWorkspaceRoot" /&gt;     
                                          &lt;/or&gt;
                           &lt;/enablement&gt;
                          &lt;/commonWizard&gt;                      
        &lt;/navigatorContent&gt;
     &lt;/extension&gt;
  &lt;/plugin&gt;
  </code></pre>