return (repository.getCredentials(AuthenticationType.REPOSITORY) == null);
}
public static void assertLoggedIn(TaskRepository repository) throws CoreException {
if (!isLoggedIn(repository)) {
throw new CoreException(new RepositoryStatus(
repository,
IStatus.ERROR,
GoogleCodeCorePlugin.PLUGIN_ID,
RepositoryStatus.ERROR_REPOSITORY_LOGIN,
"not logged in"));