140141142143144145146147148149150
ResourceSetAvatarEnabledStatusEvent event) { popupManager.setEnabled(avatar.isEnabled()); } }); avatar.addDisposable(new Disposable() { @Override public void dispose() { handlerRegistration.removeHandler(); link.removeHandler(); }
7475767778798081828384
event.getResourceSet())); } }); avatar.addDisposable(new Disposable() { @Override public void dispose() { mouseOverHandlerRegistration.removeHandler(); mouseOutHandlerRegistration.removeHandler(); containerChangedHandler.removeHandler();
6869707172737475767778
}; addDragHandler(dragHandler); avatar.addDisposable(new Disposable() { @Override public void dispose() { removeDragHandler(dragHandler); } });
5960616263646566676869
ResourceSetAvatarEnabledStatusEvent event) { updateAvatar(avatar); } }); avatar.addDisposable(new Disposable() { @Override public void dispose() { registration.removeHandler(); } });
3839404142434445464748
@Override public ResourceSetAvatar createAvatar(ResourceSet resources) { final ResourceSetAvatar avatar = delegate.createAvatar(resources); avatar.addDisposable(new Disposable() { @Override public void dispose() { dropTargetManager.disableDropTarget(avatar); } });
7071727374757677787980
dragAvatar.dispose(); } @Test public void disposeCallsDisposeOnAddedDisposable() { Disposable disposable = mock(Disposable.class); dragAvatar.addDisposable(disposable); dragAvatar.dispose(); verify(disposable, times(1)).dispose();