java - Early image binding issue for treeviewer -


i have treeviewer in project explorer @ perspective level. want have children item icons under treeviewer changes per condition. may change item icon per created, resolved image path @ imageregistry level , got condition when tree item created.

may have listener or property change handler change icon whenever needed.

like this:

  public void addpropertychangelistener(propertychangelistener        listener) {     // changing    } 

in property change listener should identify element(s) need have icons updated , call treeviewer.update() method elements. don't make decision @ point image display.

inside labelprovider.getimage() method should check element , conditions retrieve correct image imageregistry.


Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -