public void onRestore(@Observes RestoreEvent restore) { if (path == null || restore == null || restore.getPath() == null) { return; } if (path.equals(restore.getPath())) { loadContent(); notification.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemRestored())); } }
void onResourceUpdated(@Observes final ResourceUpdatedEvent updatedEvent) { if (path != null && path.equals(updatedEvent.getPath())) { if (sessionInfo.getId().equals(updatedEvent.getSessionInfo().getId())) { executeUpdateCommands(); } else { executeConcurrentUpdateCommand( updatedEvent.getPath(), updatedEvent.getSessionInfo().getId(), updatedEvent.getSessionInfo().getIdentity()); } } }
void onResourceCopied(@Observes final ResourceCopiedEvent copiedEvent) { if (path != null && path.equals(copiedEvent.getPath())) { if (sessionInfo.getId().equals(copiedEvent.getSessionInfo().getId())) { executeCopyCommands(); } else { executeConcurrentCopyCommand( copiedEvent.getPath(), copiedEvent.getDestinationPath(), copiedEvent.getSessionInfo().getId(), copiedEvent.getSessionInfo().getIdentity()); } } }
void onResourceRenamed(@Observes final ResourceRenamedEvent renamedEvent) { if (path != null && path.equals(renamedEvent.getPath())) { path = renamedEvent.getDestinationPath(); if (sessionInfo.getId().equals(renamedEvent.getSessionInfo().getId())) { executeRenameCommands(); } else { executeConcurrentRenameCommand( renamedEvent.getPath(), renamedEvent.getDestinationPath(), renamedEvent.getSessionInfo().getId(), renamedEvent.getSessionInfo().getIdentity()); } } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ExampleProject)) { return false; } ExampleProject that = (ExampleProject) o; if (!root.equals(that.root)) { return false; } if (!name.equals(that.name)) { return false; } return !(description != null ? !description.equals(that.description) : that.description != null); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof GitRepository)) { return false; } final GitRepository that = (GitRepository) o; if (alias != null ? !alias.equals(that.alias) : that.alias != null) { return false; } if (!environment.equals(that.environment)) { return false; } if (!publicURIs.equals(that.publicURIs)) { return false; } if (roles != null ? !roles.equals(that.roles) : that.roles != null) { return false; } if (root != null ? !root.equals(that.root) : that.root != null) { return false; } if (currentBranch != null ? !currentBranch.equals(that.currentBranch) : that.currentBranch != null) { return false; } if (branches != null ? !branches.equals(that.branches) : that.branches != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ProjectScreenModel that = (ProjectScreenModel) o; if (KModule != null ? !KModule.equals(that.KModule) : that.KModule != null) { return false; } if (KModuleMetaData != null ? !KModuleMetaData.equals(that.KModuleMetaData) : that.KModuleMetaData != null) { return false; } if (POMMetaData != null ? !POMMetaData.equals(that.POMMetaData) : that.POMMetaData != null) { return false; } if (pathToImports != null ? !pathToImports.equals(that.pathToImports) : that.pathToImports != null) { return false; } if (pathToKModule != null ? !pathToKModule.equals(that.pathToKModule) : that.pathToKModule != null) { return false; } if (pathToPOM != null ? !pathToPOM.equals(that.pathToPOM) : that.pathToPOM != null) { return false; } if (pom != null ? !pom.equals(that.pom) : that.pom != null) { return false; } if (projectTagsMetaData != null ? !projectTagsMetaData.equals(that.projectTagsMetaData) : that.projectTagsMetaData != null) { return false; } if (projectImports != null ? !projectImports.equals(that.projectImports) : that.projectImports != null) { return false; } if (projectImportsMetaData != null ? !projectImportsMetaData.equals(that.projectImportsMetaData) : that.projectImportsMetaData != null) { return false; } if (pathToWhiteList != null ? !pathToWhiteList.equals(that.pathToWhiteList) : that.pathToWhiteList != null) { return false; } if (whiteList != null ? !whiteList.equals(that.whiteList) : that.whiteList != null) { return false; } if (whiteListMetaData != null ? !whiteListMetaData.equals(that.whiteListMetaData) : that.whiteListMetaData != null) { return false; } return true; }