/** * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() */ public void dispose() { if (decorator != null) decorator.removeListener(providerListener); }
public void dispose() { decorator.removeListener(providerListener); }
@Override public void removeListener(ILabelProviderListener listener) { if (fLabelDecorators != null) { for (int i= 0; i < fLabelDecorators.size(); i++) { ILabelDecorator decorator= fLabelDecorators.get(i); decorator.removeListener(listener); } } fListeners.remove(listener); }
@Override public void removeListener(ILabelProviderListener listener) { if (fLabelDecorators != null) { for (int i= 0; i < fLabelDecorators.size(); i++) { ILabelDecorator decorator= fLabelDecorators.get(i); decorator.removeListener(listener); } } fListeners.remove(listener); }
public void removeListener(ILabelProviderListener listener) { if (fLabelDecorators != null) { for (int i= 0; i < fLabelDecorators.size(); i++) { ILabelDecorator decorator= (ILabelDecorator) fLabelDecorators.get(i); decorator.removeListener(listener); } } fListeners.remove(listener); }
public void removeListener(ILabelProviderListener listener) { if (_fLabelDecorators != null) { for (int i = 0; i < _fLabelDecorators.size(); i++) { ILabelDecorator decorator = (ILabelDecorator) _fLabelDecorators.get(i); decorator.removeListener(listener); } } super.removeListener(listener); }
@Override public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); if (this.decorator != null && !isListenerAttached()) { this.decorator.removeListener(this.labelProviderListener); } }
@Override public void dispose() { super.dispose(); if (this.decorator != null) { this.decorator.removeListener(this.labelProviderListener); this.decorator.dispose(); this.decorator = null; } }
@Override public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); if (this.decorator != null && !isListenerAttached()) { this.decorator.removeListener(this.labelProviderListener); } }
@Override public void dispose() { super.dispose(); if (this.decorator != null) { this.decorator.removeListener(this.labelProviderListener); this.decorator.dispose(); this.decorator = null; } }
/** * Sets new selection decorator. * * @param newSelectionDecorator * new label decorator for selected items in the list */ public void setSelectionDecorator(ILabelDecorator newSelectionDecorator) { if (selectionDecorator != null) { selectionDecorator.removeListener(this); selectionDecorator.dispose(); } selectionDecorator = newSelectionDecorator; if (selectionDecorator != null) { selectionDecorator.addListener(this); } }
/** * The <code>DecoratingLabelProvider</code> implementation of this <code>IBaseLabelProvider</code> method * removes the listener from both the nested label provider and the label decorator. * * @param listener a label provider listener */ public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); provider.removeListener(listener); if (decorator != null) { decorator.removeListener(listener); } listeners.remove(listener); }
/** * The <code>DecoratingLabelProvider</code> implementation of this <code>IBaseLabelProvider</code> method * removes the listener from both the nested label provider and the label decorator. * * @param listener a label provider listener */ @Override public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); provider.removeListener(listener); if (decorator != null) { decorator.removeListener(listener); } listeners.remove(listener); }
/** * The <code>DecoratingLabelProvider</code> implementation of this <code>IBaseLabelProvider</code> method * removes the listener from both the nested label provider and the label decorator. * * @param listener a label provider listener */ @Override public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); provider.removeListener(listener); if (decorator != null) { decorator.removeListener(listener); } listeners.remove(listener); }
@Override public void dispose() { provider.removeListener(this); provider.dispose(); if (selectionDecorator != null) { selectionDecorator.removeListener(this); selectionDecorator.dispose(); } super.dispose(); }
/** * Sets the label decorator. Removes all known listeners from the old * decorator, and adds all known listeners to the new decorator. The old * decorator is not disposed. Fires a label provider changed event * indicating that all labels should be updated. Has no effect if the given * decorator is identical to the current one. * * @param newDecorator * the label decorator, or <code>null</code> if no decorations * are to be applied */ public void setLabelDecorator(ILabelDecorator newDecorator) { ILabelDecorator oldDecorator = this.decorator; if (oldDecorator != newDecorator) { if (oldDecorator != null) oldDecorator.removeListener(this.labelProviderListener); this.decorator = newDecorator; if (newDecorator != null) { newDecorator.addListener(this.labelProviderListener); } } fireLabelProviderChanged(new LabelProviderChangedEvent(this)); }
/** * Sets the label decorator. Removes all known listeners from the old * decorator, and adds all known listeners to the new decorator. The old * decorator is not disposed. Fires a label provider changed event * indicating that all labels should be updated. Has no effect if the given * decorator is identical to the current one. * * @param newDecorator * the label decorator, or <code>null</code> if no decorations * are to be applied */ public void setLabelDecorator(ILabelDecorator newDecorator) { ILabelDecorator oldDecorator = this.decorator; if (oldDecorator != newDecorator) { if (oldDecorator != null) oldDecorator.removeListener(this.labelProviderListener); this.decorator = newDecorator; if (newDecorator != null) { newDecorator.addListener(this.labelProviderListener); } } fireLabelProviderChanged(new LabelProviderChangedEvent(this)); }
/** * Sets the label decorator. * Removes all known listeners from the old decorator, and adds all known listeners to the new decorator. * The old decorator is not disposed. * Fires a label provider changed event indicating that all labels should be updated. * Has no effect if the given decorator is identical to the current one. * * @param decorator the label decorator, or <code>null</code> if no decorations are to be applied */ public void setLabelDecorator(ILabelDecorator decorator) { ILabelDecorator oldDecorator = this.decorator; if (oldDecorator != decorator) { if (oldDecorator != null) { for (ILabelProviderListener l : listeners) { oldDecorator.removeListener(l); } } this.decorator = decorator; if (decorator != null) { for (ILabelProviderListener l : listeners) { decorator.addListener(l); } } fireLabelProviderChanged(new LabelProviderChangedEvent(this)); } }
@Override public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); fLabelProvider.removeListener(listener); PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator().removeListener(listener); } }
public void removeListener(ILabelProviderListener listener) { super.removeListener(listener); fLabelProvider.removeListener(listener); PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator().removeListener(listener); } }