Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2013-04-21 20:11:31 -0400
committerGerrit Code Review @ Eclipse.org2013-04-21 22:42:03 -0400
commit14187a12a8a4ba0b18ff3eb8fd726c3fedf1c4a6 (patch)
tree5b599bd4b8077b59b04c3029305daa3a4b025e95 /org.eclipse.mylyn.bugzilla.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.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java5
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java3
2 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java
index 0172bce60..1f3189877 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java
@@ -12,7 +12,6 @@
package org.eclipse.mylyn.internal.bugzilla.ui.tasklist;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorExtensions;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryMigrator;
import org.eclipse.mylyn.tasks.core.TaskRepository;
@@ -31,8 +30,8 @@ public class BugzillaRepositoryMigrator extends AbstractRepositoryMigrator {
@Override
public boolean migrateRepository(TaskRepository repository) {
boolean migrated = false;
- if (repository.getProperty(IRepositoryConstants.PROPERTY_CATEGORY) == null) {
- repository.setProperty(IRepositoryConstants.PROPERTY_CATEGORY, IRepositoryConstants.CATEGORY_BUGS);
+ if (repository.getCategory() == null) {
+ repository.setCategory(TaskRepository.CATEGORY_BUGS);
migrated = true;
}
// FIXME the Eclipse.org Bugzilla URL should not be hard coded here
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
index 228f20ce4..eabb20130 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
@@ -39,7 +39,6 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaStatus;
import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration;
-import org.eclipse.mylyn.internal.tasks.core.IRepositoryConstants;
import org.eclipse.mylyn.internal.tasks.core.RepositoryTemplateManager;
import org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin;
import org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal;
@@ -664,7 +663,7 @@ public class BugzillaRepositorySettingsPage extends AbstractRepositorySettingsPa
private void applyToInternal(final TaskRepository repository) {
super.applyTo(repository);
- repository.setProperty(IRepositoryConstants.PROPERTY_CATEGORY, IRepositoryConstants.CATEGORY_BUGS);
+ repository.setCategory(TaskRepository.CATEGORY_BUGS);
repository.setProperty(IBugzillaConstants.REPOSITORY_SETTING_SHORT_LOGIN,
String.valueOf(cleanQAContact.getSelection()));
repository.setProperty(IBugzillaConstants.BUGZILLA_LANGUAGE_SETTING, languageSettingCombo.getText());

Back to the top