本文整理匯總了Java中org.eclipse.jface.viewers.ILabelProviderListener.labelProviderChanged方法的典型用法代碼示例。如果您正苦於以下問題:Java ILabelProviderListener.labelProviderChanged方法的具體用法?Java ILabelProviderListener.labelProviderChanged怎麽用?Java ILabelProviderListener.labelProviderChanged使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.jface.viewers.ILabelProviderListener
的用法示例。
在下文中一共展示了ILabelProviderListener.labelProviderChanged方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setPreserveCase
import org.eclipse.jface.viewers.ILabelProviderListener; //導入方法依賴的package包/類
/**
* Sets the preserve case attribute
*
* @param preserveCase
* the preserve case attribute
*/
public void setPreserveCase(boolean preserveCase) {
this.preserveCase = preserveCase;
// Since this attribute affects how the labels are computed,
// notify all the listeners of the change.
LabelProviderChangedEvent event = new LabelProviderChangedEvent(this);
for (int i = 0, n = listeners.size(); i < n; i++) {
ILabelProviderListener ilpl = (ILabelProviderListener) listeners
.get(i);
ilpl.labelProviderChanged(event);
}
}
示例2: fireProviderChangedEvent
import org.eclipse.jface.viewers.ILabelProviderListener; //導入方法依賴的package包/類
/**
* Notifies listerners that the given resource'l decoration need to be updated
*
* @param resource a resource to refresh
*/
private void fireProviderChangedEvent(Object resource) {
Iterator<ILabelProviderListener> i = listeners.iterator();
LabelProviderChangedEvent event = new LabelProviderChangedEvent(this, resource);
while (i.hasNext()) {
ILabelProviderListener listener = (ILabelProviderListener) i.next();
listener.labelProviderChanged(event);
}
}