Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-22 00:11:31 +0000
committerGerrit Code Review @ Eclipse.org2013-04-22 02:42:03 +0000
commit14187a12a8a4ba0b18ff3eb8fd726c3fedf1c4a6 (patch)
tree5b599bd4b8077b59b04c3029305daa3a4b025e95 /org.eclipse.mylyn.trac.ui
parent81db1b68923db48643bf25c4cc75b9581938f429 (diff)
downloadorg.eclipse.mylyn.tasks-14187a12a8a4ba0b18ff3eb8fd726c3fedf1c4a6.tar.gz
org.eclipse.mylyn.tasks-14187a12a8a4ba0b18ff3eb8fd726c3fedf1c4a6.tar.xz
org.eclipse.mylyn.tasks-14187a12a8a4ba0b18ff3eb8fd726c3fedf1c4a6.zip
387710: [api] task category property should be API
Change-Id: I460afb96bb37f84dddfd3b8d48fc58f47891f382 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=387710
Diffstat (limited to 'org.eclipse.mylyn.trac.ui')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryMigrator.java5
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java4
2 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryMigrator.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryMigrator.java
index 2a6854070..091f58319 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryMigrator.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/TracRepositoryMigrator.java
@@ -11,7 +11,6 @@
package org.eclipse.mylyn.internal.trac.ui;
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryMigrator;
import org.eclipse.mylyn.tasks.core.TaskRepository;
@@ -28,8 +27,8 @@ public class TracRepositoryMigrator extends AbstractRepositoryMigrator {
@Override
public boolean migrateRepository(TaskRepository repository) {
- if (repository.getProperty(IRepositoryConstants.PROPERTY_CATEGORY) == null) {
- repository.setProperty(IRepositoryConstants.PROPERTY_CATEGORY, IRepositoryConstants.CATEGORY_BUGS);
+ if (repository.getCategory() == null) {
+ repository.setCategory(TaskRepository.CATEGORY_BUGS);
return true;
}
return false;
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java
index a3265255a..f5b544d86 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java
@@ -23,7 +23,6 @@ import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
import org.eclipse.mylyn.internal.trac.core.TracClientFactory;
import org.eclipse.mylyn.internal.trac.core.TracCorePlugin;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient;
@@ -158,11 +157,10 @@ public class TracRepositorySettingsPage extends AbstractRepositorySettingsPage {
super.applyValidatorResult(validator);
}
- @SuppressWarnings("restriction")
@Override
public void applyTo(TaskRepository repository) {
super.applyTo(repository);
- repository.setProperty(IRepositoryConstants.PROPERTY_CATEGORY, IRepositoryConstants.CATEGORY_BUGS);
+ repository.setCategory(TaskRepository.CATEGORY_BUGS);
}
// public for testing

Back to the top