Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-10-05 22:56:23 -0400
committerSteffen Pingel2013-09-26 15:45:58 -0400
commitb25ac21444f9250945fa89c2a9bb20cb8c8d67b6 (patch)
tree83ddfbc36c084485080e714b5f22838aa25edbbd /org.eclipse.mylyn.bugzilla.ui
parentd4245c3b3223e8fbae7927a5acc0cc8401690448 (diff)
downloadorg.eclipse.mylyn.tasks-b25ac21444f9250945fa89c2a9bb20cb8c8d67b6.tar.gz
org.eclipse.mylyn.tasks-b25ac21444f9250945fa89c2a9bb20cb8c8d67b6.tar.xz
org.eclipse.mylyn.tasks-b25ac21444f9250945fa89c2a9bb20cb8c8d67b6.zip
386117: [api] declare repository connector extensions in tasks.core
Change-Id: I9eafa88b5731e9aaf1d46bd0f91e1b3c51f4f129 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=386117
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/plugin.properties1
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/plugin.xml12
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java46
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskListMigrator.java77
4 files changed, 0 insertions, 136 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/plugin.properties b/org.eclipse.mylyn.bugzilla.ui/plugin.properties
index b85d0c50d..9817e67ce 100644
--- a/org.eclipse.mylyn.bugzilla.ui/plugin.properties
+++ b/org.eclipse.mylyn.bugzilla.ui/plugin.properties
@@ -13,7 +13,6 @@ Bundle-Vendor = Eclipse Mylyn
Bundle-Name = Mylyn Bugzilla Connector UI
bugzilla.repository.name=Bugzilla Repository
-BugzillaRepositoryConnector.name=Bugzilla Repository Connector
tasklist.BugzillaConnectorUi.name=Bugzilla Repository UI
Mark_not_obsolete_Action_Label = Mark not obsolete
diff --git a/org.eclipse.mylyn.bugzilla.ui/plugin.xml b/org.eclipse.mylyn.bugzilla.ui/plugin.xml
index d7cdb8c80..d3a2d512c 100644
--- a/org.eclipse.mylyn.bugzilla.ui/plugin.xml
+++ b/org.eclipse.mylyn.bugzilla.ui/plugin.xml
@@ -16,23 +16,11 @@
id="org.eclipse.mylyn.bugzilla.repository"
name="%bugzilla.repository.name"
point="org.eclipse.mylyn.tasks.ui.repositories">
-
- <connectorCore
- id="bugzilla"
- class="org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector"
- name="%BugzillaRepositoryConnector.name"/>
-
<connectorUi
brandingIcon="icons/eview16/bugzilla-logo.gif"
class="org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaConnectorUi"
name="%tasklist.BugzillaConnectorUi.name"
overlayIcon="icons/eview16/overlay-bugzilla.gif"/>
-
- <taskListMigrator
- class="org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaTaskListMigrator"/>
- <repositoryMigrator
- class="org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaRepositoryMigrator">
- </repositoryMigrator>
</extension>
<extension
point="org.eclipse.mylyn.bugzilla.core.languages">
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
deleted file mode 100644
index 1f3189877..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryMigrator.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2010 Tasktop Technologies and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.bugzilla.ui.tasklist;
-
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
-import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorExtensions;
-import org.eclipse.mylyn.tasks.core.AbstractRepositoryMigrator;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-
-/**
- * @author Robert Elves
- * @since 3.4
- */
-public class BugzillaRepositoryMigrator extends AbstractRepositoryMigrator {
-
- @Override
- public String getConnectorKind() {
- return BugzillaCorePlugin.CONNECTOR_KIND;
- }
-
- @Override
- public boolean migrateRepository(TaskRepository repository) {
- boolean migrated = false;
- if (repository.getCategory() == null) {
- repository.setCategory(TaskRepository.CATEGORY_BUGS);
- migrated = true;
- }
- // FIXME the Eclipse.org Bugzilla URL should not be hard coded here
- if (repository.getProperty(TaskEditorExtensions.REPOSITORY_PROPERTY_AVATAR_SUPPORT) == null
- && "https://bugs.eclipse.org/bugs".equals(repository.getRepositoryUrl())) { //$NON-NLS-1$
- repository.setProperty(TaskEditorExtensions.REPOSITORY_PROPERTY_AVATAR_SUPPORT, Boolean.TRUE.toString());
- migrated = true;
- }
- return migrated;
- }
-
-}
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskListMigrator.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskListMigrator.java
deleted file mode 100644
index 906634829..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskListMigrator.java
+++ /dev/null
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2008 Tasktop Technologies and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.bugzilla.ui.tasklist;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
-import org.eclipse.mylyn.internal.bugzilla.core.IBugzillaConstants;
-import org.eclipse.mylyn.tasks.core.AbstractTaskListMigrator;
-import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
-import org.eclipse.mylyn.tasks.core.ITask;
-import org.w3c.dom.Element;
-
-/**
- * @author Rob Elves
- * @since 3.0
- */
-public class BugzillaTaskListMigrator extends AbstractTaskListMigrator {
-
- private static final String TAG_BUGZILLA_REPORT = "BugzillaReport"; //$NON-NLS-1$
-
- private static final String KEY_SEVERITY = "bugzilla.severity"; //$NON-NLS-1$
-
- private static final String KEY_PRODUCT = "bugzilla.product"; //$NON-NLS-1$
-
- @Override
- public String getConnectorKind() {
- return BugzillaCorePlugin.CONNECTOR_KIND;
- }
-
- @Override
- public Set<String> getQueryElementNames() {
- Set<String> names = new HashSet<String>();
- names.add(IBugzillaConstants.TAG_BUGZILLA_QUERY);
- names.add(IBugzillaConstants.TAG_BUGZILLA_CUSTOM_QUERY);
- return names;
- }
-
- @Override
- public String getTaskElementName() {
- return TAG_BUGZILLA_REPORT;
- }
-
- @Override
- public void migrateQuery(IRepositoryQuery query, Element element) {
- if (element.getNodeName().equals(IBugzillaConstants.TAG_BUGZILLA_CUSTOM_QUERY)) {
- query.setAttribute(IBugzillaConstants.ATTRIBUTE_BUGZILLA_QUERY_CUSTOM, Boolean.TRUE.toString());
- }
- }
-
- @Override
- public void migrateTask(ITask task, Element element) {
- if (element.hasAttribute(KEY_SEVERITY)) {
- task.setAttribute(BugzillaAttribute.BUG_SEVERITY.getKey(),
- element.getAttribute(BugzillaAttribute.BUG_SEVERITY.getKey()));
- }
- if (element.hasAttribute(KEY_PRODUCT)) {
- task.setAttribute(BugzillaAttribute.PRODUCT.getKey(),
- element.getAttribute(BugzillaAttribute.PRODUCT.getKey()));
- }
- if (element.hasAttribute(KEY_LAST_MOD_DATE)) {
- task.setAttribute(BugzillaAttribute.DELTA_TS.getKey(), element.getAttribute(KEY_LAST_MOD_DATE));
- }
- }
-
-}

Back to the top