@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof AbstractConcurrentOperationEvent)) { return false; } final AbstractConcurrentOperationEvent that = (AbstractConcurrentOperationEvent) o; return !(getPath() != null ? !getPath().equals(that.getPath()) : that.getPath() != null); }
Command onConcurrentRenameCloseCommand(final ObservablePath path) { return () -> { reload(); concurrentRenameAcceptedEvent.fire(new ConcurrentRenameAcceptedEvent(path)); }; }
Command onConcurrentRenameIgnoreCommand(final ObservablePath path) { return () -> { disableMenus(); concurrentRenameIgnoredEvent.fire(new ConcurrentRenameIgnoredEvent(path)); }; }
Command onConcurrentDeleteIgnoreCommand(final ObservablePath path) { return () -> { disableMenus(); concurrentDeleteIgnoredEvent.fire(new ConcurrentDeleteIgnoredEvent(path)); }; }
Command onConcurrentDeleteCloseCommand(final ObservablePath path) { return () -> { placeManager.closePlace(place); concurrentDeleteAcceptedEvent.fire(new ConcurrentDeleteAcceptedEvent(path)); }; }
public void onConcurrentDelete(@Observes final ConcurrentDeleteAcceptedEvent concurrentDeleteAcceptedEvent) { this.closePathPlace(concurrentDeleteAcceptedEvent.getPath()); }
public void onAssetRenamedAccepted(@Observes final ConcurrentRenameAcceptedEvent concurrentRenameAcceptedEvent) { if (isLibraryPerspectiveOpen()) { final ObservablePath path = concurrentRenameAcceptedEvent.getPath(); goToAsset(path); libraryBreadcrumbs.setupForAsset(getActiveWorkspace(), path); } }
Command onConcurrentRenameCloseCommand(final ObservablePath path) { return () -> { reload(); concurrentRenameAcceptedEvent.fire(new ConcurrentRenameAcceptedEvent(path)); }; }
Command onConcurrentRenameIgnoreCommand(final ObservablePath path) { return () -> { disableMenus(); concurrentRenameIgnoredEvent.fire(new ConcurrentRenameIgnoredEvent(path)); }; }
Command onConcurrentDeleteIgnoreCommand(final ObservablePath path) { return () -> { disableMenus(); concurrentDeleteIgnoredEvent.fire(new ConcurrentDeleteIgnoredEvent(path)); }; }
Command onConcurrentDeleteCloseCommand(final ObservablePath path) { return () -> { placeManager.closePlace(place); concurrentDeleteAcceptedEvent.fire(new ConcurrentDeleteAcceptedEvent(path)); }; }
@Override public boolean equals(final Object o) { if (this == o) { return true; } if (!(o instanceof AbstractConcurrentOperationEvent)) { return false; } final AbstractConcurrentOperationEvent that = (AbstractConcurrentOperationEvent) o; return !(getPath() != null ? !getPath().equals(that.getPath()) : that.getPath() != null); }
@Test public void testOnConcurrentRenameAcceptedCommand() { final Command onConcurrentRenameCloseCommand = kieEditor.onConcurrentRenameCloseCommand(observablePath); onConcurrentRenameCloseCommand.execute(); verify(kieEditor).reload(); verify(kieEditor.concurrentRenameAcceptedEvent).fire(eq(new ConcurrentRenameAcceptedEvent(observablePath))); }
@Test public void testOnConcurrentRenameIgnoreCommand() { final Command onConcurrentRenameIgnoreCommand = kieEditor.onConcurrentRenameIgnoreCommand(observablePath); onConcurrentRenameIgnoreCommand.execute(); verify(kieEditor).disableMenus(); verify(kieEditor.concurrentRenameIgnoredEvent).fire(eq(new ConcurrentRenameIgnoredEvent(observablePath))); }
@Test public void testOnConcurrentDeleteIgnoreCommand() { final Command onConcurrentDeleteIgnoreCommand = kieEditor.onConcurrentDeleteIgnoreCommand(observablePath); onConcurrentDeleteIgnoreCommand.execute(); verify(kieEditor).disableMenus(); verify(kieEditor.concurrentDeleteIgnoredEvent).fire(eq(new ConcurrentDeleteIgnoredEvent(observablePath))); }
@Test public void testOnConcurrentRenameAcceptedCommand() { final Command onConcurrentRenameCloseCommand = kieEditor.onConcurrentRenameCloseCommand(observablePath); onConcurrentRenameCloseCommand.execute(); verify(kieEditor).reload(); verify(kieEditor.concurrentRenameAcceptedEvent).fire(eq(new ConcurrentRenameAcceptedEvent(observablePath))); }
@Test public void testOnConcurrentRenameIgnoreCommand() { final Command onConcurrentRenameIgnoreCommand = kieEditor.onConcurrentRenameIgnoreCommand(observablePath); onConcurrentRenameIgnoreCommand.execute(); verify(kieEditor).disableMenus(); verify(kieEditor.concurrentRenameIgnoredEvent).fire(eq(new ConcurrentRenameIgnoredEvent(observablePath))); }
@Test public void testOnConcurrentDeleteIgnoreCommand() { final Command onConcurrentDeleteIgnoreCommand = kieEditor.onConcurrentDeleteIgnoreCommand(observablePath); onConcurrentDeleteIgnoreCommand.execute(); verify(kieEditor).disableMenus(); verify(kieEditor.concurrentDeleteIgnoredEvent).fire(eq(new ConcurrentDeleteIgnoredEvent(observablePath))); }