Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-10-31 21:17:15 +0000
committermkersten2006-10-31 21:17:15 +0000
commit763cc658ba6204f1e9f89e4ac9906a0fc6202958 (patch)
tree993d92ebf3ad300b73dd25156e18fd3c2973cb27
parent8836ab3283a0dab98bd896927d85a716abb81735 (diff)
downloadorg.eclipse.mylyn.tasks-763cc658ba6204f1e9f89e4ac9906a0fc6202958.tar.gz
org.eclipse.mylyn.tasks-763cc658ba6204f1e9f89e4ac9906a0fc6202958.tar.xz
org.eclipse.mylyn.tasks-763cc658ba6204f1e9f89e4ac9906a0fc6202958.zip
NEW - bug 162600: Usage of internal class breaks Mylar on latest integration build I20061024-1200
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162600
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/RepositorySearchResultView.java20
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/SearchResultTableContentProvider.java16
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java6
3 files changed, 21 insertions, 21 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/RepositorySearchResultView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/RepositorySearchResultView.java
index 57b6901ee..b11a28a7a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/RepositorySearchResultView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/RepositorySearchResultView.java
@@ -116,16 +116,16 @@ public class RepositorySearchResultView extends AbstractTextSearchViewPage imple
// Favorite", this);
openInEditorAction = new OpenSearchResultAction("Open in Editor", this);
- bugPropertyChangeListener = new IPropertyChangeListener() {
- public void propertyChange(PropertyChangeEvent event) {
- if (SearchPreferencePage.LIMIT_TABLE.equals(event.getProperty())
- || SearchPreferencePage.LIMIT_TABLE_TO.equals(event.getProperty()))
- if (getViewer() instanceof TableViewer) {
- getViewPart().updateLabel();
- getViewer().refresh();
- }
- }
- };
+// bugPropertyChangeListener = new IPropertyChangeListener() {
+// public void propertyChange(PropertyChangeEvent event) {
+// if (SearchPreferencePage.LIMIT_TABLE.equals(event.getProperty())
+// || SearchPreferencePage.LIMIT_TABLE_TO.equals(event.getProperty()))
+// if (getViewer() instanceof TableViewer) {
+// getViewPart().updateLabel();
+// getViewer().refresh();
+// }
+// }
+// };
SearchPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(bugPropertyChangeListener);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/SearchResultTableContentProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/SearchResultTableContentProvider.java
index 1df0d84a5..ae7291569 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/SearchResultTableContentProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/search/SearchResultTableContentProvider.java
@@ -47,13 +47,13 @@ public class SearchResultTableContentProvider extends SearchResultContentProvide
@Override
public void elementsChanged(Object[] updatedElements) {
TableViewer viewer = getViewer();
- boolean tableLimited = SearchPreferencePage.isTableLimited();
+// boolean tableLimited = SearchPreferencePage.isTableLimited();
for (int i = 0; i < updatedElements.length; i++) {
if (searchResult.getMatchCount(updatedElements[i]) > 0) {
if (viewer.testFindItem(updatedElements[i]) != null)
viewer.update(updatedElements[i], null);
else {
- if (!tableLimited || viewer.getTable().getItemCount() < SearchPreferencePage.getTableLimit())
+// if (!tableLimited || viewer.getTable().getItemCount() < SearchPreferencePage.getTableLimit())
viewer.add(updatedElements[i]);
}
} else
@@ -79,12 +79,12 @@ public class SearchResultTableContentProvider extends SearchResultContentProvide
public Object[] getElements(Object inputElement) {
if (inputElement instanceof RepositorySearchResult) {
Object[] elements = ((RepositorySearchResult) inputElement).getElements();
- int tableLimit = SearchPreferencePage.getTableLimit();
- if (SearchPreferencePage.isTableLimited() && elements.length > tableLimit) {
- Object[] shownElements = new Object[tableLimit];
- System.arraycopy(elements, 0, shownElements, 0, tableLimit);
- return shownElements;
- }
+// int tableLimit = SearchPreferencePage.getTableLimit();
+// if (SearchPreferencePage.isTableLimited() && elements.length > tableLimit) {
+// Object[] shownElements = new Object[tableLimit];
+// System.arraycopy(elements, 0, shownElements, 0, tableLimit);
+// return shownElements;
+// }
return elements;
}
return EMPTY_ARR;
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java
index 501bc5bda..42b07b99f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListTableSorter.java
@@ -11,7 +11,7 @@
package org.eclipse.mylar.internal.tasks.ui.views;
-import org.eclipse.jface.viewers.LabelProvider;
+import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerSorter;
import org.eclipse.mylar.tasks.core.AbstractRepositoryQuery;
@@ -29,11 +29,11 @@ public class TaskListTableSorter extends ViewerSorter {
private String column;
- private LabelProvider labelProvider;
+ private ILabelProvider labelProvider;
private TaskKeyComparator taskKeyComparator = new TaskKeyComparator();
- public TaskListTableSorter(TaskListView view, String column, LabelProvider labelProvider) {
+ public TaskListTableSorter(TaskListView view, String column, ILabelProvider labelProvider) {
super();
this.view = view;
this.column = column;

Back to the top