Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-05-14 04:07:46 +0000
committerspingel2008-05-14 04:07:46 +0000
commitd6766a52ec7442063d818ca51b2fae0b8bc55108 (patch)
tree3a70bd3dfd897c0e23c547df824ab4fb35a22e3e /org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor
parent839c9ae28ce335ef04382223014033421b3f0541 (diff)
downloadorg.eclipse.mylyn.tasks-d6766a52ec7442063d818ca51b2fae0b8bc55108.tar.gz
org.eclipse.mylyn.tasks-d6766a52ec7442063d818ca51b2fae0b8bc55108.tar.xz
org.eclipse.mylyn.tasks-d6766a52ec7442063d818ca51b2fae0b8bc55108.zip
NEW - bug 197181: [api] make duplicate detection support generic
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197181
Diffstat (limited to 'org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor')
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java4
-rw-r--r--org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java
index 40396f2bc..2c010b438 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/NewTracTaskEditor.java
@@ -11,7 +11,7 @@ package org.eclipse.mylyn.internal.trac.ui.editor;
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.mylyn.internal.tasks.core.deprecated.AbstractDuplicateDetector;
+import org.eclipse.mylyn.internal.tasks.core.deprecated.AbstractLegacyDuplicateDetector;
import org.eclipse.mylyn.internal.tasks.core.deprecated.RepositoryTaskAttribute;
import org.eclipse.mylyn.internal.tasks.ui.deprecated.AbstractNewRepositoryTaskEditor;
import org.eclipse.swt.SWT;
@@ -34,7 +34,7 @@ public class NewTracTaskEditor extends AbstractNewRepositoryTaskEditor {
}
@Override
- public AbstractDuplicateDetector getDuplicateDetector(String name) {
+ public AbstractLegacyDuplicateDetector getDuplicateDetector(String name) {
return new TracDuplicateDetector();
}
diff --git a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
index 22f069348..660f34e2d 100644
--- a/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
+++ b/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/editor/TracDuplicateDetector.java
@@ -9,7 +9,7 @@
package org.eclipse.mylyn.internal.trac.ui.editor;
import org.eclipse.mylyn.internal.tasks.core.RepositoryQuery;
-import org.eclipse.mylyn.internal.tasks.core.deprecated.AbstractDuplicateDetector;
+import org.eclipse.mylyn.internal.tasks.core.deprecated.AbstractLegacyDuplicateDetector;
import org.eclipse.mylyn.internal.tasks.core.deprecated.RepositoryTaskData;
import org.eclipse.mylyn.internal.trac.core.ITracClient;
import org.eclipse.mylyn.internal.trac.core.TracRepositoryQuery;
@@ -18,14 +18,14 @@ import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter;
import org.eclipse.mylyn.internal.trac.core.model.TracSearchFilter.CompareOperator;
import org.eclipse.mylyn.tasks.core.TaskRepository;
-public class TracDuplicateDetector extends AbstractDuplicateDetector {
+public class TracDuplicateDetector extends AbstractLegacyDuplicateDetector {
@Override
public RepositoryQuery getDuplicatesQuery(TaskRepository repository, RepositoryTaskData taskData) {
TracSearchFilter filter = new TracSearchFilter("description");
filter.setOperator(CompareOperator.CONTAINS);
- String searchString = AbstractDuplicateDetector.getStackTraceFromDescription(taskData.getDescription());
+ String searchString = AbstractLegacyDuplicateDetector.getStackTraceFromDescription(taskData.getDescription());
filter.addValue(searchString);

Back to the top