Ejemplo n.º 1
0
 @Override
 public void notifyChanged(final Notification notification) {
   if (fViewer != null
       && fViewer.getControl() != null
       && !fViewer.getControl().isDisposed()
       && notification instanceof IViewerNotification) {
     final IViewerNotification viewerNotification = (IViewerNotification) notification;
     if (viewerNotification.isLabelUpdate()) {
       if (fViewerRefresh == null) {
         fViewerRefresh = new AdapterFactoryContentProvider.ViewerRefresh(fViewer);
       }
       if (fViewerRefresh.addNotification(viewerNotification)) {
         fViewer.getControl().getDisplay().asyncExec(fViewerRefresh);
       }
     }
   }
   super.notifyChanged(notification);
 }