/** * Unregisters a content assist listener. * * @param listener the listener to unregister * @param type the type of listener * * @see #addContentAssistListener */ void removeContentAssistListener(IContentAssistListener2 listener, int type) { fListeners[type]= null; if (getNumberOfListeners() == 0) { if (fCloser != null) { fCloser.uninstall(); fCloser= null; } uninstallKeyListener(); fViewer.setEventConsumer(null); } releaseWidgetToken(type); }
/** * Unregisters a content assist listener. * * @param listener the listener to unregister * @param type the type of listener * * @see #addContentAssistListener */ void removeContentAssistListener(IContentAssistListener2 listener, int type) { fListeners[type]= null; if (getNumberOfListeners() == 0) { if (fCloser != null) { fCloser.uninstall(); fCloser= null; } uninstallKeyListener(); fViewer.setEventConsumer(null); } releaseWidgetToken(type); }