Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/plugin.xml13
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/StackTraceDuplicateDetector.java59
2 files changed, 0 insertions, 72 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/plugin.xml b/org.eclipse.mylyn.bugzilla.ui/plugin.xml
index b17255990..c397116a2 100644
--- a/org.eclipse.mylyn.bugzilla.ui/plugin.xml
+++ b/org.eclipse.mylyn.bugzilla.ui/plugin.xml
@@ -27,9 +27,6 @@
<extension
point="org.eclipse.mylyn.tasks.ui.editors">
<editorFactory class="org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaTaskEditorFactory"/>
- <!-- <hyperlinkDetector
- class="org.eclipse.mylyn.tasks.ui.editors.TaskHyperlinkDetector"
- id="org.eclipse.mylyn.tasks.hyperlinkdetector.bugzillatask"/>-->
</extension>
<extension
@@ -39,14 +36,4 @@
</perspectiveExtension>
</extension>
-
-
- <extension
- point="org.eclipse.mylyn.tasks.ui.duplicateDetectors">
- <detector class="org.eclipse.mylyn.internal.bugzilla.ui.search.StackTraceDuplicateDetector"
- name="Stack Trace">
- </detector>
-
- </extension>
-
</plugin>
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/StackTraceDuplicateDetector.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/StackTraceDuplicateDetector.java
deleted file mode 100644
index 8d145cba7..000000000
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/StackTraceDuplicateDetector.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 - 2006 Mylar committers 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
- *******************************************************************************/
-
-package org.eclipse.mylyn.internal.bugzilla.ui.search;
-
-import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
-
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.mylyn.core.MylarStatusHandler;
-import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryQuery;
-import org.eclipse.mylyn.tasks.core.RepositoryTaskData;
-import org.eclipse.mylyn.tasks.core.TaskRepository;
-import org.eclipse.mylyn.tasks.ui.AbstractDuplicateDetector;
-import org.eclipse.mylyn.tasks.ui.TaskFactory;
-import org.eclipse.mylyn.tasks.ui.TasksUiPlugin;
-import org.eclipse.mylyn.tasks.ui.editors.AbstractNewRepositoryTaskEditor;
-import org.eclipse.mylyn.tasks.ui.search.SearchHitCollector;
-
-/**
- * @author Meghan Allen
- */
-public class StackTraceDuplicateDetector extends AbstractDuplicateDetector {
-
- private static final String NO_STACK_MESSAGE = "Unable to locate a stack trace in the description text.";
-
- @Override
- public SearchHitCollector getSearchHitCollector(TaskRepository repository, RepositoryTaskData taskData) {
- String queryUrl = "";
- String searchString = AbstractNewRepositoryTaskEditor.getStackTraceFromDescription(taskData.getDescription());
-
- if (searchString == null) {
- MessageDialog.openWarning(null, "No Stack Trace Found", NO_STACK_MESSAGE);
- return null;
- }
-
- try {
- queryUrl = repository.getUrl() + "/buglist.cgi?long_desc_type=allwordssubstr&long_desc="
- + URLEncoder.encode(searchString, repository.getCharacterEncoding());
- } catch (UnsupportedEncodingException e) {
- MylarStatusHandler.log(e, "Error during duplicate detection");
- return null;
- }
-
- queryUrl += "&product=" + taskData.getProduct();
-
- BugzillaRepositoryQuery bugzillaQuery = new BugzillaRepositoryQuery(repository.getUrl(), queryUrl, "search");
-
- SearchHitCollector collector = new SearchHitCollector(TasksUiPlugin.getTaskListManager().getTaskList(),
- repository, bugzillaQuery, new TaskFactory(repository));
- return collector;
- }
-
-}

Back to the top