Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-12 00:46:17 -0400
committermkersten2007-06-12 00:46:17 -0400
commit0338e6dc3cccfd0c965822556bdad9153c2cc56c (patch)
treecf32e8563cf9fed0b79e86dec8fd6d4ddc47de50
parentbf7f764f42d108970420732424fc0f82684279be (diff)
downloadorg.eclipse.mylyn.tasks-0338e6dc3cccfd0c965822556bdad9153c2cc56c.tar.gz
org.eclipse.mylyn.tasks-0338e6dc3cccfd0c965822556bdad9153c2cc56c.tar.xz
org.eclipse.mylyn.tasks-0338e6dc3cccfd0c965822556bdad9153c2cc56c.zip
NEW - bug 190479: Report bug menu behavior should be configurable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=190479
-rw-r--r--org.eclipse.mylyn.bugzilla.core/plugin.xml11
-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
3 files changed, 1 insertions, 82 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/plugin.xml b/org.eclipse.mylyn.bugzilla.core/plugin.xml
index a536fb9e3..33ca93ceb 100644
--- a/org.eclipse.mylyn.bugzilla.core/plugin.xml
+++ b/org.eclipse.mylyn.bugzilla.core/plugin.xml
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
- <extension
- point="org.eclipse.mylyn.tasks.core.templates">
- <repository
- addAutomatically="true"
- characterEncoding="ISO-8859-1"
- label="Eclipse.org"
- repositoryKind="bugzilla"
- urlRepository="https://bugs.eclipse.org/bugs"
- version="2.22"/>
- </extension>
+
</plugin>
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