Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-08-27 23:19:31 +0000
committerSteffen Pingel2011-08-27 23:19:31 +0000
commitf8b45679203c08a7de1ca8ae00daba2b30a6822e (patch)
tree99b979fe6127bed9974450f63168417d65a7a873 /org.eclipse.mylyn.tasks.ui
parent995030b13e81646276a539a7c90d3077e9d1bd73 (diff)
downloadorg.eclipse.mylyn.tasks-f8b45679203c08a7de1ca8ae00daba2b30a6822e.tar.gz
org.eclipse.mylyn.tasks-f8b45679203c08a7de1ca8ae00daba2b30a6822e.tar.xz
org.eclipse.mylyn.tasks-f8b45679203c08a7de1ca8ae00daba2b30a6822e.zip
REOPENED - bug 332747: Repository keeps losing the password
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332747
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index fc0893f22..9f44f97f4 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
@@ -51,7 +51,6 @@ import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.util.SafeRunnable;
import org.eclipse.mylyn.commons.core.StatusHandler;
-import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.WebUtil;
import org.eclipse.mylyn.context.core.ContextCore;
import org.eclipse.mylyn.internal.commons.identity.IdentityModel;
@@ -743,7 +742,10 @@ public class TasksUiPlugin extends AbstractUIPlugin {
taskRepository.setRepositoryLabel(template.label);
taskRepository.setCharacterEncoding(template.characterEncoding);
if (template.anonymous) {
- taskRepository.setCredentials(AuthenticationType.REPOSITORY, null, true);
+ taskRepository.setProperty(
+ "org.eclipse.mylyn.tasklist.repositories.enabled", String.valueOf(false)); //$NON-NLS-1$
+ // bug 332747: avoid reseting password in shared keystore
+ //taskRepository.setCredentials(AuthenticationType.REPOSITORY, null, true);
}
taskRepository.setCreatedFromTemplate(true);
repositoryManager.addRepository(taskRepository);

Back to the top