@SuppressWarnings("unused") private void onResourceDeleted(@Observes ResourceDeletedEvent res) { maybeDeleteLock(res.getPath()); }
public void onResourceDeleted(@Observes final ResourceDeletedEvent event) { refreshView(event.getPath()); }
public void onResourceDeleted(@Observes final ResourceDeletedEvent event) { refreshView(event.getPath()); }
public void onResourceDeleted(@Observes final ResourceDeletedEvent event) { refresh(event.getPath()); }
public void onDeletedResource(@Observes final ResourceDeletedEvent deleteFileEvent) { this.closePathPlace(deleteFileEvent.getPath()); }
void onResourceDeleted(@Observes final ResourceDeletedEvent deletedEvent) { if (path != null && path.equals(deletedEvent.getPath())) { if (sessionInfo.getId().equals(deletedEvent.getSessionInfo().getId())) { executeDeleteCommands(); } else { executeConcurrentDeleteCommand(deletedEvent.getPath(), deletedEvent.getSessionInfo().getId(), deletedEvent.getSessionInfo().getIdentity()); } } }
private void verifyResourceDeletedEvent(String file, String sessionId, String userId, String commitMessage) { verify(resourceDeletedEvent, times(1)).fire(resourceDeletedEventCaptor.capture()); assertEquals(file, resourceDeletedEventCaptor.getValue().getPath().toURI()); assertEquals(sessionId, resourceDeletedEventCaptor.getValue().getSessionInfo().getId()); assertEquals(userId, resourceDeletedEventCaptor.getValue().getSessionInfo().getIdentity().getIdentifier()); assertEquals(commitMessage, resourceDeletedEventCaptor.getValue().getMessage()); }
private void verifyResourceDeletedEvent(String file, String sessionId, String userId, String commitMessage) { verify(resourceDeletedEvent, times(1)).fire(resourceDeletedEventCaptor.capture()); assertEquals(file, resourceDeletedEventCaptor.getValue().getPath().toURI()); assertEquals(sessionId, resourceDeletedEventCaptor.getValue().getSessionInfo().getId()); assertEquals(userId, resourceDeletedEventCaptor.getValue().getSessionInfo().getIdentity().getIdentifier()); assertEquals(commitMessage, resourceDeletedEventCaptor.getValue().getMessage()); }