Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.ILabelProviderListener.labelProviderChanged()


            final ILabelProviderListener l = (ILabelProviderListener) element;
            SafeRunner.run(new SafeRunnable() {

                @Override
                public void run() {
                    l.labelProviderChanged(event);
                }
            });
        }
    }
View Full Code Here


        Object[] array = listeners.getListeners();
        for (int i = 0; i < array.length; i++) {
            final ILabelProviderListener l = (ILabelProviderListener) array[i];
            Platform.run(new SafeRunnable() {
                public void run() {
                    l.labelProviderChanged(event);
                }
            });
        }
    }
View Full Code Here

          fControlDecoration.setImage(image);
        }
      };
      labelProvider.addListener(listener);
      //initialize control decoration:
      listener.labelProviderChanged(new LabelProviderChangedEvent(labelProvider));
    }
  }
 
  /**
   * Returns the default cue image.
View Full Code Here

    ILabelProviderListener[] listenerArray = (ILabelProviderListener[]) listeners
        .toArray(new ILabelProviderListener[listeners.size()]);
    for (int i = 0; i < listenerArray.length; i++) {
      ILabelProviderListener listener = listenerArray[i];
      try {
        listener.labelProviderChanged(event);
      } catch (Exception e) {
        SWTUtil.logException(e);
      }
    }
  }
View Full Code Here

    ILabelProviderListener[] listenerArray = (ILabelProviderListener[]) listeners
        .toArray(new ILabelProviderListener[listeners.size()]);
    for (int i = 0; i < listenerArray.length; i++) {
      ILabelProviderListener listener = listenerArray[i];
      try {
        listener.labelProviderChanged(event);
      } catch (Exception e) {
        Policy.getLog().log(
            new Status(IStatus.ERROR, Policy.JFACE_DATABINDING, e
                .getLocalizedMessage(), e));
      }
View Full Code Here

          fControlDecoration.setImage(image);
        }
      };
      labelProvider.addListener(listener);
      //initialize control decoration:
      listener.labelProviderChanged(new LabelProviderChangedEvent(labelProvider));
    }
  }

  /**
   * Returns the default cue image.
View Full Code Here

  public void refresh() {
    URLDecorator decorator = getURLDecorator();
    Iterator iterator = listeners.iterator();
    while (iterator.hasNext()) {
      ILabelProviderListener listener = (ILabelProviderListener) iterator.next();
      listener.labelProviderChanged(new LabelProviderChangedEvent(decorator));
    }
  }

}
View Full Code Here

    logger.debug("Being called to refrehs, I shall do my duty!");
    ConfigFileDecorator decorator = getConfigFileDecorator();
    Iterator<ILabelProviderListener> iterator = listeners.iterator();
    while (iterator.hasNext()) {
      ILabelProviderListener listener = (ILabelProviderListener) iterator.next();
      listener.labelProviderChanged(new LabelProviderChangedEvent(decorator));
    }
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.