Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-07 10:58:21 +0000
committerSteffen Pingel2012-03-07 10:58:21 +0000
commit9d84df8f2055a171b8f67aeced8da8dc19de6576 (patch)
tree91a7e71a212625568e33787e0b2b474de39b9a41
parentd1c4bb72f68e687512ae951e66b5b12d52830b15 (diff)
downloadorg.eclipse.mylyn.tasks-9d84df8f2055a171b8f67aeced8da8dc19de6576.tar.gz
org.eclipse.mylyn.tasks-9d84df8f2055a171b8f67aeced8da8dc19de6576.tar.xz
org.eclipse.mylyn.tasks-9d84df8f2055a171b8f67aeced8da8dc19de6576.zip
REOPENED - bug 348356: reduce the number of warnings in framework
plugins https://bugs.eclipse.org/bugs/show_bug.cgi?id=348356
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotifier.java8
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTip.java4
3 files changed, 4 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index fe79f20d2..d72d520d8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
@@ -1348,8 +1348,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
try {
taskListNotificationManager.addNotificationProvider(REMINDER_NOTIFICATION_PROVIDER);
// taskListNotificationManager.addNotificationProvider(INCOMING_NOTIFICATION_PROVIDER);
- TaskListNotifier taskListNotifier = new TaskListNotifier(getRepositoryModel(), getTaskDataManager(),
- getSynchronizationManger());
+ TaskListNotifier taskListNotifier = new TaskListNotifier(getTaskDataManager(), getSynchronizationManger());
getTaskDataManager().addListener(taskListNotifier);
taskListNotificationManager.addNotificationProvider(taskListNotifier);
taskListNotificationManager.startNotification(NOTIFICATION_DELAY);
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotifier.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotifier.java
index 3ee82ea33..0304c27fb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotifier.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListNotifier.java
@@ -23,7 +23,6 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.commons.notifications.ui.AbstractUiNotification;
-import org.eclipse.mylyn.internal.tasks.core.RepositoryModel;
import org.eclipse.mylyn.internal.tasks.core.data.ITaskDataManagerListener;
import org.eclipse.mylyn.internal.tasks.core.data.SynchronizationManger;
import org.eclipse.mylyn.internal.tasks.core.data.TaskDataDiff;
@@ -47,16 +46,11 @@ public class TaskListNotifier implements ITaskDataManagerListener, ITaskListNoti
private final List<TaskListNotification> notificationQueue = new ArrayList<TaskListNotification>();
- @SuppressWarnings("unused")
- private final RepositoryModel repositoryModel;
-
public boolean enabled;
private final SynchronizationManger synchronizationManger;
- public TaskListNotifier(RepositoryModel repositoryModel, TaskDataManager taskDataManager,
- SynchronizationManger synchronizationManger) {
- this.repositoryModel = repositoryModel;
+ public TaskListNotifier(TaskDataManager taskDataManager, SynchronizationManger synchronizationManger) {
this.taskDataManager = taskDataManager;
this.synchronizationManger = synchronizationManger;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTip.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTip.java
index 5c49caebf..64a5354d5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTip.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListToolTip.java
@@ -297,8 +297,8 @@ public class TaskListToolTip extends GradientToolTip {
ITask task = (ITask) element;
if (task.getSynchronizationState().isIncoming()) {
String text = null;
- TaskListNotifier notifier = new TaskListNotifier(TasksUiPlugin.getRepositoryModel(),
- TasksUiPlugin.getTaskDataManager(), TasksUiPlugin.getDefault().getSynchronizationManger());
+ TaskListNotifier notifier = new TaskListNotifier(TasksUiPlugin.getTaskDataManager(),
+ TasksUiPlugin.getDefault().getSynchronizationManger());
TaskDataDiff diff = notifier.getDiff(task);
if (diff != null && diff.hasChanged()) {
text = TaskDiffUtil.toString(diff, MAX_TEXT_WIDTH, true);

Back to the top