Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2014-09-22 09:33:39 -0400
committerSteffen Pingel2014-09-22 09:33:39 -0400
commita7687fc916a39b5f22b2e046077355ead95cc342 (patch)
tree4de8db20e4b78250277467b39054db3e4efe4af1
parent2d6d8b0f612939b5c720c860363c06dd13acbfd5 (diff)
downloadorg.eclipse.mylyn.tasks-a7687fc916a39b5f22b2e046077355ead95cc342.tar.gz
org.eclipse.mylyn.tasks-a7687fc916a39b5f22b2e046077355ead95cc342.tar.xz
org.eclipse.mylyn.tasks-a7687fc916a39b5f22b2e046077355ead95cc342.zip
clean up workspace warnings in tasks.ui
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java4
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java15
2 files changed, 8 insertions, 11 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
index 95aafeab3..b74290c89 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/CustomTaskListDecorationDrawer.java
@@ -56,8 +56,6 @@ public class CustomTaskListDecorationDrawer implements Listener {
// see bug 185004
private final int platformSpecificSquish;
- private final Rectangle lastClippingArea;
-
private boolean useStrikethroughForCompleted;
private boolean synchronizationOverlaid;
@@ -81,7 +79,6 @@ public class CustomTaskListDecorationDrawer implements Listener {
public CustomTaskListDecorationDrawer(int activationImageOffset, boolean focusedMode) {
this.activationImageOffset = activationImageOffset;
- this.lastClippingArea = new Rectangle(0, 0, 0, 0);
this.platformSpecificSquish = PlatformUiUtil.getTreeItemSquish();
this.synchronizationOverlaid = TasksUiPlugin.getDefault()
.getPreferenceStore()
@@ -152,7 +149,6 @@ public class CustomTaskListDecorationDrawer implements Listener {
break;
}
case SWT.PaintItem: {
- Rectangle clipping = null;
if (activationImage != null) {
drawActivationImage(activationImageOffset, event, activationImage);
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
index 950214a33..71ae349d2 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListFilteredTree.java
@@ -144,8 +144,8 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
}
if (taskProgressBarWorkingSetListener != null) {
PlatformUI.getWorkbench()
- .getWorkingSetManager()
- .removePropertyChangeListener(taskProgressBarWorkingSetListener);
+ .getWorkingSetManager()
+ .removePropertyChangeListener(taskProgressBarWorkingSetListener);
}
actionGroup.setSelectionProvider(null);
activeTaskMenuManager.dispose();
@@ -326,9 +326,9 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
+ "\n" //$NON-NLS-1$
+ MessageFormat.format(Messages.TaskListFilteredTree_Estimated_hours, completeTime,
completeTime + incompleteTime)
- + "\n" //$NON-NLS-1$
- + MessageFormat.format(Messages.TaskListFilteredTree_Scheduled_tasks, completeTasks,
- totalTasks));
+ + "\n" //$NON-NLS-1$
+ + MessageFormat.format(Messages.TaskListFilteredTree_Scheduled_tasks, completeTasks,
+ totalTasks));
}
}
});
@@ -411,7 +411,7 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
TasksUiInternal.getTaskList().addChangeListener(changeListener);
activeTaskLink.setText(Messages.TaskListFilteredTree_Activate);
- // avoid having the Hyperlink class show a native tooltip when it shortens the text which would overlap with the task list tooltip
+ // avoid having the Hyperlink class show a native tooltip when it shortens the text which would overlap with the task list tooltip
activeTaskLink.setToolTipText(""); //$NON-NLS-1$
taskListToolTip = new TaskListToolTip(activeTaskLink);
@@ -598,9 +598,10 @@ public class TaskListFilteredTree extends AbstractFilteredTree {
this.actionGroup.setSelectionProvider(activeTaskSelectionProvider);
}
+ @SuppressWarnings("deprecation")
@Override
protected SearchHistoryPopupDialog getHistoryPopupDialog() {
return null;
-// return new TaskListSearchHistoryPopupDialog(getShell(), SWT.TOP);
}
+
}

Back to the top