org.eclipse.jface.viewers.ILabelProviderListener Java Examples

The following examples show how to use org.eclipse.jface.viewers.ILabelProviderListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ViewerLabelProvider.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
protected final void fireChangeEvent ( final Collection<?> changes )
{

    final LabelProviderChangedEvent event = new LabelProviderChangedEvent ( ViewerLabelProvider.this, changes.toArray () );
    final ILabelProviderListener[] listenerArray = ViewerLabelProvider.this.listeners.toArray ( new ILabelProviderListener[ViewerLabelProvider.this.listeners.size ()] );

    final Display display = getDisplay ();
    if ( !display.isDisposed () )
    {
        display.asyncExec ( new Runnable () {

            public void run ()
            {
                for ( final ILabelProviderListener listener : listenerArray )
                {
                    try
                    {
                        listener.labelProviderChanged ( event );
                    }
                    catch ( final Exception e )
                    {
                        Policy.getLog ().log ( new Status ( IStatus.ERROR, Policy.JFACE_DATABINDING, e.getLocalizedMessage (), e ) );
                    }
                }

            }
        } );

    }
}
 
Example #2
Source File: ProblemsLabelDecorator.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
private void fireProblemsChanged(IResource[] changedResources, boolean isMarkerChange)
{
	if (fListeners != null && !fListeners.isEmpty())
	{
		LabelProviderChangedEvent event = new ProblemsLabelChangedEvent(this, changedResources, isMarkerChange);
		Object[] listeners = fListeners.getListeners();
		for (int i = 0; i < listeners.length; i++)
		{
			((ILabelProviderListener) listeners[i]).labelProviderChanged(event);
		}
	}
}
 
Example #3
Source File: BuildpathIndicatorLabelDecorator.java    From typescript.java with MIT License 5 votes vote down vote up
private void fireChange(IResource[] elements) {
	if (fListeners != null && !fListeners.isEmpty()) {
		LabelProviderChangedEvent event = new LabelProviderChangedEvent(this, elements);
		Object[] listeners = fListeners.getListeners();
		for (int i = 0; i < listeners.length; i++) {
			((ILabelProviderListener) listeners[i]).labelProviderChanged(event);
		}
	}
}
 
Example #4
Source File: BuildpathIndicatorLabelDecorator.java    From typescript.java with MIT License 5 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
	if (fListeners == null)
		return;

	fListeners.remove(listener);

	if (fListeners.isEmpty() && fChangeListener != null) {
		TypeScriptCorePlugin.getDefault().removeTypeScriptElementChangedListener(fChangeListener);
		fChangeListener = null;
	}
}
 
Example #5
Source File: ProblemsLabelDecorator.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public void removeListener(ILabelProviderListener listener)
{
	if (fListeners != null)
	{
		fListeners.remove(listener);
		if (fListeners.isEmpty() && fProblemChangedListener != null)
		{
			EditorEplPlugin.getDefault().getProblemMarkerManager().removeListener(fProblemChangedListener);
			fProblemChangedListener = null;
		}
	}
}
 
Example #6
Source File: FilteredItemsSelectionDialog.java    From tlaplus with MIT License 4 votes vote down vote up
public void labelProviderChanged(LabelProviderChangedEvent event) {
	Object[] l = listeners.getListeners();
	for (int i = 0; i < listeners.size(); i++) {
		((ILabelProviderListener) l[i]).labelProviderChanged(event);
	}
}
 
Example #7
Source File: XdsElementLabelProvider.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
}
 
Example #8
Source File: AbstractTmfTreeViewer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
    // Do nothing
}
 
Example #9
Source File: GamlDecorator.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeListener(final ILabelProviderListener listener) {}
 
Example #10
Source File: NavigatorDateLighweightDecorator.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void removeListener(final ILabelProviderListener listener) {}
 
Example #11
Source File: MendeleyTreeLabelProvider.java    From slr-toolkit with Eclipse Public License 1.0 4 votes vote down vote up
public void removeListener(ILabelProviderListener arg0) {
  listeners.remove(arg0);
}
 
Example #12
Source File: FilteredItemsSelectionDialog.java    From tlaplus with MIT License 4 votes vote down vote up
public void addListener(ILabelProviderListener listener) {
	listeners.add(listener);
}
 
Example #13
Source File: TypeScriptSearchLabelProvider.java    From typescript.java with MIT License 4 votes vote down vote up
public void removeListener(ILabelProviderListener listener) {
	super.removeListener(listener);
	fLabelProvider.removeListener(listener);
}
 
Example #14
Source File: TypeScriptSearchLabelProvider.java    From typescript.java with MIT License 4 votes vote down vote up
public void addListener(ILabelProviderListener listener) {
	super.addListener(listener);
	fLabelProvider.addListener(listener);
}
 
Example #15
Source File: TmfNavigatorLabelProvider.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
    // Do nothing
}
 
Example #16
Source File: AbstractTimeGraphView.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    // do nothing
}
 
Example #17
Source File: SuppressionsTable.java    From cppcheclipse with Apache License 2.0 4 votes vote down vote up
public void removeListener(ILabelProviderListener listener) {
}
 
Example #18
Source File: EIPModelTreeLabelProvider.java    From eip-designer with Apache License 2.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
   // Nothing to do here.
}
 
Example #19
Source File: TracePackageLabelProvider.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    // Do nothing
}
 
Example #20
Source File: SymbolsTable.java    From cppcheclipse with Apache License 2.0 4 votes vote down vote up
public void addListener(ILabelProviderListener listener) {
}
 
Example #21
Source File: SDKsPreferencePage.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
}
 
Example #22
Source File: AbstractTimeGraphView.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
    // do nothing
}
 
Example #23
Source File: SelectModulaSourceFileDialog.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    decorator.addListener(listener);
}
 
Example #24
Source File: JSIndexViewLabelProvider.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public void addListener(ILabelProviderListener listener)
{
}
 
Example #25
Source File: ModulaSearchLabelProvider.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    super.addListener(listener);
    fLabelProvider.addListener(listener);
}
 
Example #26
Source File: ModulaSearchLabelProvider.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
    super.removeListener(listener);
    fLabelProvider.removeListener(listener);
}
 
Example #27
Source File: XBookmarksDialog.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void removeListener(ILabelProviderListener listener) {
}
 
Example #28
Source File: XBookmarksDialog.java    From xds-ide with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
}
 
Example #29
Source File: AbstractTmfTreeViewer.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    // Do nothing
}
 
Example #30
Source File: TraceTypeLabelProvider.java    From tracecompass with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void addListener(ILabelProviderListener listener) {
    // do nothing
}